diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 41225218..1b2d969d 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.0 \ No newline at end of file +7.18.0 diff --git a/cashfree_pg/__init__.py b/cashfree_pg/__init__.py index 9cc92e22..df6d2cec 100644 --- a/cashfree_pg/__init__.py +++ b/cashfree_pg/__init__.py @@ -3,19 +3,18 @@ # flake8: noqa """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - -__version__ = "4.5.1" +__version__ = "1.0.0" # import apis into sdk package # import ApiClient diff --git a/cashfree_pg/api_client.py b/cashfree_pg/api_client.py index 86e501d4..5389c8e2 100644 --- a/cashfree_pg/api_client.py +++ b/cashfree_pg/api_client.py @@ -1,23 +1,22 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import re # noqa: F401 import io import warnings -from pydantic import validate_arguments, ValidationError +from pydantic import validate_arguments, ValidationError, Field, StrictStr, StrictBytes from typing_extensions import Annotated from cashfree_pg.configuration import Configuration @@ -41,10 +40,8 @@ import base64 import hashlib import hmac -from pydantic import validate_arguments, ValidationError from typing_extensions import Annotated from typing import overload, Optional, Union, Awaitable -from pydantic import Field, StrictStr, StrictBytes from cashfree_pg.configuration import Configuration from cashfree_pg.api_response import ApiResponse @@ -349,10 +346,23 @@ class Cashfree: XApiVersion = "2023-08-01"; + def __init__(self, XEnvironment, XClientId, XClientSecret, XPartnerKey, XPartnerMerchantId, XClientSignature): + if XClientId != None: + self.XClientId = XClientId + if XClientSecret != None: + self.XClientSecret = XClientSecret + if XPartnerKey != None: + self.XPartnerKey = XPartnerKey + if XPartnerMerchantId != None: + self.XPartnerMerchantId = XPartnerMerchantId + if XClientSignature != None: + self.XClientSignature = XClientSignature + self.XEnvironment = XEnvironment; + def PGVerifyWebhookSignature(self, signature, rawBody, timestamp): signatureData = timestamp+rawBody message = bytes(signatureData, 'utf-8') - secretkey=bytes(Cashfree.XClientSecret,'utf-8') + secretkey=bytes(self.XClientSecret,'utf-8') generatedSignature = base64.b64encode(hmac.new(secretkey, message, digestmod=hashlib.sha256).digest()) computed_signature = str(generatedSignature, encoding='utf8') if computed_signature == signature: @@ -361,7 +371,7 @@ def PGVerifyWebhookSignature(self, signature, rawBody, timestamp): raise Exception("Generated signature and received signature did not match.") @validate_arguments - def PGCreateCustomer(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, create_customer_request : Annotated[CreateCustomerRequest, Field(..., description="Request to create a new customer at Cashfree")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGCreateCustomer(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, create_customer_request : Annotated[CreateCustomerRequest, Field(description="Request to create a new customer at Cashfree")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Customer at Cashfree # noqa: E501 Create Customer at Cashfree # noqa: E501 @@ -378,7 +388,7 @@ def PGCreateCustomer(self, x_api_version : Annotated[StrictStr, Field(..., descr :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -404,18 +414,19 @@ def PGCreateCustomer(self, x_api_version : Annotated[StrictStr, Field(..., descr :rtype: tuple(CustomerEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -464,7 +475,7 @@ def PGCreateCustomer(self, x_api_version : Annotated[StrictStr, Field(..., descr if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -517,7 +528,7 @@ def PGCreateCustomer(self, x_api_version : Annotated[StrictStr, Field(..., descr _request_auth=_params.get('_request_auth')) @validate_arguments - def PGAcceptDisputeById(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, dispute_id : StrictInt = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGAcceptDisputeById(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, dispute_id : StrictInt = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Accept Dispute by Dispute ID # noqa: E501 Use this API to get accept the Dispute by specifying the Dispute ID. # noqa: E501 @@ -534,7 +545,7 @@ def PGAcceptDisputeById(self, x_api_version : Annotated[StrictStr, Field(..., de :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -560,18 +571,19 @@ def PGAcceptDisputeById(self, x_api_version : Annotated[StrictStr, Field(..., de :rtype: tuple(DisputesEntityMerchantAccepted, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -623,7 +635,7 @@ def PGAcceptDisputeById(self, x_api_version : Annotated[StrictStr, Field(..., de if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -665,7 +677,7 @@ def PGAcceptDisputeById(self, x_api_version : Annotated[StrictStr, Field(..., de collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGFetchDisputeById(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, dispute_id : StrictInt = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGFetchDisputeById(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, dispute_id : StrictInt = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Disputes by Dispute ID # noqa: E501 Use this API to get Dispute details by specifying the Dispute ID. # noqa: E501 @@ -682,7 +694,7 @@ def PGFetchDisputeById(self, x_api_version : Annotated[StrictStr, Field(..., des :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -708,18 +720,19 @@ def PGFetchDisputeById(self, x_api_version : Annotated[StrictStr, Field(..., des :rtype: tuple(DisputesEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -771,7 +784,7 @@ def PGFetchDisputeById(self, x_api_version : Annotated[StrictStr, Field(..., des if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -813,7 +826,7 @@ def PGFetchDisputeById(self, x_api_version : Annotated[StrictStr, Field(..., des collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGFetchOrderDisputes(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : StrictStr = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGFetchOrderDisputes(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : StrictStr = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Disputes by Order Id # noqa: E501 Use this API to get all Dispute details by specifying the Order ID. # noqa: E501 @@ -830,7 +843,7 @@ def PGFetchOrderDisputes(self, x_api_version : Annotated[StrictStr, Field(..., d :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -856,18 +869,19 @@ def PGFetchOrderDisputes(self, x_api_version : Annotated[StrictStr, Field(..., d :rtype: tuple(List[DisputesEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -919,7 +933,7 @@ def PGFetchOrderDisputes(self, x_api_version : Annotated[StrictStr, Field(..., d if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -961,7 +975,7 @@ def PGFetchOrderDisputes(self, x_api_version : Annotated[StrictStr, Field(..., d collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGFetchPaymentDisputes(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_payment_id : StrictInt = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGFetchPaymentDisputes(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_payment_id : StrictInt = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Disputes by Payment ID # noqa: E501 Use this API to get all Dispute details by specifying the Payment ID. # noqa: E501 @@ -978,7 +992,7 @@ def PGFetchPaymentDisputes(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -1004,18 +1018,19 @@ def PGFetchPaymentDisputes(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(List[DisputesEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -1067,7 +1082,7 @@ def PGFetchPaymentDisputes(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -1109,7 +1124,7 @@ def PGFetchPaymentDisputes(self, x_api_version : Annotated[StrictStr, Field(..., collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGUploadDisputesDocuments(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, dispute_id : StrictInt = None, file : Annotated[StrictStr, Field(..., description="File types supported are jpeg, jpg, png, pdf and maximum file size allowed is 20 MB.")] = None, doc_type : Annotated[StrictStr, Field(..., description="Mention the type of the document you are uploading. Possible values :- Delivery/Service Proof, Shipping Proof, Statement of Service, Proof of Service Used, Cancellation of Service Proof, Refund Proof, Business model explanation, Extra Charges Declaration, Terms & Conditions, Customer Withdrawal Letter, Certificate of Authenticity, Reseller Agreement. You can use get evidences to contest dispute API to fetch set of documents required to contest particular dispute.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, note : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGUploadDisputesDocuments(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, dispute_id : StrictInt = None, file : Annotated[StrictStr, Field(description="File types supported are jpeg, jpg, png, pdf and maximum file size allowed is 20 MB.")] = None, doc_type : Annotated[StrictStr, Field(description="Mention the type of the document you are uploading. Possible values :- Delivery/Service Proof, Shipping Proof, Statement of Service, Proof of Service Used, Cancellation of Service Proof, Refund Proof, Business model explanation, Extra Charges Declaration, Terms & Conditions, Customer Withdrawal Letter, Certificate of Authenticity, Reseller Agreement. You can use get evidences to contest dispute API to fetch set of documents required to contest particular dispute.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, note : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501 """Submit Evidence to contest the Dispute by Dispute ID # noqa: E501 Use this API to Submit the Evidences to contest the Dispute by specifying the Dispute ID. # noqa: E501 @@ -1130,7 +1145,7 @@ def PGUploadDisputesDocuments(self, x_api_version : Annotated[StrictStr, Field(. :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param note: :type note: str :param async_req: Whether to execute the request asynchronously. @@ -1158,18 +1173,19 @@ def PGUploadDisputesDocuments(self, x_api_version : Annotated[StrictStr, Field(. :rtype: tuple(List[DisputesEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -1224,7 +1240,7 @@ def PGUploadDisputesDocuments(self, x_api_version : Annotated[StrictStr, Field(. if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -1283,7 +1299,7 @@ def PGUploadDisputesDocuments(self, x_api_version : Annotated[StrictStr, Field(. _request_auth=_params.get('_request_auth')) @validate_arguments - def PGOrderSplitAfterPayment(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, split_after_payment_request : Annotated[Optional[SplitAfterPaymentRequest], Field(description="Request Body to Create Split for an order.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGOrderSplitAfterPayment(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, split_after_payment_request : Annotated[Optional[SplitAfterPaymentRequest], Field(description="Request Body to Create Split for an order.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Split After Payment # noqa: E501 Split After Payment API splits the payments to vendors after successful payment from the customers. # noqa: E501 @@ -1300,7 +1316,7 @@ def PGOrderSplitAfterPayment(self, x_api_version : Annotated[StrictStr, Field(.. :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param split_after_payment_request: Request Body to Create Split for an order. :type split_after_payment_request: SplitAfterPaymentRequest :param async_req: Whether to execute the request asynchronously. @@ -1328,18 +1344,19 @@ def PGOrderSplitAfterPayment(self, x_api_version : Annotated[StrictStr, Field(.. :rtype: tuple(SplitAfterPaymentResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -1392,7 +1409,7 @@ def PGOrderSplitAfterPayment(self, x_api_version : Annotated[StrictStr, Field(.. if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -1440,7 +1457,7 @@ def PGOrderSplitAfterPayment(self, x_api_version : Annotated[StrictStr, Field(.. collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGOrderStaticSplit(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, static_split_request : Annotated[Optional[StaticSplitRequest], Field(description="Static Split")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGOrderStaticSplit(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, static_split_request : Annotated[Optional[StaticSplitRequest], Field(description="Static Split")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Static Split Configuration # noqa: E501 This API will create a static split scheme wherein you can define the split type and the vendor-wise split percentage. # noqa: E501 @@ -1455,7 +1472,7 @@ def PGOrderStaticSplit(self, x_api_version : Annotated[StrictStr, Field(..., des :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param static_split_request: Static Split :type static_split_request: StaticSplitRequest :param async_req: Whether to execute the request asynchronously. @@ -1483,18 +1500,19 @@ def PGOrderStaticSplit(self, x_api_version : Annotated[StrictStr, Field(..., des :rtype: tuple(StaticSplitResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -1543,7 +1561,7 @@ def PGOrderStaticSplit(self, x_api_version : Annotated[StrictStr, Field(..., des if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -1589,7 +1607,7 @@ def PGOrderStaticSplit(self, x_api_version : Annotated[StrictStr, Field(..., des collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGSplitOrderRecon(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGSplitOrderRecon(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Split and Settlement Details by OrderID # noqa: E501 Use this API to get all the split details, settled and unsettled transactions details of each vendor who were part of a particular order by providing order Id or start date and end date. # noqa: E501 @@ -1606,7 +1624,7 @@ def PGSplitOrderRecon(self, x_api_version : Annotated[StrictStr, Field(..., desc :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -1632,18 +1650,19 @@ def PGSplitOrderRecon(self, x_api_version : Annotated[StrictStr, Field(..., desc :rtype: tuple(SplitOrderReconSuccessResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -1695,7 +1714,7 @@ def PGSplitOrderRecon(self, x_api_version : Annotated[StrictStr, Field(..., desc if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -1731,7 +1750,7 @@ def PGSplitOrderRecon(self, x_api_version : Annotated[StrictStr, Field(..., desc collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesCreateAdjustment(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, vendor_adjustment_request : Annotated[Optional[VendorAdjustmentRequest], Field(description="Vendor Adjustment Request Body.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesCreateAdjustment(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, vendor_adjustment_request : Annotated[Optional[VendorAdjustmentRequest], Field(description="Vendor Adjustment Request Body.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Adjustment # noqa: E501 The Create Adjustment API will create a adjustment request either from vendor to the merchant or from merchant to the vendor. # noqa: E501 @@ -1748,7 +1767,7 @@ def PGesCreateAdjustment(self, x_api_version : Annotated[StrictStr, Field(..., d :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param vendor_adjustment_request: Vendor Adjustment Request Body. :type vendor_adjustment_request: VendorAdjustmentRequest :param async_req: Whether to execute the request asynchronously. @@ -1776,18 +1795,19 @@ def PGesCreateAdjustment(self, x_api_version : Annotated[StrictStr, Field(..., d :rtype: tuple(VendorAdjustmentSuccessResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -1840,7 +1860,7 @@ def PGesCreateAdjustment(self, x_api_version : Annotated[StrictStr, Field(..., d if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -1886,7 +1906,7 @@ def PGesCreateAdjustment(self, x_api_version : Annotated[StrictStr, Field(..., d collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesCreateOnDemandTransfer(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, adjust_vendor_balance_request : Annotated[Optional[AdjustVendorBalanceRequest], Field(description="Adjust Vendor Balance Request Body.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesCreateOnDemandTransfer(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, adjust_vendor_balance_request : Annotated[Optional[AdjustVendorBalanceRequest], Field(description="Adjust Vendor Balance Request Body.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create On Demand Transfer # noqa: E501 The Create On Demand Transfer API will create a new on-demand request either from to the merchant or from to the vendor. # noqa: E501 @@ -1903,7 +1923,7 @@ def PGesCreateOnDemandTransfer(self, x_api_version : Annotated[StrictStr, Field( :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param adjust_vendor_balance_request: Adjust Vendor Balance Request Body. :type adjust_vendor_balance_request: AdjustVendorBalanceRequest :param async_req: Whether to execute the request asynchronously. @@ -1931,18 +1951,19 @@ def PGesCreateOnDemandTransfer(self, x_api_version : Annotated[StrictStr, Field( :rtype: tuple(AdjustVendorBalanceResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -1995,7 +2016,7 @@ def PGesCreateOnDemandTransfer(self, x_api_version : Annotated[StrictStr, Field( if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -2041,7 +2062,7 @@ def PGesCreateOnDemandTransfer(self, x_api_version : Annotated[StrictStr, Field( collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesCreateVendors(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, create_vendor_request : Annotated[Optional[CreateVendorRequest], Field(description="Create Vendor Request Body.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesCreateVendors(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, create_vendor_request : Annotated[Optional[CreateVendorRequest], Field(description="Create Vendor Request Body.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create vendor # noqa: E501 Use this API to create a new vendor to your EasySplit account along with the KYC details. Provide KYC details such as account_type, business_type, gst, cin, pan, passport number and so on. # noqa: E501 @@ -2056,7 +2077,7 @@ def PGesCreateVendors(self, x_api_version : Annotated[StrictStr, Field(..., desc :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param create_vendor_request: Create Vendor Request Body. :type create_vendor_request: CreateVendorRequest :param async_req: Whether to execute the request asynchronously. @@ -2084,18 +2105,19 @@ def PGesCreateVendors(self, x_api_version : Annotated[StrictStr, Field(..., desc :rtype: tuple(CreateVendorResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -2144,7 +2166,7 @@ def PGesCreateVendors(self, x_api_version : Annotated[StrictStr, Field(..., desc if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -2190,7 +2212,7 @@ def PGesCreateVendors(self, x_api_version : Annotated[StrictStr, Field(..., desc collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesDownloadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, doc_type : Annotated[StrictStr, Field(..., description="Mention the document type that has to be downloaded. Only an uploaded document can be downloaded.")] = None, vendor_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesDownloadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, doc_type : Annotated[StrictStr, Field(description="Mention the document type that has to be downloaded. Only an uploaded document can be downloaded.")] = None, vendor_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Download Vendor Documents # noqa: E501 Use this API to download the uploaded KYC documents of that particular vendor. Provide the document type. Click the link from the sample request to download the KYC document. # noqa: E501 @@ -2209,7 +2231,7 @@ def PGesDownloadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(... :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -2235,18 +2257,19 @@ def PGesDownloadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(... :rtype: tuple(VendorDocumentDownloadResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -2302,7 +2325,7 @@ def PGesDownloadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(... if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -2337,7 +2360,7 @@ def PGesDownloadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(... collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesFetchVendors(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesFetchVendors(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Vendor All Details # noqa: E501 Use this API to get the details of a specific vendor associated with your Easy Split account. # noqa: E501 @@ -2354,7 +2377,7 @@ def PGesFetchVendors(self, x_api_version : Annotated[StrictStr, Field(..., descr :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -2380,18 +2403,19 @@ def PGesFetchVendors(self, x_api_version : Annotated[StrictStr, Field(..., descr :rtype: tuple(VendorEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -2443,7 +2467,7 @@ def PGesFetchVendors(self, x_api_version : Annotated[StrictStr, Field(..., descr if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -2479,7 +2503,7 @@ def PGesFetchVendors(self, x_api_version : Annotated[StrictStr, Field(..., descr collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesGetVendorBalance(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesGetVendorBalance(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get On Demand Balance # noqa: E501 This API fetches the available amount with the merchant, vendor, and the unsettled amount for the merchant as well as the vendor. # noqa: E501 @@ -2496,7 +2520,7 @@ def PGesGetVendorBalance(self, x_api_version : Annotated[StrictStr, Field(..., d :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -2522,18 +2546,19 @@ def PGesGetVendorBalance(self, x_api_version : Annotated[StrictStr, Field(..., d :rtype: tuple(VendorBalance, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -2585,7 +2610,7 @@ def PGesGetVendorBalance(self, x_api_version : Annotated[StrictStr, Field(..., d if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -2621,7 +2646,7 @@ def PGesGetVendorBalance(self, x_api_version : Annotated[StrictStr, Field(..., d collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesGetVendorBalanceTransferCharges(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, amount : Annotated[Union[StrictFloat, StrictInt], Field(..., description="Specify the amount for which you want to view the service charges and service taxes in the response.")] = None, rate_type : Annotated[StrictStr, Field(..., description="Mention the type of rate for which you want to check the charges. Possible value: VENDOR_ON_DEMAND")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesGetVendorBalanceTransferCharges(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, amount : Annotated[Union[StrictFloat, StrictInt], Field(description="Specify the amount for which you want to view the service charges and service taxes in the response.")] = None, rate_type : Annotated[StrictStr, Field(description="Mention the type of rate for which you want to check the charges. Possible value: VENDOR_ON_DEMAND")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Vendor Balance Transfer Charges # noqa: E501 This API returns the applicable service charge and service tax for a vendor balance transfer, based on the provided amount and rate type. # noqa: E501 @@ -2640,7 +2665,7 @@ def PGesGetVendorBalanceTransferCharges(self, x_api_version : Annotated[StrictSt :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -2666,18 +2691,19 @@ def PGesGetVendorBalanceTransferCharges(self, x_api_version : Annotated[StrictSt :rtype: tuple(VendorBalanceTransferCharges, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -2733,7 +2759,7 @@ def PGesGetVendorBalanceTransferCharges(self, x_api_version : Annotated[StrictSt if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -2769,7 +2795,7 @@ def PGesGetVendorBalanceTransferCharges(self, x_api_version : Annotated[StrictSt collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesGetVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesGetVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Vendor All Documents Status # noqa: E501 Use this API to fetch the details of all the KYC details of a particular vendor. # noqa: E501 @@ -2786,7 +2812,7 @@ def PGesGetVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., des :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -2812,18 +2838,19 @@ def PGesGetVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., des :rtype: tuple(VendorDocumentsResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -2875,7 +2902,7 @@ def PGesGetVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., des if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -2911,7 +2938,7 @@ def PGesGetVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., des collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesOrderRecon(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, es_order_recon_request : Annotated[Optional[ESOrderReconRequest], Field(description="Get Split and Settlement Details by OrderID v2.0")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesOrderRecon(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, es_order_recon_request : Annotated[Optional[ESOrderReconRequest], Field(description="Get Split and Settlement Details by OrderID v2.0")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Split and Settlement Details by OrderID v2.0 # noqa: E501 Use this API to get all the split details, settled and unsettled transactions details of each vendor who were part of a particular order by providing order Id or start date and end date. # noqa: E501 @@ -2926,7 +2953,7 @@ def PGesOrderRecon(self, x_api_version : Annotated[StrictStr, Field(..., descrip :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param es_order_recon_request: Get Split and Settlement Details by OrderID v2.0 :type es_order_recon_request: ESOrderReconRequest :param async_req: Whether to execute the request asynchronously. @@ -2954,18 +2981,19 @@ def PGesOrderRecon(self, x_api_version : Annotated[StrictStr, Field(..., descrip :rtype: tuple(ESOrderReconResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -3014,7 +3042,7 @@ def PGesOrderRecon(self, x_api_version : Annotated[StrictStr, Field(..., descrip if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -3062,7 +3090,7 @@ def PGesOrderRecon(self, x_api_version : Annotated[StrictStr, Field(..., descrip collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesUpdateVendors(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, update_vendor_request : Annotated[Optional[UpdateVendorRequest], Field(description="Create Vendor Request Body.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesUpdateVendors(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, update_vendor_request : Annotated[Optional[UpdateVendorRequest], Field(description="Create Vendor Request Body.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Update vendor Details # noqa: E501 Use this API to edit the existing vendor details added to your EasySplit account. You can edit vendor details such as name, email, phone number, upi details, and any of the KYC details. # noqa: E501 @@ -3079,7 +3107,7 @@ def PGesUpdateVendors(self, x_api_version : Annotated[StrictStr, Field(..., desc :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param update_vendor_request: Create Vendor Request Body. :type update_vendor_request: UpdateVendorRequest :param async_req: Whether to execute the request asynchronously. @@ -3107,18 +3135,19 @@ def PGesUpdateVendors(self, x_api_version : Annotated[StrictStr, Field(..., desc :rtype: tuple(UpdateVendorResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -3171,7 +3200,7 @@ def PGesUpdateVendors(self, x_api_version : Annotated[StrictStr, Field(..., desc if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -3217,7 +3246,7 @@ def PGesUpdateVendors(self, x_api_version : Annotated[StrictStr, Field(..., desc collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGesUploadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, doc_type : Annotated[Optional[StrictStr], Field(description="Mention the type of the document you are uploading. Possible values: UIDAI_FRONT, UIDAI_BACK, UIDAI_NUMBER, DL, DL_NUMBER, PASSPORT_FRONT, PASSPORT_BACK, PASSPORT_NUMBER, VOTER_ID, VOTER_ID_NUMBER, PAN, PAN_NUMBER, GST, GSTIN_NUMBER, CIN, CIN_NUMBER, NBFC_CERTIFICATE. If the doc type ends with a number you should add the doc value else upload the doc file.")] = None, doc_value : Annotated[Optional[StrictStr], Field(description="Enter the display name of the uploaded file.")] = None, file : Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGesUploadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, vendor_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your vendor.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, doc_type : Annotated[Optional[StrictStr], Field(description="Mention the type of the document you are uploading. Possible values: UIDAI_FRONT, UIDAI_BACK, UIDAI_NUMBER, DL, DL_NUMBER, PASSPORT_FRONT, PASSPORT_BACK, PASSPORT_NUMBER, VOTER_ID, VOTER_ID_NUMBER, PAN, PAN_NUMBER, GST, GSTIN_NUMBER, CIN, CIN_NUMBER, NBFC_CERTIFICATE. If the doc type ends with a number you should add the doc value else upload the doc file.")] = None, doc_value : Annotated[Optional[StrictStr], Field(description="Enter the display name of the uploaded file.")] = None, file : Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Upload Vendor Docs # noqa: E501 Use this API to upload KYC documents of a specific vendor. # noqa: E501 @@ -3234,7 +3263,7 @@ def PGesUploadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param doc_type: Mention the type of the document you are uploading. Possible values: UIDAI_FRONT, UIDAI_BACK, UIDAI_NUMBER, DL, DL_NUMBER, PASSPORT_FRONT, PASSPORT_BACK, PASSPORT_NUMBER, VOTER_ID, VOTER_ID_NUMBER, PAN, PAN_NUMBER, GST, GSTIN_NUMBER, CIN, CIN_NUMBER, NBFC_CERTIFICATE. If the doc type ends with a number you should add the doc value else upload the doc file. :type doc_type: str :param doc_value: Enter the display name of the uploaded file. @@ -3266,18 +3295,19 @@ def PGesUploadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(UploadVendorDocumentsResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -3332,7 +3362,7 @@ def PGesUploadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -3385,7 +3415,7 @@ def PGesUploadVendorsDocs(self, x_api_version : Annotated[StrictStr, Field(..., _request_auth=_params.get('_request_auth')) @validate_arguments - def PGEligibilityFetchCardlessEmi(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, eligibility_fetch_cardless_emi_request : Annotated[EligibilityFetchCardlessEMIRequest, Field(..., description="Request Body to get eligible cardless emi options for a customer and order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGEligibilityFetchCardlessEmi(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, eligibility_fetch_cardless_emi_request : Annotated[EligibilityFetchCardlessEMIRequest, Field(description="Request Body to get eligible cardless emi options for a customer and order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Eligible Cardless EMI Payment Methods for a customer on an order # noqa: E501 Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number. # noqa: E501 @@ -3402,7 +3432,7 @@ def PGEligibilityFetchCardlessEmi(self, x_api_version : Annotated[StrictStr, Fie :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -3428,18 +3458,19 @@ def PGEligibilityFetchCardlessEmi(self, x_api_version : Annotated[StrictStr, Fie :rtype: tuple(List[EligibilityCardlessEMIEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -3488,7 +3519,7 @@ def PGEligibilityFetchCardlessEmi(self, x_api_version : Annotated[StrictStr, Fie if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -3541,7 +3572,7 @@ def PGEligibilityFetchCardlessEmi(self, x_api_version : Annotated[StrictStr, Fie collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGEligibilityFetchOffers(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, eligibility_fetch_offers_request : Annotated[EligibilityFetchOffersRequest, Field(..., description="Request Body to get eligible offers for a customer and order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGEligibilityFetchOffers(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, eligibility_fetch_offers_request : Annotated[EligibilityFetchOffersRequest, Field(description="Request Body to get eligible offers for a customer and order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Eligible Offers for an Order # noqa: E501 Use this API to get eligible offers for an order_id or order amount. # noqa: E501 @@ -3558,7 +3589,7 @@ def PGEligibilityFetchOffers(self, x_api_version : Annotated[StrictStr, Field(.. :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -3584,18 +3615,19 @@ def PGEligibilityFetchOffers(self, x_api_version : Annotated[StrictStr, Field(.. :rtype: tuple(List[EligibilityOfferEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -3644,7 +3676,7 @@ def PGEligibilityFetchOffers(self, x_api_version : Annotated[StrictStr, Field(.. if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -3696,7 +3728,7 @@ def PGEligibilityFetchOffers(self, x_api_version : Annotated[StrictStr, Field(.. collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGEligibilityFetchPaylater(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, eligibility_fetch_paylater_request : Annotated[EligibilityFetchPaylaterRequest, Field(..., description="Request Body to get eligible paylater options for a customer and order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGEligibilityFetchPaylater(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, eligibility_fetch_paylater_request : Annotated[EligibilityFetchPaylaterRequest, Field(description="Request Body to get eligible paylater options for a customer and order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Eligible Paylater for a customer on an order # noqa: E501 Use this API to get eligible Paylater Payment Methods for a customer on an order. # noqa: E501 @@ -3713,7 +3745,7 @@ def PGEligibilityFetchPaylater(self, x_api_version : Annotated[StrictStr, Field( :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -3739,18 +3771,19 @@ def PGEligibilityFetchPaylater(self, x_api_version : Annotated[StrictStr, Field( :rtype: tuple(List[EligibilityPaylaterEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -3799,7 +3832,7 @@ def PGEligibilityFetchPaylater(self, x_api_version : Annotated[StrictStr, Field( if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -3852,7 +3885,7 @@ def PGEligibilityFetchPaylater(self, x_api_version : Annotated[StrictStr, Field( collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGEligibilityFetchPaymentMethods(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, eligibility_fetch_payment_methods_request : Annotated[EligibilityFetchPaymentMethodsRequest, Field(..., description="Request Body to get eligible payment methods for an account and order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGEligibilityFetchPaymentMethods(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, eligibility_fetch_payment_methods_request : Annotated[EligibilityFetchPaymentMethodsRequest, Field(description="Request Body to get eligible payment methods for an account and order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get eligible Payment Methods # noqa: E501 Use this API to get eligible Payment Methods # noqa: E501 @@ -3869,7 +3902,7 @@ def PGEligibilityFetchPaymentMethods(self, x_api_version : Annotated[StrictStr, :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -3895,18 +3928,19 @@ def PGEligibilityFetchPaymentMethods(self, x_api_version : Annotated[StrictStr, :rtype: tuple(List[EligibilityPaymentMethodsEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -3955,7 +3989,7 @@ def PGEligibilityFetchPaymentMethods(self, x_api_version : Annotated[StrictStr, if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -4009,7 +4043,7 @@ def PGEligibilityFetchPaymentMethods(self, x_api_version : Annotated[StrictStr, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGCreateOffer(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, create_offer_request : Annotated[CreateOfferRequest, Field(..., description="Request body to create an offer at Cashfree")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGCreateOffer(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, create_offer_request : Annotated[CreateOfferRequest, Field(description="Request body to create an offer at Cashfree")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Offer # noqa: E501 Use this API to create offers with Cashfree from your backend # noqa: E501 @@ -4026,7 +4060,7 @@ def PGCreateOffer(self, x_api_version : Annotated[StrictStr, Field(..., descript :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -4052,18 +4086,19 @@ def PGCreateOffer(self, x_api_version : Annotated[StrictStr, Field(..., descript :rtype: tuple(OfferEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -4112,7 +4147,7 @@ def PGCreateOffer(self, x_api_version : Annotated[StrictStr, Field(..., descript if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -4164,7 +4199,7 @@ def PGCreateOffer(self, x_api_version : Annotated[StrictStr, Field(..., descript collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGFetchOffer(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, offer_id : Annotated[StrictStr, Field(..., description="The offer ID for which you want to view the offer details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGFetchOffer(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, offer_id : Annotated[StrictStr, Field(description="The offer ID for which you want to view the offer details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Offer by ID # noqa: E501 Use this API to get offer by offer_id # noqa: E501 @@ -4181,7 +4216,7 @@ def PGFetchOffer(self, x_api_version : Annotated[StrictStr, Field(..., descripti :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -4207,18 +4242,19 @@ def PGFetchOffer(self, x_api_version : Annotated[StrictStr, Field(..., descripti :rtype: tuple(OfferEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -4270,7 +4306,7 @@ def PGFetchOffer(self, x_api_version : Annotated[StrictStr, Field(..., descripti if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -4313,7 +4349,7 @@ def PGFetchOffer(self, x_api_version : Annotated[StrictStr, Field(..., descripti _request_auth=_params.get('_request_auth')) @validate_arguments - def PGCreateOrder(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, create_order_request : Annotated[CreateOrderRequest, Field(..., description="Request body to create an order at cashfree")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGCreateOrder(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, create_order_request : Annotated[CreateOrderRequest, Field(description="Request body to create an order at cashfree")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Order # noqa: E501 ### Order An order is an entity which has a amount and currency associated with it. It is something for which you want to collect payment for. Use this API to create orders with Cashfree from your backend to get a `payment_sessions_id`. You can use the `payment_sessions_id` to create a transaction for the order. # noqa: E501 @@ -4330,7 +4366,7 @@ def PGCreateOrder(self, x_api_version : Annotated[StrictStr, Field(..., descript :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -4356,18 +4392,19 @@ def PGCreateOrder(self, x_api_version : Annotated[StrictStr, Field(..., descript :rtype: tuple(OrderEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -4416,7 +4453,7 @@ def PGCreateOrder(self, x_api_version : Annotated[StrictStr, Field(..., descript if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -4468,7 +4505,7 @@ def PGCreateOrder(self, x_api_version : Annotated[StrictStr, Field(..., descript collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGFetchOrder(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGFetchOrder(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Order # noqa: E501 Use this API to fetch the order that was created at Cashfree's using the `order_id`. ## When to use this API - To check the status of your order - Once the order is PAID - Once your customer returns to `return_url` # noqa: E501 @@ -4485,7 +4522,7 @@ def PGFetchOrder(self, x_api_version : Annotated[StrictStr, Field(..., descripti :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -4511,18 +4548,19 @@ def PGFetchOrder(self, x_api_version : Annotated[StrictStr, Field(..., descripti :rtype: tuple(OrderEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -4574,7 +4612,7 @@ def PGFetchOrder(self, x_api_version : Annotated[StrictStr, Field(..., descripti if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -4616,7 +4654,7 @@ def PGFetchOrder(self, x_api_version : Annotated[StrictStr, Field(..., descripti collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGFetchOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGFetchOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Order Extended # noqa: E501 Use this API to fetch the order related data like address,cart,offers,customer details etc using the Cashfree's `order_id`. ## When to use this API - To get the extended data associated with order. - Once the order is PAID - Once your customer returns to `return_url` # noqa: E501 @@ -4633,7 +4671,7 @@ def PGFetchOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(.. :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -4659,18 +4697,19 @@ def PGFetchOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(.. :rtype: tuple(OrderExtendedDataEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -4722,7 +4761,7 @@ def PGFetchOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(.. if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -4764,7 +4803,7 @@ def PGFetchOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(.. collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGTerminateOrder(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, terminate_order_request : Annotated[TerminateOrderRequest, Field(..., description="Request body to terminate an order at cashfree")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGTerminateOrder(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, terminate_order_request : Annotated[TerminateOrderRequest, Field(description="Request body to terminate an order at cashfree")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Terminate Order # noqa: E501 Use this API to terminate the order that was created at Cashfree's using the `order_id`. # noqa: E501 @@ -4783,7 +4822,7 @@ def PGTerminateOrder(self, x_api_version : Annotated[StrictStr, Field(..., descr :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -4809,18 +4848,19 @@ def PGTerminateOrder(self, x_api_version : Annotated[StrictStr, Field(..., descr :rtype: tuple(OrderEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -4873,7 +4913,7 @@ def PGTerminateOrder(self, x_api_version : Annotated[StrictStr, Field(..., descr if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -4925,7 +4965,7 @@ def PGTerminateOrder(self, x_api_version : Annotated[StrictStr, Field(..., descr collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGUpdateOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, update_order_extended_request : Annotated[UpdateOrderExtendedRequest, Field(..., description="Request Body to Update extended data related to order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGUpdateOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, update_order_extended_request : Annotated[UpdateOrderExtendedRequest, Field(description="Request Body to Update extended data related to order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Update Order Extended # noqa: E501 Use this api to update the order related data like shipment details,order delivery status etc. ## When to use this API - To provide/update the shipment details or order delivery status. - Once the order is PAID. # noqa: E501 @@ -4944,7 +4984,7 @@ def PGUpdateOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(. :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -4970,18 +5010,19 @@ def PGUpdateOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(. :rtype: tuple(UpdateOrderExtendedDataEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -5034,7 +5075,7 @@ def PGUpdateOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(. if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -5087,7 +5128,7 @@ def PGUpdateOrderExtendedData(self, x_api_version : Annotated[StrictStr, Field(. _request_auth=_params.get('_request_auth')) @validate_arguments - def PGFetchRecon(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, fetch_recon_request : Annotated[FetchReconRequest, Field(..., description="Request Body for the reconciliation")] = None, content_type : Annotated[Optional[StrictStr], Field(description="application/json")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, accept : Annotated[Optional[StrictStr], Field(description="application/json")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGFetchRecon(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, fetch_recon_request : Annotated[FetchReconRequest, Field(description="Request Body for the reconciliation")] = None, content_type : Annotated[Optional[StrictStr], Field(description="application/json")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, accept : Annotated[Optional[StrictStr], Field(description="application/json")] = None, **kwargs) -> ApiResponse: # noqa: E501 """PG Reconciliation # noqa: E501 - Use this API to get the payment gateway reconciliation details with date range. - It will have events for your payment account # noqa: E501 @@ -5106,7 +5147,7 @@ def PGFetchRecon(self, x_api_version : Annotated[StrictStr, Field(..., descripti :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param accept: application/json :type accept: str :param async_req: Whether to execute the request asynchronously. @@ -5134,18 +5175,19 @@ def PGFetchRecon(self, x_api_version : Annotated[StrictStr, Field(..., descripti :rtype: tuple(ReconEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -5196,7 +5238,7 @@ def PGFetchRecon(self, x_api_version : Annotated[StrictStr, Field(..., descripti if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -5249,7 +5291,7 @@ def PGFetchRecon(self, x_api_version : Annotated[StrictStr, Field(..., descripti _request_auth=_params.get('_request_auth')) @validate_arguments - def PGCancelLink(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, link_id : Annotated[StrictStr, Field(..., description="The payment link ID for which you want to view the details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGCancelLink(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, link_id : Annotated[StrictStr, Field(description="The payment link ID for which you want to view the details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Cancel Payment Link # noqa: E501 Use this API to cancel a payment link. No further payments can be done against a cancelled link. Only a link in ACTIVE status can be cancelled. # noqa: E501 @@ -5266,7 +5308,7 @@ def PGCancelLink(self, x_api_version : Annotated[StrictStr, Field(..., descripti :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -5292,18 +5334,19 @@ def PGCancelLink(self, x_api_version : Annotated[StrictStr, Field(..., descripti :rtype: tuple(LinkEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -5355,7 +5398,7 @@ def PGCancelLink(self, x_api_version : Annotated[StrictStr, Field(..., descripti if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -5397,7 +5440,7 @@ def PGCancelLink(self, x_api_version : Annotated[StrictStr, Field(..., descripti collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGCreateLink(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, create_link_request : Annotated[CreateLinkRequest, Field(..., description="Request Body to Create Payment Links")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGCreateLink(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, create_link_request : Annotated[CreateLinkRequest, Field(description="Request Body to Create Payment Links")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Payment Link # noqa: E501 Use this API to create a new payment link. The created payment link url will be available in the API response parameter link_url. # noqa: E501 @@ -5414,7 +5457,7 @@ def PGCreateLink(self, x_api_version : Annotated[StrictStr, Field(..., descripti :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -5440,18 +5483,19 @@ def PGCreateLink(self, x_api_version : Annotated[StrictStr, Field(..., descripti :rtype: tuple(LinkEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -5500,7 +5544,7 @@ def PGCreateLink(self, x_api_version : Annotated[StrictStr, Field(..., descripti if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -5552,7 +5596,7 @@ def PGCreateLink(self, x_api_version : Annotated[StrictStr, Field(..., descripti collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGFetchLink(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, link_id : Annotated[StrictStr, Field(..., description="The payment link ID for which you want to view the details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGFetchLink(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, link_id : Annotated[StrictStr, Field(description="The payment link ID for which you want to view the details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch Payment Link Details # noqa: E501 Use this API to view all details and status of a payment link. # noqa: E501 @@ -5569,7 +5613,7 @@ def PGFetchLink(self, x_api_version : Annotated[StrictStr, Field(..., descriptio :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -5595,18 +5639,19 @@ def PGFetchLink(self, x_api_version : Annotated[StrictStr, Field(..., descriptio :rtype: tuple(LinkEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -5658,7 +5703,7 @@ def PGFetchLink(self, x_api_version : Annotated[StrictStr, Field(..., descriptio if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -5701,7 +5746,7 @@ def PGFetchLink(self, x_api_version : Annotated[StrictStr, Field(..., descriptio collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGLinkFetchOrders(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, link_id : Annotated[StrictStr, Field(..., description="The payment link ID for which you want to view the details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, status : Annotated[Optional[StrictStr], Field(description="Mention What is status of orders you want to fetch, default is PAID. Possible value: ALL, PAID")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGLinkFetchOrders(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, link_id : Annotated[StrictStr, Field(description="The payment link ID for which you want to view the details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, status : Annotated[Optional[StrictStr], Field(description="Mention What is status of orders you want to fetch, default is PAID. Possible value: ALL, PAID")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Orders for a Payment Link # noqa: E501 Use this API to view all order details for a payment link. # noqa: E501 @@ -5718,7 +5763,7 @@ def PGLinkFetchOrders(self, x_api_version : Annotated[StrictStr, Field(..., desc :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param status: Mention What is status of orders you want to fetch, default is PAID. Possible value: ALL, PAID :type status: str :param async_req: Whether to execute the request asynchronously. @@ -5746,18 +5791,19 @@ def PGLinkFetchOrders(self, x_api_version : Annotated[StrictStr, Field(..., desc :rtype: tuple(List[PaymentLinkOrderEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -5813,7 +5859,7 @@ def PGLinkFetchOrders(self, x_api_version : Annotated[StrictStr, Field(..., desc if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -5856,7 +5902,7 @@ def PGLinkFetchOrders(self, x_api_version : Annotated[StrictStr, Field(..., desc _request_auth=_params.get('_request_auth')) @validate_arguments - def PGAuthorizeOrder(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, authorize_order_request : Annotated[AuthorizeOrderRequest, Field(..., description="Request to Capture or Void Transactions")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGAuthorizeOrder(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, authorize_order_request : Annotated[AuthorizeOrderRequest, Field(description="Request to Capture or Void Transactions")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Preauthorization # noqa: E501 Use this API to capture or void a preauthorized payment # noqa: E501 @@ -5875,7 +5921,7 @@ def PGAuthorizeOrder(self, x_api_version : Annotated[StrictStr, Field(..., descr :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -5901,18 +5947,19 @@ def PGAuthorizeOrder(self, x_api_version : Annotated[StrictStr, Field(..., descr :rtype: tuple(PaymentEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -5965,7 +6012,7 @@ def PGAuthorizeOrder(self, x_api_version : Annotated[StrictStr, Field(..., descr if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -6018,7 +6065,7 @@ def PGAuthorizeOrder(self, x_api_version : Annotated[StrictStr, Field(..., descr collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGOrderAuthenticatePayment(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_payment_id : Annotated[StrictStr, Field(..., description="The Cashfree payment or transaction ID.")] = None, order_authenticate_payment_request : Annotated[OrderAuthenticatePaymentRequest, Field(..., description="Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGOrderAuthenticatePayment(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_payment_id : Annotated[StrictStr, Field(description="The Cashfree payment or transaction ID.")] = None, order_authenticate_payment_request : Annotated[OrderAuthenticatePaymentRequest, Field(description="Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Submit or Resend OTP # noqa: E501 If you accept OTP on your own page, you can use the below API to send OTP to Cashfree. # noqa: E501 @@ -6037,7 +6084,7 @@ def PGOrderAuthenticatePayment(self, x_api_version : Annotated[StrictStr, Field( :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -6063,18 +6110,19 @@ def PGOrderAuthenticatePayment(self, x_api_version : Annotated[StrictStr, Field( :rtype: tuple(OrderAuthenticateEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -6127,7 +6175,7 @@ def PGOrderAuthenticatePayment(self, x_api_version : Annotated[StrictStr, Field( if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -6180,7 +6228,7 @@ def PGOrderAuthenticatePayment(self, x_api_version : Annotated[StrictStr, Field( collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGOrderFetchPayment(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, cf_payment_id : Annotated[StrictStr, Field(..., description="The Cashfree payment or transaction ID.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGOrderFetchPayment(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, cf_payment_id : Annotated[StrictStr, Field(description="The Cashfree payment or transaction ID.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Payment by ID # noqa: E501 Use this API to view payment details of an order for a payment ID. # noqa: E501 @@ -6199,7 +6247,7 @@ def PGOrderFetchPayment(self, x_api_version : Annotated[StrictStr, Field(..., de :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -6225,18 +6273,19 @@ def PGOrderFetchPayment(self, x_api_version : Annotated[StrictStr, Field(..., de :rtype: tuple(PaymentEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -6292,7 +6341,7 @@ def PGOrderFetchPayment(self, x_api_version : Annotated[StrictStr, Field(..., de if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -6335,7 +6384,7 @@ def PGOrderFetchPayment(self, x_api_version : Annotated[StrictStr, Field(..., de collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGOrderFetchPayments(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGOrderFetchPayments(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Payments for an Order # noqa: E501 Use this API to view all payment details for an order. # noqa: E501 @@ -6352,7 +6401,7 @@ def PGOrderFetchPayments(self, x_api_version : Annotated[StrictStr, Field(..., d :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -6378,18 +6427,19 @@ def PGOrderFetchPayments(self, x_api_version : Annotated[StrictStr, Field(..., d :rtype: tuple(List[PaymentEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -6441,7 +6491,7 @@ def PGOrderFetchPayments(self, x_api_version : Annotated[StrictStr, Field(..., d if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -6484,7 +6534,7 @@ def PGOrderFetchPayments(self, x_api_version : Annotated[StrictStr, Field(..., d collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGPayOrder(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, pay_order_request : Annotated[PayOrderRequest, Field(..., description="Request body to create a transaction at cashfree using `payment_session_id`")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGPayOrder(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, pay_order_request : Annotated[PayOrderRequest, Field(description="Request body to create a transaction at cashfree using `payment_session_id`")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Order Pay # noqa: E501 Use this API when you have already created the orders and want Cashfree to process the payment. To use this API S2S flag needs to be enabled from the backend. In case you want to use the cards payment option the PCI DSS flag is required, for more information send an email to \"care@cashfree.com\". # noqa: E501 @@ -6501,7 +6551,7 @@ def PGPayOrder(self, x_api_version : Annotated[StrictStr, Field(..., description :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -6527,18 +6577,19 @@ def PGPayOrder(self, x_api_version : Annotated[StrictStr, Field(..., description :rtype: tuple(PayOrderEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -6587,7 +6638,7 @@ def PGPayOrder(self, x_api_version : Annotated[StrictStr, Field(..., description if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -6641,7 +6692,7 @@ def PGPayOrder(self, x_api_version : Annotated[StrictStr, Field(..., description _request_auth=_params.get('_request_auth')) @validate_arguments - def PGOrderCreateRefund(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, order_create_refund_request : Annotated[OrderCreateRefundRequest, Field(..., description="Request Body to Create Refunds")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGOrderCreateRefund(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, order_create_refund_request : Annotated[OrderCreateRefundRequest, Field(description="Request Body to Create Refunds")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Refund # noqa: E501 Use this API to initiate refunds. # noqa: E501 @@ -6660,7 +6711,7 @@ def PGOrderCreateRefund(self, x_api_version : Annotated[StrictStr, Field(..., de :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -6686,18 +6737,19 @@ def PGOrderCreateRefund(self, x_api_version : Annotated[StrictStr, Field(..., de :rtype: tuple(RefundEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -6750,7 +6802,7 @@ def PGOrderCreateRefund(self, x_api_version : Annotated[StrictStr, Field(..., de if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -6803,7 +6855,7 @@ def PGOrderCreateRefund(self, x_api_version : Annotated[StrictStr, Field(..., de collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGOrderFetchRefund(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, refund_id : Annotated[StrictStr, Field(..., description="Refund Id of the refund you want to fetch.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGOrderFetchRefund(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, refund_id : Annotated[StrictStr, Field(description="Refund Id of the refund you want to fetch.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Refund # noqa: E501 Use this API to fetch a specific refund processed on your Cashfree Account. # noqa: E501 @@ -6822,7 +6874,7 @@ def PGOrderFetchRefund(self, x_api_version : Annotated[StrictStr, Field(..., des :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -6848,18 +6900,19 @@ def PGOrderFetchRefund(self, x_api_version : Annotated[StrictStr, Field(..., des :rtype: tuple(RefundEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -6915,7 +6968,7 @@ def PGOrderFetchRefund(self, x_api_version : Annotated[StrictStr, Field(..., des if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -6958,7 +7011,7 @@ def PGOrderFetchRefund(self, x_api_version : Annotated[StrictStr, Field(..., des collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGOrderFetchRefunds(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGOrderFetchRefunds(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get All Refunds for an Order # noqa: E501 Use this API to fetch all refunds processed against an order. # noqa: E501 @@ -6975,7 +7028,7 @@ def PGOrderFetchRefunds(self, x_api_version : Annotated[StrictStr, Field(..., de :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -7001,18 +7054,19 @@ def PGOrderFetchRefunds(self, x_api_version : Annotated[StrictStr, Field(..., de :rtype: tuple(List[RefundEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -7064,7 +7118,7 @@ def PGOrderFetchRefunds(self, x_api_version : Annotated[StrictStr, Field(..., de if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -7107,7 +7161,7 @@ def PGOrderFetchRefunds(self, x_api_version : Annotated[StrictStr, Field(..., de _request_auth=_params.get('_request_auth')) @validate_arguments - def PGFetchSettlements(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, fetch_settlements_request : Annotated[FetchSettlementsRequest, Field(..., description="Request Body to get the settlements")] = None, content_type : Annotated[Optional[StrictStr], Field(description="application/json")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, accept : Annotated[Optional[StrictStr], Field(description="application/json")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGFetchSettlements(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, fetch_settlements_request : Annotated[FetchSettlementsRequest, Field(description="Request Body to get the settlements")] = None, content_type : Annotated[Optional[StrictStr], Field(description="application/json")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, accept : Annotated[Optional[StrictStr], Field(description="application/json")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get All Settlements # noqa: E501 Use this API to get all settlement details by specifying the settlement ID, settlement UTR or date range. # noqa: E501 @@ -7126,7 +7180,7 @@ def PGFetchSettlements(self, x_api_version : Annotated[StrictStr, Field(..., des :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param accept: application/json :type accept: str :param async_req: Whether to execute the request asynchronously. @@ -7154,18 +7208,19 @@ def PGFetchSettlements(self, x_api_version : Annotated[StrictStr, Field(..., des :rtype: tuple(SettlementEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -7216,7 +7271,7 @@ def PGFetchSettlements(self, x_api_version : Annotated[StrictStr, Field(..., des if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -7268,7 +7323,7 @@ def PGFetchSettlements(self, x_api_version : Annotated[StrictStr, Field(..., des collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGSettlementFetchRecon(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, settlement_fetch_recon_request : Annotated[SettlementFetchReconRequest, Field(..., description="Request Body for the settlement reconciliation")] = None, content_type : Annotated[Optional[StrictStr], Field(description="application/json")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, accept : Annotated[Optional[StrictStr], Field(description="application/json")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGSettlementFetchRecon(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, settlement_fetch_recon_request : Annotated[SettlementFetchReconRequest, Field(description="Request Body for the settlement reconciliation")] = None, content_type : Annotated[Optional[StrictStr], Field(description="application/json")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, accept : Annotated[Optional[StrictStr], Field(description="application/json")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Settlement Reconciliation # noqa: E501 - Use this API to get settlement reconciliation details using Settlement ID, settlement UTR or date range. - This API will return events for the settlement IDs you want # noqa: E501 @@ -7287,7 +7342,7 @@ def PGSettlementFetchRecon(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param accept: application/json :type accept: str :param async_req: Whether to execute the request asynchronously. @@ -7315,18 +7370,19 @@ def PGSettlementFetchRecon(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(SettlementReconEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -7377,7 +7433,7 @@ def PGSettlementFetchRecon(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -7430,7 +7486,7 @@ def PGSettlementFetchRecon(self, x_api_version : Annotated[StrictStr, Field(..., _request_auth=_params.get('_request_auth')) @validate_arguments - def MarkForSettlement(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, create_order_settlement_request_body : Annotated[Optional[CreateOrderSettlementRequestBody], Field(description="Create Order Settlement Request Body.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def MarkForSettlement(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, create_order_settlement_request_body : Annotated[Optional[CreateOrderSettlementRequestBody], Field(description="Create Order Settlement Request Body.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Mark Order For Settlement # noqa: E501 Use this API to pass the CBRICS ID to Cashfree and mark an order for settlement. # noqa: E501 @@ -7445,7 +7501,7 @@ def MarkForSettlement(self, x_api_version : Annotated[StrictStr, Field(..., desc :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param create_order_settlement_request_body: Create Order Settlement Request Body. :type create_order_settlement_request_body: CreateOrderSettlementRequestBody :param async_req: Whether to execute the request asynchronously. @@ -7473,18 +7529,19 @@ def MarkForSettlement(self, x_api_version : Annotated[StrictStr, Field(..., desc :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -7533,7 +7590,7 @@ def MarkForSettlement(self, x_api_version : Annotated[StrictStr, Field(..., desc if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -7582,7 +7639,7 @@ def MarkForSettlement(self, x_api_version : Annotated[StrictStr, Field(..., desc collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGOrderFetchSettlement(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(..., description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGOrderFetchSettlement(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, order_id : Annotated[StrictStr, Field(description="The id which uniquely identifies your order")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Settlements by Order ID # noqa: E501 Use this API to view all the settlements of a particular order. # noqa: E501 @@ -7599,7 +7656,7 @@ def PGOrderFetchSettlement(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -7625,18 +7682,19 @@ def PGOrderFetchSettlement(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(SettlementEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -7688,7 +7746,7 @@ def PGOrderFetchSettlement(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -7732,7 +7790,7 @@ def PGOrderFetchSettlement(self, x_api_version : Annotated[StrictStr, Field(..., _request_auth=_params.get('_request_auth')) @validate_arguments - def PGFetchSimulation(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, simulation_id : Annotated[StrictStr, Field(..., description="Provide the SimulationId for which the details have to be fetched.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGFetchSimulation(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, simulation_id : Annotated[StrictStr, Field(description="Provide the SimulationId for which the details have to be fetched.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch Simulation # noqa: E501 Use this API to fetch simulated payment details. # noqa: E501 @@ -7749,7 +7807,7 @@ def PGFetchSimulation(self, x_api_version : Annotated[StrictStr, Field(..., desc :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -7775,18 +7833,19 @@ def PGFetchSimulation(self, x_api_version : Annotated[StrictStr, Field(..., desc :rtype: tuple(SimulationResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -7838,7 +7897,7 @@ def PGFetchSimulation(self, x_api_version : Annotated[StrictStr, Field(..., desc if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -7878,7 +7937,7 @@ def PGFetchSimulation(self, x_api_version : Annotated[StrictStr, Field(..., desc collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGSimulatePayment(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, simulate_request : Annotated[SimulateRequest, Field(..., description="Request Body to Make Simulation")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGSimulatePayment(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, simulate_request : Annotated[SimulateRequest, Field(description="Request Body to Make Simulation")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Simulate Payment # noqa: E501 Use this API to simulate payment. To use this API you should first create an order using the Create Order API. Also, you need to create a payment with the same order. # noqa: E501 @@ -7895,7 +7954,7 @@ def PGSimulatePayment(self, x_api_version : Annotated[StrictStr, Field(..., desc :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -7921,18 +7980,19 @@ def PGSimulatePayment(self, x_api_version : Annotated[StrictStr, Field(..., desc :rtype: tuple(SimulationResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -7981,7 +8041,7 @@ def PGSimulatePayment(self, x_api_version : Annotated[StrictStr, Field(..., desc if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -8032,7 +8092,7 @@ def PGSimulatePayment(self, x_api_version : Annotated[StrictStr, Field(..., desc _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsCreatePayment(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, create_subscription_payment_request : Annotated[CreateSubscriptionPaymentRequest, Field(..., description="Request body to create a subscription payment.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsCreatePayment(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, create_subscription_payment_request : Annotated[CreateSubscriptionPaymentRequest, Field(description="Request body to create a subscription payment.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Raise a charge or create an auth. # noqa: E501 Use this API to create an auth or to raise a charge. # noqa: E501 @@ -8049,7 +8109,7 @@ def SubsCreatePayment(self, x_api_version : Annotated[StrictStr, Field(..., desc :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -8075,18 +8135,19 @@ def SubsCreatePayment(self, x_api_version : Annotated[StrictStr, Field(..., desc :rtype: tuple(CreateSubscriptionPaymentResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -8135,7 +8196,7 @@ def SubsCreatePayment(self, x_api_version : Annotated[StrictStr, Field(..., desc if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -8186,7 +8247,7 @@ def SubsCreatePayment(self, x_api_version : Annotated[StrictStr, Field(..., desc collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsCreatePlan(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, create_plan_request : Annotated[CreatePlanRequest, Field(..., description="Request body to create a plan.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsCreatePlan(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, create_plan_request : Annotated[CreatePlanRequest, Field(description="Request body to create a plan.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create a plan. # noqa: E501 A plan allows your customer to identify the features you offer along with your pricing. You can create plans as per the pricing you support for your services. For each plan, you can set a pre-decided frequency and amount with which they’ll be charged. Example: Netflix Plans - Premium, Basic, Standard, Mobile. Each plan differs and caters for a particular set of audiences. # noqa: E501 @@ -8203,7 +8264,7 @@ def SubsCreatePlan(self, x_api_version : Annotated[StrictStr, Field(..., descrip :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -8229,18 +8290,19 @@ def SubsCreatePlan(self, x_api_version : Annotated[StrictStr, Field(..., descrip :rtype: tuple(PlanEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -8289,7 +8351,7 @@ def SubsCreatePlan(self, x_api_version : Annotated[StrictStr, Field(..., descrip if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -8340,7 +8402,7 @@ def SubsCreatePlan(self, x_api_version : Annotated[StrictStr, Field(..., descrip collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsCreateRefund(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(..., description="Provide the SubscriptionId using which the subscription was created.")] = None, create_subscription_refund_request : Annotated[CreateSubscriptionRefundRequest, Field(..., description="Request body to create a subscription refund.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsCreateRefund(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(description="Provide the SubscriptionId using which the subscription was created.")] = None, create_subscription_refund_request : Annotated[CreateSubscriptionRefundRequest, Field(description="Request body to create a subscription refund.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create a refund. # noqa: E501 This API allows you to create refund on a successful payment. Refund amount can be partial or the full amount of the payment. # noqa: E501 @@ -8359,7 +8421,7 @@ def SubsCreateRefund(self, x_api_version : Annotated[StrictStr, Field(..., descr :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -8385,18 +8447,19 @@ def SubsCreateRefund(self, x_api_version : Annotated[StrictStr, Field(..., descr :rtype: tuple(SubscriptionPaymentRefundEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -8449,7 +8512,7 @@ def SubsCreateRefund(self, x_api_version : Annotated[StrictStr, Field(..., descr if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -8500,7 +8563,7 @@ def SubsCreateRefund(self, x_api_version : Annotated[StrictStr, Field(..., descr collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsCreateSubscription(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, create_subscription_request : Annotated[CreateSubscriptionRequest, Field(..., description="Request body to create a subscription.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsCreateSubscription(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, create_subscription_request : Annotated[CreateSubscriptionRequest, Field(description="Request body to create a subscription.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Subscription # noqa: E501 Use this API to create a new subscription. # noqa: E501 @@ -8517,7 +8580,7 @@ def SubsCreateSubscription(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -8543,18 +8606,19 @@ def SubsCreateSubscription(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(SubscriptionEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -8603,7 +8667,7 @@ def SubsCreateSubscription(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -8654,7 +8718,7 @@ def SubsCreateSubscription(self, x_api_version : Annotated[StrictStr, Field(..., collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsFetchPlan(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, plan_id : Annotated[StrictStr, Field(..., description="Provide the PlanId for which the details have to be fetched.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsFetchPlan(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, plan_id : Annotated[StrictStr, Field(description="Provide the PlanId for which the details have to be fetched.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch Plan # noqa: E501 Use this API to fetch plan details. # noqa: E501 @@ -8671,7 +8735,7 @@ def SubsFetchPlan(self, x_api_version : Annotated[StrictStr, Field(..., descript :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -8697,18 +8761,19 @@ def SubsFetchPlan(self, x_api_version : Annotated[StrictStr, Field(..., descript :rtype: tuple(PlanEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -8760,7 +8825,7 @@ def SubsFetchPlan(self, x_api_version : Annotated[StrictStr, Field(..., descript if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -8800,7 +8865,7 @@ def SubsFetchPlan(self, x_api_version : Annotated[StrictStr, Field(..., descript collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsFetchSubscription(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(..., description="Provide the SubscriptionId using which the subscription was created.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsFetchSubscription(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(description="Provide the SubscriptionId using which the subscription was created.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch Subscription # noqa: E501 Use this API to fetch subscription details. # noqa: E501 @@ -8817,7 +8882,7 @@ def SubsFetchSubscription(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -8843,18 +8908,19 @@ def SubsFetchSubscription(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(SubscriptionEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -8906,7 +8972,7 @@ def SubsFetchSubscription(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -8946,7 +9012,7 @@ def SubsFetchSubscription(self, x_api_version : Annotated[StrictStr, Field(..., collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsFetchSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(..., description="Provide the SubscriptionId using which the subscription was created.")] = None, payment_id : Annotated[StrictStr, Field(..., description="Provide the PaymentId using which the payment was created.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsFetchSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(description="Provide the SubscriptionId using which the subscription was created.")] = None, payment_id : Annotated[StrictStr, Field(description="Provide the PaymentId using which the payment was created.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch details of a single payment. # noqa: E501 Use this API to fetch details of a single payment of a subscription. # noqa: E501 @@ -8965,7 +9031,7 @@ def SubsFetchSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Fiel :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -8991,18 +9057,19 @@ def SubsFetchSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Fiel :rtype: tuple(SubscriptionPaymentEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -9058,7 +9125,7 @@ def SubsFetchSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Fiel if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -9098,7 +9165,7 @@ def SubsFetchSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Fiel collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsFetchSubscriptionPayments(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(..., description="Provide the SubscriptionId using which the subscription was created.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsFetchSubscriptionPayments(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(description="Provide the SubscriptionId using which the subscription was created.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch details of all payments of a subscription. # noqa: E501 Use this API to fetch all payments of a subscription. # noqa: E501 @@ -9115,7 +9182,7 @@ def SubsFetchSubscriptionPayments(self, x_api_version : Annotated[StrictStr, Fie :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -9141,18 +9208,19 @@ def SubsFetchSubscriptionPayments(self, x_api_version : Annotated[StrictStr, Fie :rtype: tuple(List[SubscriptionPaymentEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -9204,7 +9272,7 @@ def SubsFetchSubscriptionPayments(self, x_api_version : Annotated[StrictStr, Fie if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -9245,7 +9313,7 @@ def SubsFetchSubscriptionPayments(self, x_api_version : Annotated[StrictStr, Fie collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsFetchSubscriptionRefund(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(..., description="Provide the SubscriptionId using which the subscription was created.")] = None, refund_id : Annotated[StrictStr, Field(..., description="Provide the PaymentId for which the details have to be fetched.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsFetchSubscriptionRefund(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(description="Provide the SubscriptionId using which the subscription was created.")] = None, refund_id : Annotated[StrictStr, Field(description="Provide the PaymentId for which the details have to be fetched.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch details of a refund. # noqa: E501 Use this API to fetch details of a refund of a subscription payment. # noqa: E501 @@ -9264,7 +9332,7 @@ def SubsFetchSubscriptionRefund(self, x_api_version : Annotated[StrictStr, Field :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -9290,18 +9358,19 @@ def SubsFetchSubscriptionRefund(self, x_api_version : Annotated[StrictStr, Field :rtype: tuple(SubscriptionPaymentRefundEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -9357,7 +9426,7 @@ def SubsFetchSubscriptionRefund(self, x_api_version : Annotated[StrictStr, Field if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -9397,7 +9466,7 @@ def SubsFetchSubscriptionRefund(self, x_api_version : Annotated[StrictStr, Field collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsManageSubscription(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(..., description="Provide the SubscriptionId using which the subscription was created.")] = None, manage_subscription_request : Annotated[ManageSubscriptionRequest, Field(..., description="Request body to manage a subscription.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsManageSubscription(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(description="Provide the SubscriptionId using which the subscription was created.")] = None, manage_subscription_request : Annotated[ManageSubscriptionRequest, Field(description="Request body to manage a subscription.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Manage a subscription. # noqa: E501 Use this API to manage a subscription. You can cancel, pause, activate or change the plan of a subscription. # noqa: E501 @@ -9416,7 +9485,7 @@ def SubsManageSubscription(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -9442,18 +9511,19 @@ def SubsManageSubscription(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(SubscriptionEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -9506,7 +9576,7 @@ def SubsManageSubscription(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -9557,7 +9627,7 @@ def SubsManageSubscription(self, x_api_version : Annotated[StrictStr, Field(..., collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubsManageSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(..., description="Provide the SubscriptionId using which the subscription was created.")] = None, payment_id : Annotated[StrictStr, Field(..., description="Provide the PaymentId using which the payment was created.")] = None, manage_subscription_payment_request : Annotated[ManageSubscriptionPaymentRequest, Field(..., description="Request body to manage a subscription payment.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubsManageSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_id : Annotated[StrictStr, Field(description="Provide the SubscriptionId using which the subscription was created.")] = None, payment_id : Annotated[StrictStr, Field(description="Provide the PaymentId using which the payment was created.")] = None, manage_subscription_payment_request : Annotated[ManageSubscriptionPaymentRequest, Field(description="Request body to manage a subscription payment.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Manage a single payment. # noqa: E501 Use this API to manage a payment of a subscription. A payment can be cancelled or retried with this API. # noqa: E501 @@ -9578,7 +9648,7 @@ def SubsManageSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Fie :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -9604,18 +9674,19 @@ def SubsManageSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Fie :rtype: tuple(SubscriptionPaymentEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -9672,7 +9743,7 @@ def SubsManageSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Fie if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -9722,7 +9793,7 @@ def SubsManageSubscriptionPayment(self, x_api_version : Annotated[StrictStr, Fie collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubscriptionDocumentUpload(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, payment_id : Annotated[StrictStr, Field(..., description="Provide the PaymentId using which the payment was created.")] = None, file : Annotated[Union[StrictBytes, StrictStr], Field(..., description="Select the .jpg file that should be uploaded or provide the path of that file. You cannot upload a file that is more than 1MB in size.")] = None, payment_id2 : Annotated[StrictStr, Field(..., description="Authorization Payment Id for physical nach authorization")] = None, action : Annotated[StrictStr, Field(..., description="Action to be performed on the file. Can be SUBMIT_DOCUMENT")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubscriptionDocumentUpload(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, payment_id : Annotated[StrictStr, Field(description="Provide the PaymentId using which the payment was created.")] = None, file : Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Select the .jpg file that should be uploaded or provide the path of that file. You cannot upload a file that is more than 1MB in size.")] = None, payment_id2 : Annotated[StrictStr, Field(description="Authorization Payment Id for physical nach authorization")] = None, action : Annotated[StrictStr, Field(description="Action to be performed on the file. Can be SUBMIT_DOCUMENT")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """API to upload file for Physical Nach Authorization. # noqa: E501 Use this API to upload file for Physical Nach Authorization. # noqa: E501 @@ -9745,7 +9816,7 @@ def SubscriptionDocumentUpload(self, x_api_version : Annotated[StrictStr, Field( :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -9771,18 +9842,19 @@ def SubscriptionDocumentUpload(self, x_api_version : Annotated[StrictStr, Field( :rtype: tuple(UploadPnachImageResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -9837,7 +9909,7 @@ def SubscriptionDocumentUpload(self, x_api_version : Annotated[StrictStr, Field( if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -9894,7 +9966,7 @@ def SubscriptionDocumentUpload(self, x_api_version : Annotated[StrictStr, Field( collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SubscriptionEligibility(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_eligibility_request : Annotated[SubscriptionEligibilityRequest, Field(..., description="Request body to fetch subscription eligibile payment method details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SubscriptionEligibility(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, subscription_eligibility_request : Annotated[SubscriptionEligibilityRequest, Field(description="Request body to fetch subscription eligibile payment method details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """API to get all the payment method details available for subscription payments. # noqa: E501 Use this API to check if a payment method is enabled for your account. # noqa: E501 @@ -9911,7 +9983,7 @@ def SubscriptionEligibility(self, x_api_version : Annotated[StrictStr, Field(... :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -9937,18 +10009,19 @@ def SubscriptionEligibility(self, x_api_version : Annotated[StrictStr, Field(... :rtype: tuple(SubscriptionEligibilityResponse, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -9997,7 +10070,7 @@ def SubscriptionEligibility(self, x_api_version : Annotated[StrictStr, Field(... if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -10049,7 +10122,7 @@ def SubscriptionEligibility(self, x_api_version : Annotated[StrictStr, Field(... _request_auth=_params.get('_request_auth')) @validate_arguments - def PGCustomerDeleteInstrument(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, customer_id : Annotated[StrictStr, Field(..., description="Your Customer ID that you had sent during create order API `POST/orders`")] = None, instrument_id : Annotated[StrictStr, Field(..., description="The instrument_id which needs to be deleted")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGCustomerDeleteInstrument(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, customer_id : Annotated[StrictStr, Field(description="Your Customer ID that you had sent during create order API `POST/orders`")] = None, instrument_id : Annotated[StrictStr, Field(description="The instrument_id which needs to be deleted")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Delete Saved Card Instrument # noqa: E501 Use this API to delete a saved card instrument for a customer_id and instrument_id # noqa: E501 @@ -10068,7 +10141,7 @@ def PGCustomerDeleteInstrument(self, x_api_version : Annotated[StrictStr, Field( :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -10094,18 +10167,19 @@ def PGCustomerDeleteInstrument(self, x_api_version : Annotated[StrictStr, Field( :rtype: tuple(InstrumentEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -10161,7 +10235,7 @@ def PGCustomerDeleteInstrument(self, x_api_version : Annotated[StrictStr, Field( if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -10204,7 +10278,7 @@ def PGCustomerDeleteInstrument(self, x_api_version : Annotated[StrictStr, Field( collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGCustomerFetchInstrument(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, customer_id : Annotated[StrictStr, Field(..., description="Your Customer ID that you had sent during create order API `POST/orders`")] = None, instrument_id : Annotated[StrictStr, Field(..., description="The instrument_id of the saved instrument which needs to be queried")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGCustomerFetchInstrument(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, customer_id : Annotated[StrictStr, Field(description="Your Customer ID that you had sent during create order API `POST/orders`")] = None, instrument_id : Annotated[StrictStr, Field(description="The instrument_id of the saved instrument which needs to be queried")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch Specific Saved Card Instrument # noqa: E501 Use this API to fetch a single specific saved card for a customer_id by it's instrument_id # noqa: E501 @@ -10223,7 +10297,7 @@ def PGCustomerFetchInstrument(self, x_api_version : Annotated[StrictStr, Field(. :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -10249,18 +10323,19 @@ def PGCustomerFetchInstrument(self, x_api_version : Annotated[StrictStr, Field(. :rtype: tuple(InstrumentEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -10316,7 +10391,7 @@ def PGCustomerFetchInstrument(self, x_api_version : Annotated[StrictStr, Field(. if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -10359,7 +10434,7 @@ def PGCustomerFetchInstrument(self, x_api_version : Annotated[StrictStr, Field(. collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGCustomerFetchInstruments(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, customer_id : Annotated[StrictStr, Field(..., description="Your Customer ID that you had sent during create order API `POST/orders`")] = None, instrument_type : Annotated[StrictStr, Field(..., description="Payment mode or type of saved instrument ")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGCustomerFetchInstruments(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, customer_id : Annotated[StrictStr, Field(description="Your Customer ID that you had sent during create order API `POST/orders`")] = None, instrument_type : Annotated[StrictStr, Field(description="Payment mode or type of saved instrument ")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch All Saved Card Instrument # noqa: E501 Use this API to fetch saved cards for a customer_id # noqa: E501 @@ -10378,7 +10453,7 @@ def PGCustomerFetchInstruments(self, x_api_version : Annotated[StrictStr, Field( :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -10404,18 +10479,19 @@ def PGCustomerFetchInstruments(self, x_api_version : Annotated[StrictStr, Field( :rtype: tuple(List[InstrumentEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -10471,7 +10547,7 @@ def PGCustomerFetchInstruments(self, x_api_version : Annotated[StrictStr, Field( if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -10513,7 +10589,7 @@ def PGCustomerFetchInstruments(self, x_api_version : Annotated[StrictStr, Field( collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def PGCustomerInstrumentsFetchCryptogram(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, customer_id : Annotated[StrictStr, Field(..., description="Your Customer ID that you had sent during create order API `POST/orders`")] = None, instrument_id : Annotated[StrictStr, Field(..., description="The instrument_id of the saved card instrument which needs to be queried")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def PGCustomerInstrumentsFetchCryptogram(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, customer_id : Annotated[StrictStr, Field(description="Your Customer ID that you had sent during create order API `POST/orders`")] = None, instrument_id : Annotated[StrictStr, Field(description="The instrument_id of the saved card instrument which needs to be queried")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch cryptogram for a saved card instrument # noqa: E501 Use this API To get the card network token, token expiry and cryptogram for a saved card instrument using instrument id # noqa: E501 @@ -10532,7 +10608,7 @@ def PGCustomerInstrumentsFetchCryptogram(self, x_api_version : Annotated[StrictS :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -10558,18 +10634,19 @@ def PGCustomerInstrumentsFetchCryptogram(self, x_api_version : Annotated[StrictS :rtype: tuple(CryptogramEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -10625,7 +10702,7 @@ def PGCustomerInstrumentsFetchCryptogram(self, x_api_version : Annotated[StrictS if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -10669,7 +10746,7 @@ def PGCustomerInstrumentsFetchCryptogram(self, x_api_version : Annotated[StrictS _request_auth=_params.get('_request_auth')) @validate_arguments - def TerminalCreateQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, create_partner_vpa_request : Optional[CreatePartnerVpaRequest] = None, **kwargs) -> ApiResponse: # noqa: E501 + def TerminalCreateQrCodes(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, create_partner_vpa_request : Optional[CreatePartnerVpaRequest] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Pre-Activated Vpas for partner # noqa: E501 Use this API to create a pre-activated vpa for partner. # noqa: E501 @@ -10684,7 +10761,7 @@ def TerminalCreateQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param create_partner_vpa_request: :type create_partner_vpa_request: CreatePartnerVpaRequest :param async_req: Whether to execute the request asynchronously. @@ -10712,18 +10789,19 @@ def TerminalCreateQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(List[StaticQrResponseEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -10772,7 +10850,7 @@ def TerminalCreateQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -10824,7 +10902,7 @@ def TerminalCreateQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def TerminalGetQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, status : Annotated[StrictStr, Field(..., description="Status of pre-created Qr.")] = None, cf_terminal_id : Annotated[StrictStr, Field(..., description="Cashfree terminal id for which you want to get pre-generated staticQRs.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def TerminalGetQrCodes(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, status : Annotated[StrictStr, Field(description="Status of pre-created Qr.")] = None, cf_terminal_id : Annotated[StrictStr, Field(description="Cashfree terminal id for which you want to get pre-generated staticQRs.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Pre-Activated Vpas for partner # noqa: E501 Use this API to get a pre-activated vpa for partner. # noqa: E501 @@ -10843,7 +10921,7 @@ def TerminalGetQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., des :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -10869,18 +10947,19 @@ def TerminalGetQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., des :rtype: tuple(List[StaticQrResponseEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -10936,7 +11015,7 @@ def TerminalGetQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., des if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -10979,7 +11058,7 @@ def TerminalGetQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., des _request_auth=_params.get('_request_auth')) @validate_arguments - def SposCreateTerminal(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, create_terminal_request : Annotated[CreateTerminalRequest, Field(..., description="Request Body to Create Terminal for SPOS")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposCreateTerminal(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, create_terminal_request : Annotated[CreateTerminalRequest, Field(description="Request Body to Create Terminal for SPOS")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Terminal # noqa: E501 Use this API to create new terminals to use softPOS. # noqa: E501 @@ -10996,7 +11075,7 @@ def SposCreateTerminal(self, x_api_version : Annotated[StrictStr, Field(..., des :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -11022,18 +11101,19 @@ def SposCreateTerminal(self, x_api_version : Annotated[StrictStr, Field(..., des :rtype: tuple(TerminalEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -11082,7 +11162,7 @@ def SposCreateTerminal(self, x_api_version : Annotated[StrictStr, Field(..., des if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -11134,7 +11214,7 @@ def SposCreateTerminal(self, x_api_version : Annotated[StrictStr, Field(..., des collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposCreateTerminalTransaction(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, create_terminal_transaction_request : Annotated[CreateTerminalTransactionRequest, Field(..., description="Request body to create a terminal transaction")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposCreateTerminalTransaction(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, create_terminal_transaction_request : Annotated[CreateTerminalTransactionRequest, Field(description="Request body to create a terminal transaction")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create Terminal Transaction # noqa: E501 Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API. # noqa: E501 @@ -11151,7 +11231,7 @@ def SposCreateTerminalTransaction(self, x_api_version : Annotated[StrictStr, Fie :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -11177,18 +11257,19 @@ def SposCreateTerminalTransaction(self, x_api_version : Annotated[StrictStr, Fie :rtype: tuple(TerminalTransactionEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -11237,7 +11318,7 @@ def SposCreateTerminalTransaction(self, x_api_version : Annotated[StrictStr, Fie if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -11289,7 +11370,7 @@ def SposCreateTerminalTransaction(self, x_api_version : Annotated[StrictStr, Fie collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposDemapSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, demap_soundbox_vpa_request : Annotated[DemapSoundboxVpaRequest, Field(..., description="Request body to demap soundbox vpa")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposDemapSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, demap_soundbox_vpa_request : Annotated[DemapSoundboxVpaRequest, Field(description="Request body to demap soundbox vpa")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Demap Soundbox Vpa # noqa: E501 Use this API to demap a device from soundbox. # noqa: E501 @@ -11306,7 +11387,7 @@ def SposDemapSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., d :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -11332,18 +11413,19 @@ def SposDemapSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., d :rtype: tuple(List[SoundboxVpaEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -11392,7 +11474,7 @@ def SposDemapSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., d if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -11444,7 +11526,7 @@ def SposDemapSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., d collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposFetchTerminal(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, terminal_phone_no : Annotated[StrictStr, Field(..., description="The terminal for which you want to view the order details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposFetchTerminal(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, terminal_phone_no : Annotated[StrictStr, Field(description="The terminal for which you want to view the order details.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Terminal Status using Phone Number # noqa: E501 Use this API to view all details of a terminal. # noqa: E501 @@ -11461,7 +11543,7 @@ def SposFetchTerminal(self, x_api_version : Annotated[StrictStr, Field(..., desc :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -11487,18 +11569,19 @@ def SposFetchTerminal(self, x_api_version : Annotated[StrictStr, Field(..., desc :rtype: tuple(TerminalEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -11550,7 +11633,7 @@ def SposFetchTerminal(self, x_api_version : Annotated[StrictStr, Field(..., desc if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -11592,7 +11675,7 @@ def SposFetchTerminal(self, x_api_version : Annotated[StrictStr, Field(..., desc collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposFetchTerminalQrCodes(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, terminal_phone_no : Annotated[StrictStr, Field(..., description="Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.")] = None, cf_terminal_id : Annotated[StrictStr, Field(..., description="Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposFetchTerminalQrCodes(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, terminal_phone_no : Annotated[StrictStr, Field(description="Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.")] = None, cf_terminal_id : Annotated[StrictStr, Field(description="Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch Terminal QR Codes # noqa: E501 You can fetch all the StaticQRs corresponding to given terminal id or phone number. Provide either the terminal_phone_no or terminal_id in the request. # noqa: E501 @@ -11611,7 +11694,7 @@ def SposFetchTerminalQrCodes(self, x_api_version : Annotated[StrictStr, Field(.. :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -11637,18 +11720,19 @@ def SposFetchTerminalQrCodes(self, x_api_version : Annotated[StrictStr, Field(.. :rtype: tuple(List[FetchTerminalQRCodesEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -11704,7 +11788,7 @@ def SposFetchTerminalQrCodes(self, x_api_version : Annotated[StrictStr, Field(.. if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -11746,7 +11830,7 @@ def SposFetchTerminalQrCodes(self, x_api_version : Annotated[StrictStr, Field(.. collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposFetchTerminalSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, device_serial_no : Annotated[StrictStr, Field(..., description="Device Serial No assinged. Required if you are not providing the cf_terminal_id in the request.")] = None, cf_terminal_id : Annotated[StrictStr, Field(..., description="Cashfree terminal id for which you want to get Soundbox Vpa. Required if you are not providing the device_serial_no in the request.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposFetchTerminalSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, device_serial_no : Annotated[StrictStr, Field(description="Device Serial No assinged. Required if you are not providing the cf_terminal_id in the request.")] = None, cf_terminal_id : Annotated[StrictStr, Field(description="Cashfree terminal id for which you want to get Soundbox Vpa. Required if you are not providing the device_serial_no in the request.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Fetch Terminal Soundbox vpa # noqa: E501 You can fetch all the active and mapped SoundboxVpa corresponding to given terminal id or deviceSerialNo. Provide either the device_serial_no or cf_terminal_id in the request. # noqa: E501 @@ -11765,7 +11849,7 @@ def SposFetchTerminalSoundboxVpa(self, x_api_version : Annotated[StrictStr, Fiel :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -11791,18 +11875,19 @@ def SposFetchTerminalSoundboxVpa(self, x_api_version : Annotated[StrictStr, Fiel :rtype: tuple(List[SoundboxVpaEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -11858,7 +11943,7 @@ def SposFetchTerminalSoundboxVpa(self, x_api_version : Annotated[StrictStr, Fiel if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -11900,7 +11985,7 @@ def SposFetchTerminalSoundboxVpa(self, x_api_version : Annotated[StrictStr, Fiel collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposFetchTerminalTransaction(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, utr : Annotated[StrictStr, Field(..., description="Utr of the transaction.")] = None, cf_terminal_id : Annotated[StrictStr, Field(..., description="Provide the Cashfree terminal ID for which the details have to be updated.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposFetchTerminalTransaction(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, utr : Annotated[StrictStr, Field(description="Utr of the transaction.")] = None, cf_terminal_id : Annotated[StrictStr, Field(description="Provide the Cashfree terminal ID for which the details have to be updated.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get Terminal Transaction # noqa: E501 Use this API to get terminal transaction. # noqa: E501 @@ -11919,7 +12004,7 @@ def SposFetchTerminalTransaction(self, x_api_version : Annotated[StrictStr, Fiel :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -11945,18 +12030,19 @@ def SposFetchTerminalTransaction(self, x_api_version : Annotated[StrictStr, Fiel :rtype: tuple(TerminalPaymentEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -12012,7 +12098,7 @@ def SposFetchTerminalTransaction(self, x_api_version : Annotated[StrictStr, Fiel if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -12054,7 +12140,7 @@ def SposFetchTerminalTransaction(self, x_api_version : Annotated[StrictStr, Fiel collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposOnboardSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, onboard_soundbox_vpa_request : Annotated[OnboardSoundboxVpaRequest, Field(..., description="Request body to onboard soundbox vpa")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposOnboardSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, onboard_soundbox_vpa_request : Annotated[OnboardSoundboxVpaRequest, Field(description="Request body to onboard soundbox vpa")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Onboard Soundbox Vpa # noqa: E501 Use this API to onboard a terminal Vpa to soundbox. # noqa: E501 @@ -12071,7 +12157,7 @@ def SposOnboardSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -12097,18 +12183,19 @@ def SposOnboardSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(SoundboxVpaEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -12157,7 +12244,7 @@ def SposOnboardSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -12209,7 +12296,7 @@ def SposOnboardSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposUpdateSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_terminal_id : Annotated[StrictStr, Field(..., description="Provide the Cashfree terminal ID for which the details have to be updated.")] = None, update_soundbox_vpa_request : Annotated[UpdateSoundboxVpaRequest, Field(..., description="Request body to update soundbox vpa")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposUpdateSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_terminal_id : Annotated[StrictStr, Field(description="Provide the Cashfree terminal ID for which the details have to be updated.")] = None, update_soundbox_vpa_request : Annotated[UpdateSoundboxVpaRequest, Field(description="Request body to update soundbox vpa")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Update Soundbox Vpa # noqa: E501 Use this API to update a terminal Vpa to soundbox. # noqa: E501 @@ -12228,7 +12315,7 @@ def SposUpdateSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -12254,18 +12341,19 @@ def SposUpdateSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(SoundboxVpaEntity, status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -12318,7 +12406,7 @@ def SposUpdateSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -12370,7 +12458,7 @@ def SposUpdateSoundboxVpa(self, x_api_version : Annotated[StrictStr, Field(..., collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposUpdateTerminal(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_terminal_id : Annotated[StrictStr, Field(..., description="Provide the Cashfree terminal ID for which the details have to be updated.")] = None, update_terminal_request : Annotated[UpdateTerminalRequest, Field(..., description="Request Body to update terminal for SPOS.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposUpdateTerminal(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_terminal_id : Annotated[StrictStr, Field(description="Provide the Cashfree terminal ID for which the details have to be updated.")] = None, update_terminal_request : Annotated[UpdateTerminalRequest, Field(description="Request Body to update terminal for SPOS.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Update Terminal # noqa: E501 Use this API to update the terminal details. Email, Phone Number, and Terminal Meta are updatable for \"Storefront\". Only account status change is possible in case of \"Agent\". # noqa: E501 @@ -12389,7 +12477,7 @@ def SposUpdateTerminal(self, x_api_version : Annotated[StrictStr, Field(..., des :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -12415,18 +12503,19 @@ def SposUpdateTerminal(self, x_api_version : Annotated[StrictStr, Field(..., des :rtype: tuple(List[UpdateTerminalEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -12479,7 +12568,7 @@ def SposUpdateTerminal(self, x_api_version : Annotated[StrictStr, Field(..., des if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -12531,7 +12620,7 @@ def SposUpdateTerminal(self, x_api_version : Annotated[StrictStr, Field(..., des collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposUpdateTerminalStatus(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_terminal_id : Annotated[StrictStr, Field(..., description="Provide the Cashfree terminal ID for which the details have to be updated.")] = None, update_terminal_status_request : Annotated[UpdateTerminalStatusRequest, Field(..., description="Request Body to update terminal status for SPOS.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposUpdateTerminalStatus(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_terminal_id : Annotated[StrictStr, Field(description="Provide the Cashfree terminal ID for which the details have to be updated.")] = None, update_terminal_status_request : Annotated[UpdateTerminalStatusRequest, Field(description="Request Body to update terminal status for SPOS.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Update Terminal Status # noqa: E501 Use this API to update the terminal status. # noqa: E501 @@ -12550,7 +12639,7 @@ def SposUpdateTerminalStatus(self, x_api_version : Annotated[StrictStr, Field(.. :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -12576,18 +12665,19 @@ def SposUpdateTerminalStatus(self, x_api_version : Annotated[StrictStr, Field(.. :rtype: tuple(List[UpdateTerminalEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -12640,7 +12730,7 @@ def SposUpdateTerminalStatus(self, x_api_version : Annotated[StrictStr, Field(.. if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -12692,7 +12782,7 @@ def SposUpdateTerminalStatus(self, x_api_version : Annotated[StrictStr, Field(.. collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) @validate_arguments - def SposUploadTerminalDocs(self, x_api_version : Annotated[StrictStr, Field(..., description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_terminal_id : Annotated[StrictStr, Field(..., description="Provide the Cashfree terminal ID for which the details have to be updated.")] = None, upload_terminal_docs : Annotated[UploadTerminalDocs, Field(..., description="Request Body to update terminal documents for SPOS.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def SposUploadTerminalDocs(self, x_api_version : Annotated[StrictStr, Field(description="API version to be used. Format is in YYYY-MM-DD")] = None, cf_terminal_id : Annotated[StrictStr, Field(description="Provide the Cashfree terminal ID for which the details have to be updated.")] = None, upload_terminal_docs : Annotated[UploadTerminalDocs, Field(description="Request Body to update terminal documents for SPOS.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree")] = None, x_idempotency_key : Annotated[Optional[StrictStr], Field(description="An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. ")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Upload Terminal Docs # noqa: E501 Use this API to upload the terminal documents. # noqa: E501 @@ -12711,7 +12801,7 @@ def SposUploadTerminalDocs(self, x_api_version : Annotated[StrictStr, Field(..., :param x_request_id: Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree :type x_request_id: str :param x_idempotency_key: An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. - :type x_idempotency_key: str + :type x_idempotency_key: UUID :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -12737,18 +12827,19 @@ def SposUploadTerminalDocs(self, x_api_version : Annotated[StrictStr, Field(..., :rtype: tuple(List[UploadTerminalDocsEntity], status_code(int), headers(HTTPHeaderDict)) """ + x_api_version = self.XApiVersion api_client = ApiClient.get_default() host = "https://api.cashfree.com/pg" - if Cashfree.XEnvironment == CFEnvironment.SANDBOX: - host = "https://sandbox.cashfree.com/pg" + if self.XEnvironment == CFEnvironment.SANDBOX: + host = "https://sandbox.self.com/pg" configuration = Configuration( host = host ) - configuration.api_key['XClientID'] = Cashfree.XClientId - configuration.api_key['XClientSecret'] = Cashfree.XClientSecret - configuration.api_key['XClientSignature'] = Cashfree.XClientSignature - configuration.api_key['XPartnerMerchantId'] = Cashfree.XPartnerMerchantId - configuration.api_key['XPartnerKey'] = Cashfree.XPartnerKey + configuration.api_key['XClientID'] = self.XClientId + configuration.api_key['XClientSecret'] = self.XClientSecret + configuration.api_key['XClientSignature'] = self.XClientSignature + configuration.api_key['XPartnerMerchantId'] = self.XPartnerMerchantId + configuration.api_key['XPartnerKey'] = self.XPartnerKey api_client.configuration = configuration _params = locals() @@ -12801,7 +12892,7 @@ def SposUploadTerminalDocs(self, x_api_version : Annotated[StrictStr, Field(..., if x_idempotency_key: _header_params["x-idempotency-key"] = x_idempotency_key - _header_params["x-sdk-platform"] = "pythonsdk-4.5.1" + _header_params["x-sdk-platform"] = "pythonsdk-1.0.0" # process the form parameters _form_params = [] @@ -12900,7 +12991,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/4.5.1/python' + self.user_agent = 'OpenAPI-Generator/1.0.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cashfree_pg/api_response.py b/cashfree_pg/api_response.py index d81c2ff5..6336dd7c 100644 --- a/cashfree_pg/api_response.py +++ b/cashfree_pg/api_response.py @@ -4,6 +4,8 @@ from typing import Any, Dict, Optional from pydantic import Field, StrictInt, StrictStr +# Updated imports for Pydantic v2 compatibility + class ApiResponse: """ API response object diff --git a/cashfree_pg/configuration.py b/cashfree_pg/configuration.py index 7d008ca2..494e4925 100644 --- a/cashfree_pg/configuration.py +++ b/cashfree_pg/configuration.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import copy import logging import multiprocessing @@ -434,7 +433,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-08-01\n"\ - "SDK Package Version: 4.5.1".\ + "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/cashfree_pg/exceptions.py b/cashfree_pg/exceptions.py index 08e7562d..6d84388e 100644 --- a/cashfree_pg/exceptions.py +++ b/cashfree_pg/exceptions.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" diff --git a/cashfree_pg/models/__init__.py b/cashfree_pg/models/__init__.py index 6da293af..6a0d5497 100644 --- a/cashfree_pg/models/__init__.py +++ b/cashfree_pg/models/__init__.py @@ -2,18 +2,17 @@ # flake8: noqa """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - # import models into model package from cashfree_pg.models.address_details import AddressDetails from cashfree_pg.models.adjust_vendor_balance_request import AdjustVendorBalanceRequest diff --git a/cashfree_pg/models/address_details.py b/cashfree_pg/models/address_details.py index 664742a4..ed4e8f97 100644 --- a/cashfree_pg/models/address_details.py +++ b/cashfree_pg/models/address_details.py @@ -1,48 +1,50 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class AddressDetails(BaseModel): """ Address associated with the customer. """ - name: Optional[StrictStr] = Field(None, description="Full Name of the customer associated with the address.") - address_line_one: Optional[StrictStr] = Field(None, description="First line of the address.") - address_line_two: Optional[StrictStr] = Field(None, description="Second line of the address.") - country: Optional[StrictStr] = Field(None, description="Country Name.") - country_code: Optional[StrictStr] = Field(None, description="Country Code.") - state: Optional[StrictStr] = Field(None, description="State Name.") - state_code: Optional[StrictStr] = Field(None, description="State Code.") - city: Optional[StrictStr] = Field(None, description="City Name.") - pin_code: Optional[StrictStr] = Field(None, description="Pin Code/Zip Code.") - phone: Optional[StrictStr] = Field(None, description="Customer Phone Number.") - email: Optional[StrictStr] = Field(None, description="Cutomer Email Address.") + name: Optional[StrictStr] = Field(default=None, description="Full Name of the customer associated with the address.") + address_line_one: Optional[StrictStr] = Field(default=None, description="First line of the address.") + address_line_two: Optional[StrictStr] = Field(default=None, description="Second line of the address.") + country: Optional[StrictStr] = Field(default=None, description="Country Name.") + country_code: Optional[StrictStr] = Field(default=None, description="Country Code.") + state: Optional[StrictStr] = Field(default=None, description="State Name.") + state_code: Optional[StrictStr] = Field(default=None, description="State Code.") + city: Optional[StrictStr] = Field(default=None, description="City Name.") + pin_code: Optional[StrictStr] = Field(default=None, description="Pin Code/Zip Code.") + phone: Optional[StrictStr] = Field(default=None, description="Customer Phone Number.") + email: Optional[StrictStr] = Field(default=None, description="Cutomer Email Address.") __properties = ["name", "address_line_one", "address_line_two", "country", "country_code", "state", "state_code", "city", "pin_code", "phone", "email"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/adjust_vendor_balance_request.py b/cashfree_pg/models/adjust_vendor_balance_request.py index d9ce2965..ea5cee4d 100644 --- a/cashfree_pg/models/adjust_vendor_balance_request.py +++ b/cashfree_pg/models/adjust_vendor_balance_request.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class AdjustVendorBalanceRequest(BaseModel): """ Adjust Vendor Balance Request """ - transfer_from: StrictStr = Field(..., description="Mention to whom you want to transfer the on demand balance. Possible values - MERCHANT, VENDOR.") - transfer_type: StrictStr = Field(..., description="Mention the type of transfer. Possible values: ON_DEMAND.") - transfer_amount: Union[StrictFloat, StrictInt] = Field(..., description="Mention the on demand transfer amount.") - remark: Optional[StrictStr] = Field(None, description="Mention remarks if any for the on demand transfer.") - tags: Optional[Dict[str, Any]] = Field(None, description="Provide additional data fields using tags.") + transfer_from: StrictStr = Field(description="Mention to whom you want to transfer the on demand balance. Possible values - MERCHANT, VENDOR.") + transfer_type: StrictStr = Field(description="Mention the type of transfer. Possible values: ON_DEMAND.") + transfer_amount: Union[StrictFloat, StrictInt] = Field(description="Mention the on demand transfer amount.") + remark: Optional[StrictStr] = Field(default=None, description="Mention remarks if any for the on demand transfer.") + tags: Optional[Dict[str, Any]] = Field(default=None, description="Provide additional data fields using tags.") __properties = ["transfer_from", "transfer_type", "transfer_amount", "remark", "tags"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/adjust_vendor_balance_response.py b/cashfree_pg/models/adjust_vendor_balance_response.py index 6b731969..d04b73ad 100644 --- a/cashfree_pg/models/adjust_vendor_balance_response.py +++ b/cashfree_pg/models/adjust_vendor_balance_response.py @@ -1,29 +1,29 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt + + from cashfree_pg.models.balance_details import BalanceDetails from cashfree_pg.models.charges_details import ChargesDetails from cashfree_pg.models.transfer_details import TransferDetails +from pydantic import field_validator class AdjustVendorBalanceResponse(BaseModel): """ @@ -35,10 +35,12 @@ class AdjustVendorBalanceResponse(BaseModel): charges: Optional[ChargesDetails] = None __properties = ["settlement_id", "transfer_details", "balances", "charges"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/api_error.py b/cashfree_pg/models/api_error.py index 6d84b83f..70c080cd 100644 --- a/cashfree_pg/models/api_error.py +++ b/cashfree_pg/models/api_error.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + +from pydantic import field_validator class ApiError(BaseModel): """ @@ -28,10 +28,10 @@ class ApiError(BaseModel): """ message: Optional[StrictStr] = None code: Optional[StrictStr] = None - type: Optional[StrictStr] = Field(None, description="api_error") + type: Optional[StrictStr] = Field(default=None, description="api_error") __properties = ["message", "code", "type"] - @validator('type') + @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,10 +41,12 @@ def type_validate_enum(cls, value): raise ValueError("must be one of enum values ('api_error')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/api_error404.py b/cashfree_pg/models/api_error404.py index e362d25d..397cd0bf 100644 --- a/cashfree_pg/models/api_error404.py +++ b/cashfree_pg/models/api_error404.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + +from pydantic import field_validator class ApiError404(BaseModel): """ @@ -28,10 +28,10 @@ class ApiError404(BaseModel): """ message: Optional[StrictStr] = None code: Optional[StrictStr] = None - type: Optional[StrictStr] = Field(None, description="invalid_request_error") + type: Optional[StrictStr] = Field(default=None, description="invalid_request_error") __properties = ["message", "code", "type"] - @validator('type') + @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,10 +41,12 @@ def type_validate_enum(cls, value): raise ValueError("must be one of enum values ('invalid_request_error')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/api_error409.py b/cashfree_pg/models/api_error409.py index 0b472e14..12d486b6 100644 --- a/cashfree_pg/models/api_error409.py +++ b/cashfree_pg/models/api_error409.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + +from pydantic import field_validator class ApiError409(BaseModel): """ @@ -28,10 +28,10 @@ class ApiError409(BaseModel): """ message: Optional[StrictStr] = None code: Optional[StrictStr] = None - type: Optional[StrictStr] = Field(None, description="invalid_request_error") + type: Optional[StrictStr] = Field(default=None, description="invalid_request_error") __properties = ["message", "code", "type"] - @validator('type') + @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,10 +41,12 @@ def type_validate_enum(cls, value): raise ValueError("must be one of enum values ('invalid_request_error')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/api_error502.py b/cashfree_pg/models/api_error502.py index 0f3675b6..7b2e8d7c 100644 --- a/cashfree_pg/models/api_error502.py +++ b/cashfree_pg/models/api_error502.py @@ -1,37 +1,37 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + +from pydantic import field_validator class ApiError502(BaseModel): """ Error when there is error at partner bank """ message: Optional[StrictStr] = None - code: Optional[StrictStr] = Field(None, description="`bank_processing_failure` will be returned here to denote failure at bank. ") - type: Optional[StrictStr] = Field(None, description="api_error") + code: Optional[StrictStr] = Field(default=None, description="`bank_processing_failure` will be returned here to denote failure at bank. ") + type: Optional[StrictStr] = Field(default=None, description="api_error") __properties = ["message", "code", "type"] - @validator('type') + @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,10 +41,12 @@ def type_validate_enum(cls, value): raise ValueError("must be one of enum values ('api_error')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/app.py b/cashfree_pg/models/app.py index 3e823d5d..170b9bc8 100644 --- a/cashfree_pg/models/app.py +++ b/cashfree_pg/models/app.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,28 +19,31 @@ -from pydantic import BaseModel, Field, StrictStr, validator + +from pydantic import field_validator class App(BaseModel): """ App payment method """ - channel: StrictStr = Field(..., description="Specify the channel through which the payment must be processed.") - provider: StrictStr = Field(..., description="Specify the provider through which the payment must be processed.") - phone: StrictStr = Field(..., description="Customer phone number associated with a wallet for payment.") + channel: StrictStr = Field(description="Specify the channel through which the payment must be processed.") + provider: StrictStr = Field(description="Specify the provider through which the payment must be processed.") + phone: StrictStr = Field(description="Customer phone number associated with a wallet for payment.") __properties = ["channel", "provider", "phone"] - @validator('provider') + @field_validator('provider') def provider_validate_enum(cls, value): """Validates the enum""" if value not in ('gpay', 'phonepe', 'ola', 'paytm', 'amazon', 'airtel', 'freecharge', 'mobikwik', 'jio'): raise ValueError("must be one of enum values ('gpay', 'phonepe', 'ola', 'paytm', 'amazon', 'airtel', 'freecharge', 'mobikwik', 'jio')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/app_payment_method.py b/cashfree_pg/models/app_payment_method.py index 2e3e960f..7fdd3fb3 100644 --- a/cashfree_pg/models/app_payment_method.py +++ b/cashfree_pg/models/app_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.app import App +from pydantic import field_validator class AppPaymentMethod(BaseModel): """ App payment method """ - app: App = Field(...) + app: App __properties = ["app"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/authentication_error.py b/cashfree_pg/models/authentication_error.py index 1f8b4815..8dc48d9b 100644 --- a/cashfree_pg/models/authentication_error.py +++ b/cashfree_pg/models/authentication_error.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class AuthenticationError(BaseModel): """ @@ -28,13 +28,15 @@ class AuthenticationError(BaseModel): """ message: Optional[StrictStr] = None code: Optional[StrictStr] = None - type: Optional[StrictStr] = Field(None, description="authentication_error") + type: Optional[StrictStr] = Field(default=None, description="authentication_error") __properties = ["message", "code", "type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/authorization_details.py b/cashfree_pg/models/authorization_details.py index f74623b1..c9f8706c 100644 --- a/cashfree_pg/models/authorization_details.py +++ b/cashfree_pg/models/authorization_details.py @@ -1,44 +1,46 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class AuthorizationDetails(BaseModel): """ Details of the authorization done for the subscription. Returned in Get subscription and auth payments. """ - authorization_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Authorization amount for the auth payment.") - authorization_amount_refund: Optional[StrictBool] = Field(None, description="Indicates whether the authorization amount should be refunded to the customer automatically. Merchants can use this field to specify if the authorized funds should be returned to the customer after authorization of the subscription.") - authorization_reference: Optional[StrictStr] = Field(None, description="Authorization reference. UMN for UPI, UMRN for EMandate/Physical Mandate and Enrollment ID for cards.") - authorization_time: Optional[StrictStr] = Field(None, description="Authorization time.") - authorization_status: Optional[StrictStr] = Field(None, description="Status of the authorization.") - payment_id: Optional[StrictStr] = Field(None, description="A unique ID passed by merchant for identifying the transaction.") - payment_method: Optional[StrictStr] = Field(None, description="Payment method used for the authorization.") + authorization_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Authorization amount for the auth payment.") + authorization_amount_refund: Optional[StrictBool] = Field(default=None, description="Indicates whether the authorization amount should be refunded to the customer automatically. Merchants can use this field to specify if the authorized funds should be returned to the customer after authorization of the subscription.") + authorization_reference: Optional[StrictStr] = Field(default=None, description="Authorization reference. UMN for UPI, UMRN for EMandate/Physical Mandate and Enrollment ID for cards.") + authorization_time: Optional[StrictStr] = Field(default=None, description="Authorization time.") + authorization_status: Optional[StrictStr] = Field(default=None, description="Status of the authorization.") + payment_id: Optional[StrictStr] = Field(default=None, description="A unique ID passed by merchant for identifying the transaction.") + payment_method: Optional[StrictStr] = Field(default=None, description="Payment method used for the authorization.") __properties = ["authorization_amount", "authorization_amount_refund", "authorization_reference", "authorization_time", "authorization_status", "payment_id", "payment_method"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/authorization_in_payments_entity.py b/cashfree_pg/models/authorization_in_payments_entity.py index f4a0ed30..751e2717 100644 --- a/cashfree_pg/models/authorization_in_payments_entity.py +++ b/cashfree_pg/models/authorization_in_payments_entity.py @@ -1,42 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, validator + + +from pydantic import field_validator class AuthorizationInPaymentsEntity(BaseModel): """ If preauth enabled for account you will get this body """ - action: Optional[StrictStr] = Field(None, description="One of CAPTURE or VOID") - status: Optional[StrictStr] = Field(None, description="One of SUCCESS or PENDING") - captured_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The captured amount for this authorization request") - start_time: Optional[StrictStr] = Field(None, description="Start time of this authorization hold (only for UPI)") - end_time: Optional[StrictStr] = Field(None, description="End time of this authorization hold (only for UPI)") - approve_by: Optional[StrictStr] = Field(None, description="Approve by time as passed in the authorization request (only for UPI)") - action_reference: Optional[StrictStr] = Field(None, description="CAPTURE or VOID reference number based on action ") - action_time: Optional[StrictStr] = Field(None, description="Time of action (CAPTURE or VOID)") + action: Optional[StrictStr] = Field(default=None, description="One of CAPTURE or VOID") + status: Optional[StrictStr] = Field(default=None, description="One of SUCCESS or PENDING") + captured_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The captured amount for this authorization request") + start_time: Optional[StrictStr] = Field(default=None, description="Start time of this authorization hold (only for UPI)") + end_time: Optional[StrictStr] = Field(default=None, description="End time of this authorization hold (only for UPI)") + approve_by: Optional[StrictStr] = Field(default=None, description="Approve by time as passed in the authorization request (only for UPI)") + action_reference: Optional[StrictStr] = Field(default=None, description="CAPTURE or VOID reference number based on action ") + action_time: Optional[StrictStr] = Field(default=None, description="Time of action (CAPTURE or VOID)") __properties = ["action", "status", "captured_amount", "start_time", "end_time", "approve_by", "action_reference", "action_time"] - @validator('action') + @field_validator('action') def action_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -46,7 +46,7 @@ def action_validate_enum(cls, value): raise ValueError("must be one of enum values ('CAPTURE', 'VOID')") return value - @validator('status') + @field_validator('status') def status_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -56,10 +56,12 @@ def status_validate_enum(cls, value): raise ValueError("must be one of enum values ('SUCCESS', 'PENDING')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/authorize_order_request.py b/cashfree_pg/models/authorize_order_request.py index 02701177..a31a699d 100644 --- a/cashfree_pg/models/authorize_order_request.py +++ b/cashfree_pg/models/authorize_order_request.py @@ -1,36 +1,36 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, validator + + +from pydantic import field_validator class AuthorizeOrderRequest(BaseModel): """ Request to capture or void transaction """ - action: Optional[StrictStr] = Field(None, description="Type of authorization to run. Can be one of 'CAPTURE' , 'VOID'") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The amount if you are running a 'CAPTURE'") + action: Optional[StrictStr] = Field(default=None, description="Type of authorization to run. Can be one of 'CAPTURE' , 'VOID'") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The amount if you are running a 'CAPTURE'") __properties = ["action", "amount"] - @validator('action') + @field_validator('action') def action_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -40,10 +40,12 @@ def action_validate_enum(cls, value): raise ValueError("must be one of enum values ('CAPTURE', 'VOID')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/bad_request_error.py b/cashfree_pg/models/bad_request_error.py index 3359961e..5893692c 100644 --- a/cashfree_pg/models/bad_request_error.py +++ b/cashfree_pg/models/bad_request_error.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr, validator + + +from pydantic import field_validator class BadRequestError(BaseModel): """ @@ -31,7 +31,7 @@ class BadRequestError(BaseModel): type: Optional[StrictStr] = None __properties = ["message", "code", "type"] - @validator('type') + @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,10 +41,12 @@ def type_validate_enum(cls, value): raise ValueError("must be one of enum values ('invalid_request_error')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/balance_details.py b/cashfree_pg/models/balance_details.py index 29dcc865..231d40bc 100644 --- a/cashfree_pg/models/balance_details.py +++ b/cashfree_pg/models/balance_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class BalanceDetails(BaseModel): """ @@ -32,10 +32,12 @@ class BalanceDetails(BaseModel): vendor_unsettled: Optional[Union[StrictFloat, StrictInt]] = None __properties = ["merchant_id", "vendor_id", "merchant_unsettled", "vendor_unsettled"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/bank_details.py b/cashfree_pg/models/bank_details.py index 907d9953..64061e86 100644 --- a/cashfree_pg/models/bank_details.py +++ b/cashfree_pg/models/bank_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class BankDetails(BaseModel): """ @@ -31,10 +31,12 @@ class BankDetails(BaseModel): ifsc: Optional[StrictStr] = None __properties = ["account_number", "account_holder", "ifsc"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/banktransfer.py b/cashfree_pg/models/banktransfer.py index e4a33249..7d413c68 100644 --- a/cashfree_pg/models/banktransfer.py +++ b/cashfree_pg/models/banktransfer.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class Banktransfer(BaseModel): """ Banktransfer payment method """ - channel: Optional[StrictStr] = Field(None, description="The channel for cardless EMI is always `link`") + channel: Optional[StrictStr] = Field(default=None, description="The channel for cardless EMI is always `link`") __properties = ["channel"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/banktransfer_payment_method.py b/cashfree_pg/models/banktransfer_payment_method.py index 332581b2..0b0dd364 100644 --- a/cashfree_pg/models/banktransfer_payment_method.py +++ b/cashfree_pg/models/banktransfer_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.banktransfer import Banktransfer +from pydantic import field_validator class BanktransferPaymentMethod(BaseModel): """ banktransfer payment method """ - banktransfer: Banktransfer = Field(...) + banktransfer: Banktransfer __properties = ["banktransfer"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/card.py b/cashfree_pg/models/card.py index 2d985164..523c5597 100644 --- a/cashfree_pg/models/card.py +++ b/cashfree_pg/models/card.py @@ -1,56 +1,56 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, validator + + +from pydantic import field_validator class Card(BaseModel): """ Card Payment method """ - channel: StrictStr = Field(..., description="The channel for card payments can be \"link\" or \"post\". Post is used for seamless OTP payments where merchant captures OTP on their own page.") - card_number: Optional[StrictStr] = Field(None, description="Customer card number for plain card transactions. Token pan number for tokenized card transactions.") - card_holder_name: Optional[StrictStr] = Field(None, description="Customer name mentioned on the card.") - card_expiry_mm: Optional[StrictStr] = Field(None, description="Card expiry month for plain card transactions. Token expiry month for tokenized card transactions.") - card_expiry_yy: Optional[StrictStr] = Field(None, description="Card expiry year for plain card transactions. Token expiry year for tokenized card transactions.") - card_cvv: Optional[StrictStr] = Field(None, description="CVV mentioned on the card.") - instrument_id: Optional[StrictStr] = Field(None, description="instrument id of saved card. Required only to make payment using saved instrument.") - cryptogram: Optional[StrictStr] = Field(None, description="cryptogram received from card network. Required only for tokenized card transactions.") - token_requestor_id: Optional[StrictStr] = Field(None, description="TRID issued by card networks. Required only for tokenized card transactions.") - token_reference_id: Optional[StrictStr] = Field(None, description="Token Reference Id provided by Diners for Guest Checkout Token. Required only for Diners cards.") + channel: StrictStr = Field(description="The channel for card payments can be \"link\" or \"post\". Post is used for seamless OTP payments where merchant captures OTP on their own page.") + card_number: Optional[StrictStr] = Field(default=None, description="Customer card number for plain card transactions. Token pan number for tokenized card transactions.") + card_holder_name: Optional[StrictStr] = Field(default=None, description="Customer name mentioned on the card.") + card_expiry_mm: Optional[StrictStr] = Field(default=None, description="Card expiry month for plain card transactions. Token expiry month for tokenized card transactions.") + card_expiry_yy: Optional[StrictStr] = Field(default=None, description="Card expiry year for plain card transactions. Token expiry year for tokenized card transactions.") + card_cvv: Optional[StrictStr] = Field(default=None, description="CVV mentioned on the card.") + instrument_id: Optional[StrictStr] = Field(default=None, description="instrument id of saved card. Required only to make payment using saved instrument.") + cryptogram: Optional[StrictStr] = Field(default=None, description="cryptogram received from card network. Required only for tokenized card transactions.") + token_requestor_id: Optional[StrictStr] = Field(default=None, description="TRID issued by card networks. Required only for tokenized card transactions.") + token_reference_id: Optional[StrictStr] = Field(default=None, description="Token Reference Id provided by Diners for Guest Checkout Token. Required only for Diners cards.") token_type: Optional[StrictStr] = None - card_display: Optional[StrictStr] = Field(None, description="last 4 digits of original card number. Required only for tokenized card transactions.") - card_alias: Optional[StrictStr] = Field(None, description="Card alias as returned by Cashfree Vault API.") - card_bank_name: Optional[StrictStr] = Field(None, description="One of [\"Kotak\", \"ICICI\", \"RBL\", \"BOB\", \"Standard Chartered\"]. Card bank name, required for EMI payments. This is the bank user has selected for EMI") - emi_tenure: Optional[StrictInt] = Field(None, description="EMI tenure selected by the user") + card_display: Optional[StrictStr] = Field(default=None, description="last 4 digits of original card number. Required only for tokenized card transactions.") + card_alias: Optional[StrictStr] = Field(default=None, description="Card alias as returned by Cashfree Vault API.") + card_bank_name: Optional[StrictStr] = Field(default=None, description="One of [\"Kotak\", \"ICICI\", \"RBL\", \"BOB\", \"Standard Chartered\"]. Card bank name, required for EMI payments. This is the bank user has selected for EMI") + emi_tenure: Optional[StrictInt] = Field(default=None, description="EMI tenure selected by the user") __properties = ["channel", "card_number", "card_holder_name", "card_expiry_mm", "card_expiry_yy", "card_cvv", "instrument_id", "cryptogram", "token_requestor_id", "token_reference_id", "token_type", "card_display", "card_alias", "card_bank_name", "emi_tenure"] - @validator('channel') + @field_validator('channel') def channel_validate_enum(cls, value): """Validates the enum""" if value not in ('link', 'post'): raise ValueError("must be one of enum values ('link', 'post')") return value - @validator('token_type') + @field_validator('token_type') def token_type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -60,7 +60,7 @@ def token_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('ISSUER_TOKEN', 'NETWORK_GC_TOKEN', 'ISSUER_GC_TOKEN')") return value - @validator('card_bank_name') + @field_validator('card_bank_name') def card_bank_name_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -70,10 +70,12 @@ def card_bank_name_validate_enum(cls, value): raise ValueError("must be one of enum values ('Kotak', 'ICICI', 'RBL', 'BOB', 'Standard Chartered')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/card_emi.py b/cashfree_pg/models/card_emi.py index 1f28dc82..06e47e39 100644 --- a/cashfree_pg/models/card_emi.py +++ b/cashfree_pg/models/card_emi.py @@ -1,53 +1,55 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, validator + + +from pydantic import field_validator class CardEMI(BaseModel): """ Payment method for card emi """ - channel: StrictStr = Field(..., description="The channel for card payments will always be \"link\"") - card_number: StrictStr = Field(..., description="Customer card number.") - card_holder_name: Optional[StrictStr] = Field(None, description="Customer name mentioned on the card.") - card_expiry_mm: StrictStr = Field(..., description="Card expiry month.") - card_expiry_yy: StrictStr = Field(..., description="Card expiry year.") - card_cvv: StrictStr = Field(..., description="CVV mentioned on the card.") - card_alias: Optional[StrictStr] = Field(None, description="Card alias as returned by Cashfree Vault API") - card_bank_name: StrictStr = Field(..., description="Card bank name, required for EMI payments. This is the bank user has selected for EMI. One of [\"hdfc, \"kotak\", \"icici\", \"rbl\", \"bob\", \"standard chartered\", \"axis\", \"au\", \"yes\", \"sbi\", \"fed\", \"hsbc\", \"citi\", \"amex\"]") - emi_tenure: StrictInt = Field(..., description="EMI tenure selected by the user") + channel: StrictStr = Field(description="The channel for card payments will always be \"link\"") + card_number: StrictStr = Field(description="Customer card number.") + card_holder_name: Optional[StrictStr] = Field(default=None, description="Customer name mentioned on the card.") + card_expiry_mm: StrictStr = Field(description="Card expiry month.") + card_expiry_yy: StrictStr = Field(description="Card expiry year.") + card_cvv: StrictStr = Field(description="CVV mentioned on the card.") + card_alias: Optional[StrictStr] = Field(default=None, description="Card alias as returned by Cashfree Vault API") + card_bank_name: StrictStr = Field(description="Card bank name, required for EMI payments. This is the bank user has selected for EMI. One of [\"hdfc, \"kotak\", \"icici\", \"rbl\", \"bob\", \"standard chartered\", \"axis\", \"au\", \"yes\", \"sbi\", \"fed\", \"hsbc\", \"citi\", \"amex\"]") + emi_tenure: StrictInt = Field(description="EMI tenure selected by the user") __properties = ["channel", "card_number", "card_holder_name", "card_expiry_mm", "card_expiry_yy", "card_cvv", "card_alias", "card_bank_name", "emi_tenure"] - @validator('card_bank_name') + @field_validator('card_bank_name') def card_bank_name_validate_enum(cls, value): """Validates the enum""" if value not in ('hdfc', 'kotak', 'icici', 'rbl', 'bob', 'standard chartered', 'axis', 'au', 'yes', 'sbi', 'fed', 'hsbc', 'citi', 'amex'): raise ValueError("must be one of enum values ('hdfc', 'kotak', 'icici', 'rbl', 'bob', 'standard chartered', 'axis', 'au', 'yes', 'sbi', 'fed', 'hsbc', 'citi', 'amex')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/card_emi_payment_method.py b/cashfree_pg/models/card_emi_payment_method.py index 276ecdf6..780ab1f9 100644 --- a/cashfree_pg/models/card_emi_payment_method.py +++ b/cashfree_pg/models/card_emi_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.card_emi import CardEMI +from pydantic import field_validator class CardEMIPaymentMethod(BaseModel): """ Complete card emi payment method """ - emi: CardEMI = Field(...) + emi: CardEMI __properties = ["emi"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/card_offer.py b/cashfree_pg/models/card_offer.py index 6a0190ce..577bdb4a 100644 --- a/cashfree_pg/models/card_offer.py +++ b/cashfree_pg/models/card_offer.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist, constr + + +from pydantic import field_validator class CardOffer(BaseModel): """ CardOffer """ - type: conlist(StrictStr) = Field(...) - bank_name: constr(strict=True, max_length=100, min_length=3) = Field(..., description="Bank Name of Card.") - scheme_name: conlist(StrictStr) = Field(...) + type: List[StrictStr] + bank_name: Annotated[str, Field(min_length=3, strict=True, max_length=100)] = Field(description="Bank Name of Card.") + scheme_name: List[StrictStr] __properties = ["type", "bank_name", "scheme_name"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/card_payment_method.py b/cashfree_pg/models/card_payment_method.py index 49ad280b..fe5ee237 100644 --- a/cashfree_pg/models/card_payment_method.py +++ b/cashfree_pg/models/card_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.card import Card +from pydantic import field_validator class CardPaymentMethod(BaseModel): """ The card payment object is used to make payment using either plain card number, saved card instrument id or using cryptogram """ - card: Card = Field(...) + card: Card __properties = ["card"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/cardless_emi.py b/cashfree_pg/models/cardless_emi.py index 5c9cd93a..348859d2 100644 --- a/cashfree_pg/models/cardless_emi.py +++ b/cashfree_pg/models/cardless_emi.py @@ -1,38 +1,38 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, validator + + +from pydantic import field_validator class CardlessEMI(BaseModel): """ Request body for cardless emi payment method """ - channel: Optional[StrictStr] = Field(None, description="The channel for cardless EMI is always `link`") - provider: Optional[StrictStr] = Field(None, description="One of [`flexmoney`, `zestmoney`, `hdfc`, `icici`, `cashe`, `idfc`, `kotak`, `snapmint`, `bharatx`]") - phone: Optional[StrictStr] = Field(None, description="Customers phone number for this payment instrument. If the customer is not eligible you will receive a 400 error with type as 'invalid_request_error' and code as 'invalid_request_error'") - emi_tenure: Optional[StrictInt] = Field(None, description="EMI tenure for the selected provider. This is mandatory when provider is one of [`hdfc`, `icici`, `cashe`, `idfc`, `kotak`]") + channel: Optional[StrictStr] = Field(default=None, description="The channel for cardless EMI is always `link`") + provider: Optional[StrictStr] = Field(default=None, description="One of [`flexmoney`, `zestmoney`, `hdfc`, `icici`, `cashe`, `idfc`, `kotak`, `snapmint`, `bharatx`]") + phone: Optional[StrictStr] = Field(default=None, description="Customers phone number for this payment instrument. If the customer is not eligible you will receive a 400 error with type as 'invalid_request_error' and code as 'invalid_request_error'") + emi_tenure: Optional[StrictInt] = Field(default=None, description="EMI tenure for the selected provider. This is mandatory when provider is one of [`hdfc`, `icici`, `cashe`, `idfc`, `kotak`]") __properties = ["channel", "provider", "phone", "emi_tenure"] - @validator('provider') + @field_validator('provider') def provider_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -42,10 +42,12 @@ def provider_validate_enum(cls, value): raise ValueError("must be one of enum values ('flexmoney', 'zestmoney', 'hdfc', 'icici', 'cashe', 'idfc', 'kotak', 'snapmint', 'bharatx')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/cardless_emi_entity.py b/cashfree_pg/models/cardless_emi_entity.py index 643f2bc4..64a230a3 100644 --- a/cashfree_pg/models/cardless_emi_entity.py +++ b/cashfree_pg/models/cardless_emi_entity.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, conlist, constr + + from cashfree_pg.models.emi_plans_array import EMIPlansArray +from pydantic import field_validator class CardlessEMIEntity(BaseModel): """ cardless EMI object """ - payment_method: Optional[constr(strict=True, max_length=50, min_length=3)] = None - emi_plans: Optional[conlist(EMIPlansArray)] = None + payment_method: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=50)]] = None + emi_plans: Optional[List[EMIPlansArray]] = None __properties = ["payment_method", "emi_plans"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/cardless_emi_payment_method.py b/cashfree_pg/models/cardless_emi_payment_method.py index 4b7cf74c..86729f76 100644 --- a/cashfree_pg/models/cardless_emi_payment_method.py +++ b/cashfree_pg/models/cardless_emi_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.cardless_emi import CardlessEMI +from pydantic import field_validator class CardlessEMIPaymentMethod(BaseModel): """ cardless EMI payment method object """ - cardless_emi: CardlessEMI = Field(...) + cardless_emi: CardlessEMI __properties = ["cardless_emi"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/cardless_emi_queries.py b/cashfree_pg/models/cardless_emi_queries.py index c562dd77..6166d4ca 100644 --- a/cashfree_pg/models/cardless_emi_queries.py +++ b/cashfree_pg/models/cardless_emi_queries.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, confloat, conint, constr + + from cashfree_pg.models.customer_details_cardless_emi import CustomerDetailsCardlessEMI +from pydantic import field_validator class CardlessEMIQueries(BaseModel): """ cardless EMI query object """ - order_id: Optional[constr(strict=True, max_length=50, min_length=3)] = Field(None, description="OrderId of the order. Either of `order_id` or `amount` is mandatory.") - amount: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = Field(None, description="Amount of the order. OrderId of the order. Either of `order_id` or `amount` is mandatory.") + order_id: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=50)]] = Field(default=None, description="OrderId of the order. Either of `order_id` or `amount` is mandatory.") + amount: Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Amount of the order. OrderId of the order. Either of `order_id` or `amount` is mandatory.") customer_details: Optional[CustomerDetailsCardlessEMI] = None __properties = ["order_id", "amount", "customer_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/cart_details.py b/cashfree_pg/models/cart_details.py index 09375440..2dad56dc 100644 --- a/cashfree_pg/models/cart_details.py +++ b/cashfree_pg/models/cart_details.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist + + from cashfree_pg.models.cart_item import CartItem +from pydantic import field_validator class CartDetails(BaseModel): """ The cart details that are necessary like shipping address, billing address and more. """ shipping_charge: Optional[Union[StrictFloat, StrictInt]] = None - cart_name: Optional[StrictStr] = Field(None, description="Name of the cart.") - cart_items: Optional[conlist(CartItem)] = None + cart_name: Optional[StrictStr] = Field(default=None, description="Name of the cart.") + cart_items: Optional[List[CartItem]] = None __properties = ["shipping_charge", "cart_name", "cart_items"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/cart_details_entity.py b/cashfree_pg/models/cart_details_entity.py index a5ec68ef..671ae67d 100644 --- a/cashfree_pg/models/cart_details_entity.py +++ b/cashfree_pg/models/cart_details_entity.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class CartDetailsEntity(BaseModel): """ Cart Details in the Order Entity Response """ - cart_id: Optional[StrictStr] = Field(None, description="ID of the cart that was created") + cart_id: Optional[StrictStr] = Field(default=None, description="ID of the cart that was created") __properties = ["cart_id"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/cart_item.py b/cashfree_pg/models/cart_item.py index de8492b3..c0e13fb1 100644 --- a/cashfree_pg/models/cart_item.py +++ b/cashfree_pg/models/cart_item.py @@ -1,47 +1,49 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist + + +from pydantic import field_validator class CartItem(BaseModel): """ Each item in the cart. """ - item_id: Optional[StrictStr] = Field(None, description="Unique identifier of the item") - item_name: Optional[StrictStr] = Field(None, description="Name of the item") - item_description: Optional[StrictStr] = Field(None, description="Description of the item") - item_tags: Optional[conlist(StrictStr)] = Field(None, description="Tags attached to that item") - item_details_url: Optional[StrictStr] = Field(None, description="Item details url") - item_image_url: Optional[StrictStr] = Field(None, description="Item image url") - item_original_unit_price: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Original price") - item_discounted_unit_price: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Discounted Price") - item_currency: Optional[StrictStr] = Field(None, description="Currency of the item.") - item_quantity: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Quantity if that item") + item_id: Optional[StrictStr] = Field(default=None, description="Unique identifier of the item") + item_name: Optional[StrictStr] = Field(default=None, description="Name of the item") + item_description: Optional[StrictStr] = Field(default=None, description="Description of the item") + item_tags: Optional[List[StrictStr]] = Field(default=None, description="Tags attached to that item") + item_details_url: Optional[StrictStr] = Field(default=None, description="Item details url") + item_image_url: Optional[StrictStr] = Field(default=None, description="Item image url") + item_original_unit_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Original price") + item_discounted_unit_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Discounted Price") + item_currency: Optional[StrictStr] = Field(default=None, description="Currency of the item.") + item_quantity: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Quantity if that item") __properties = ["item_id", "item_name", "item_description", "item_tags", "item_details_url", "item_image_url", "item_original_unit_price", "item_discounted_unit_price", "item_currency", "item_quantity"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/cashback_details.py b/cashfree_pg/models/cashback_details.py index 5a02d854..292fc2e6 100644 --- a/cashfree_pg/models/cashback_details.py +++ b/cashfree_pg/models/cashback_details.py @@ -1,47 +1,49 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, constr, validator + + +from pydantic import field_validator class CashbackDetails(BaseModel): """ Cashback detail boject """ - cashback_type: constr(strict=True, max_length=50, min_length=1) = Field(..., description="Type of discount") - cashback_value: Union[StrictFloat, StrictInt] = Field(..., description="Value of Discount.") - max_cashback_amount: Union[StrictFloat, StrictInt] = Field(..., description="Maximum Value of Cashback allowed.") + cashback_type: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Type of discount") + cashback_value: Union[StrictFloat, StrictInt] = Field(description="Value of Discount.") + max_cashback_amount: Union[StrictFloat, StrictInt] = Field(description="Maximum Value of Cashback allowed.") __properties = ["cashback_type", "cashback_value", "max_cashback_amount"] - @validator('cashback_type') + @field_validator('cashback_type') def cashback_type_validate_enum(cls, value): """Validates the enum""" if value not in ('flat', 'percentage'): raise ValueError("must be one of enum values ('flat', 'percentage')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/charges_details.py b/cashfree_pg/models/charges_details.py index 1eb8216b..9cfd3d88 100644 --- a/cashfree_pg/models/charges_details.py +++ b/cashfree_pg/models/charges_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class ChargesDetails(BaseModel): """ @@ -33,10 +33,12 @@ class ChargesDetails(BaseModel): is_postpaid: Optional[StrictBool] = None __properties = ["service_charges", "service_tax", "amount", "billed_to", "is_postpaid"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/charges_entity.py b/cashfree_pg/models/charges_entity.py index 7239e45a..53b9882f 100644 --- a/cashfree_pg/models/charges_entity.py +++ b/cashfree_pg/models/charges_entity.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt + + +from pydantic import field_validator class ChargesEntity(BaseModel): """ Charges accociated with the order """ - shipping_charges: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Shipping charge of the order") - cod_handling_charges: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="COD handling fee for order") + shipping_charges: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Shipping charge of the order") + cod_handling_charges: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="COD handling fee for order") __properties = ["shipping_charges", "cod_handling_charges"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_customer_request.py b/cashfree_pg/models/create_customer_request.py index a8a468fd..42ac8b47 100644 --- a/cashfree_pg/models/create_customer_request.py +++ b/cashfree_pg/models/create_customer_request.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr + + +from pydantic import field_validator class CreateCustomerRequest(BaseModel): """ Request body to create a customer at cashfree """ - customer_phone: constr(strict=True, max_length=10, min_length=10) = Field(..., description="Customer Phone Number") - customer_email: Optional[StrictStr] = Field(None, description="Customer Email") - customer_name: Optional[StrictStr] = Field(None, description="Customer Name") + customer_phone: Annotated[str, Field(min_length=10, strict=True, max_length=10)] = Field(description="Customer Phone Number") + customer_email: Optional[StrictStr] = Field(default=None, description="Customer Email") + customer_name: Optional[StrictStr] = Field(default=None, description="Customer Name") __properties = ["customer_phone", "customer_email", "customer_name"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_link_request.py b/cashfree_pg/models/create_link_request.py index 571b6a0d..17e4f1c8 100644 --- a/cashfree_pg/models/create_link_request.py +++ b/cashfree_pg/models/create_link_request.py @@ -1,54 +1,56 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Dict, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist, constr + + from cashfree_pg.models.link_customer_details_entity import LinkCustomerDetailsEntity from cashfree_pg.models.link_meta_response_entity import LinkMetaResponseEntity from cashfree_pg.models.link_notify_entity import LinkNotifyEntity from cashfree_pg.models.vendor_split import VendorSplit +from pydantic import field_validator class CreateLinkRequest(BaseModel): """ Request paramenters for link creation """ - link_id: constr(strict=True, max_length=50) = Field(..., description="Unique Identifier (provided by merchant) for the Link. Alphanumeric and only - and _ allowed (50 character limit). Use this for other link-related APIs.") - link_amount: Union[StrictFloat, StrictInt] = Field(..., description="Amount to be collected using this link. Provide upto two decimals for paise.") - link_currency: constr(strict=True) = Field(..., description="Currency for the payment link. Default is INR. Contact care@cashfree.com to enable new currencies.") - link_purpose: constr(strict=True, max_length=500) = Field(..., description="A brief description for which payment must be collected. This is shown to the customer.") - customer_details: LinkCustomerDetailsEntity = Field(...) - link_partial_payments: Optional[StrictBool] = Field(None, description="If \"true\", customer can make partial payments for the link.") - link_minimum_partial_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Minimum amount in first installment that needs to be paid by the customer if partial payments are enabled. This should be less than the link_amount.") - link_expiry_time: Optional[StrictStr] = Field(None, description="Time after which the link expires. Customers will not be able to make the payment beyond the time specified here. You can provide them in a valid ISO 8601 time format. Default is 30 days.") + link_id: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Unique Identifier (provided by merchant) for the Link. Alphanumeric and only - and _ allowed (50 character limit). Use this for other link-related APIs.") + link_amount: Union[StrictFloat, StrictInt] = Field(description="Amount to be collected using this link. Provide upto two decimals for paise.") + link_currency: Annotated[str, Field(strict=True)] = Field(description="Currency for the payment link. Default is INR. Contact care@cashfree.com to enable new currencies.") + link_purpose: Annotated[str, Field(strict=True, max_length=500)] = Field(description="A brief description for which payment must be collected. This is shown to the customer.") + customer_details: LinkCustomerDetailsEntity + link_partial_payments: Optional[StrictBool] = Field(default=None, description="If \"true\", customer can make partial payments for the link.") + link_minimum_partial_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Minimum amount in first installment that needs to be paid by the customer if partial payments are enabled. This should be less than the link_amount.") + link_expiry_time: Optional[StrictStr] = Field(default=None, description="Time after which the link expires. Customers will not be able to make the payment beyond the time specified here. You can provide them in a valid ISO 8601 time format. Default is 30 days.") link_notify: Optional[LinkNotifyEntity] = None - link_auto_reminders: Optional[StrictBool] = Field(None, description="If \"true\", reminders will be sent to customers for collecting payments.") - link_notes: Optional[Dict[str, StrictStr]] = Field(None, description="Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs") + link_auto_reminders: Optional[StrictBool] = Field(default=None, description="If \"true\", reminders will be sent to customers for collecting payments.") + link_notes: Optional[Dict[str, StrictStr]] = Field(default=None, description="Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs") link_meta: Optional[LinkMetaResponseEntity] = None - order_splits: Optional[conlist(VendorSplit)] = Field(None, description="If you have Easy split enabled in your Cashfree account then you can use this option to split the order amount.") + order_splits: Optional[List[VendorSplit]] = Field(default=None, description="If you have Easy split enabled in your Cashfree account then you can use this option to split the order amount.") __properties = ["link_id", "link_amount", "link_currency", "link_purpose", "customer_details", "link_partial_payments", "link_minimum_partial_amount", "link_expiry_time", "link_notify", "link_auto_reminders", "link_notes", "link_meta", "order_splits"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_offer_request.py b/cashfree_pg/models/create_offer_request.py index bd080d79..247f2b7a 100644 --- a/cashfree_pg/models/create_offer_request.py +++ b/cashfree_pg/models/create_offer_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,26 +19,29 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.offer_details import OfferDetails from cashfree_pg.models.offer_meta import OfferMeta from cashfree_pg.models.offer_tnc import OfferTnc from cashfree_pg.models.offer_validations import OfferValidations +from pydantic import field_validator class CreateOfferRequest(BaseModel): """ create offer backend request object """ - offer_meta: OfferMeta = Field(...) - offer_tnc: OfferTnc = Field(...) - offer_details: OfferDetails = Field(...) - offer_validations: OfferValidations = Field(...) + offer_meta: OfferMeta + offer_tnc: OfferTnc + offer_details: OfferDetails + offer_validations: OfferValidations __properties = ["offer_meta", "offer_tnc", "offer_details", "offer_validations"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_order_request.py b/cashfree_pg/models/create_order_request.py index eec61f03..e72310a0 100644 --- a/cashfree_pg/models/create_order_request.py +++ b/cashfree_pg/models/create_order_request.py @@ -1,53 +1,55 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Dict, List, Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint, conlist, constr + + from cashfree_pg.models.cart_details import CartDetails from cashfree_pg.models.customer_details import CustomerDetails from cashfree_pg.models.order_meta import OrderMeta from cashfree_pg.models.terminal_details import TerminalDetails from cashfree_pg.models.vendor_split import VendorSplit +from pydantic import field_validator class CreateOrderRequest(BaseModel): """ Request body to create an order at cashfree """ - order_id: Optional[constr(strict=True, max_length=45, min_length=3)] = Field(None, description="Order identifier present in your system. Alphanumeric, '_' and '-' only") - order_amount: Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)] = Field(..., description="Bill amount for the order. Provide upto two decimals. 10.15 means Rs 10 and 15 paisa") - order_currency: StrictStr = Field(..., description="Currency for the order. INR if left empty. Contact care@cashfree.com to enable new currencies.") + order_id: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=45)]] = Field(default=None, description="Order identifier present in your system. Alphanumeric, '_' and '-' only") + order_amount: Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]] = Field(description="Bill amount for the order. Provide upto two decimals. 10.15 means Rs 10 and 15 paisa") + order_currency: StrictStr = Field(description="Currency for the order. INR if left empty. Contact care@cashfree.com to enable new currencies.") cart_details: Optional[CartDetails] = None - customer_details: CustomerDetails = Field(...) + customer_details: CustomerDetails terminal: Optional[TerminalDetails] = None order_meta: Optional[OrderMeta] = None - order_expiry_time: Optional[StrictStr] = Field(None, description="Time after which the order expires. Customers will not be able to make the payment beyond the time specified here. We store timestamps in IST, but you can provide them in a valid ISO 8601 time format. Example 2021-07-02T10:20:12+05:30 for IST, 2021-07-02T10:20:12Z for UTC") - order_note: Optional[constr(strict=True, max_length=200, min_length=3)] = Field(None, description="Order note for reference.") - order_tags: Optional[Dict[str, constr(strict=True, max_length=255, min_length=1)]] = Field(None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") - order_splits: Optional[conlist(VendorSplit)] = Field(None, description="If you have Easy split enabled in your Cashfree account then you can use this option to split the order amount.") + order_expiry_time: Optional[StrictStr] = Field(default=None, description="Time after which the order expires. Customers will not be able to make the payment beyond the time specified here. We store timestamps in IST, but you can provide them in a valid ISO 8601 time format. Example 2021-07-02T10:20:12+05:30 for IST, 2021-07-02T10:20:12Z for UTC") + order_note: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=200)]] = Field(default=None, description="Order note for reference.") + order_tags: Optional[Dict[str, Annotated[str, Field(min_length=1, strict=True, max_length=255)]]] = Field(default=None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") + order_splits: Optional[List[VendorSplit]] = Field(default=None, description="If you have Easy split enabled in your Cashfree account then you can use this option to split the order amount.") __properties = ["order_id", "order_amount", "order_currency", "cart_details", "customer_details", "terminal", "order_meta", "order_expiry_time", "order_note", "order_tags", "order_splits"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_order_settlement_request_body.py b/cashfree_pg/models/create_order_settlement_request_body.py index 5a346565..be46c0b4 100644 --- a/cashfree_pg/models/create_order_settlement_request_body.py +++ b/cashfree_pg/models/create_order_settlement_request_body.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,21 +19,24 @@ -from pydantic import BaseModel, Field, StrictStr + from cashfree_pg.models.create_order_settlement_request_body_meta_data import CreateOrderSettlementRequestBodyMetaData +from pydantic import field_validator class CreateOrderSettlementRequestBody(BaseModel): """ Create Order Settlement Object """ - order_id: StrictStr = Field(..., description="OrderId of the order.") - meta_data: CreateOrderSettlementRequestBodyMetaData = Field(...) + order_id: StrictStr = Field(description="OrderId of the order.") + meta_data: CreateOrderSettlementRequestBodyMetaData __properties = ["order_id", "meta_data"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_order_settlement_request_body_meta_data.py b/cashfree_pg/models/create_order_settlement_request_body_meta_data.py index 330a3758..e70e7f6d 100644 --- a/cashfree_pg/models/create_order_settlement_request_body_meta_data.py +++ b/cashfree_pg/models/create_order_settlement_request_body_meta_data.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from datetime import date -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + + +from pydantic import field_validator class CreateOrderSettlementRequestBodyMetaData(BaseModel): """ CreateOrderSettlementRequestBodyMetaData """ - cbriks_id: Optional[StrictStr] = Field(None, description="Meta data cbricks ID to be used for reporting purpose.") - settlement_date: Optional[date] = Field(None, description="Requested Settlement Date.") + cbriks_id: Optional[StrictStr] = Field(default=None, description="Meta data cbricks ID to be used for reporting purpose.") + settlement_date: Optional[date] = Field(default=None, description="Requested Settlement Date.") __properties = ["cbriks_id", "settlement_date"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_partner_vpa_request.py b/cashfree_pg/models/create_partner_vpa_request.py index c961e150..c077f66f 100644 --- a/cashfree_pg/models/create_partner_vpa_request.py +++ b/cashfree_pg/models/create_partner_vpa_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,19 +19,22 @@ -from pydantic import BaseModel, Field, StrictInt + +from pydantic import field_validator class CreatePartnerVpaRequest(BaseModel): """ CreatePartnerVpaRequest """ - vpa_count: StrictInt = Field(..., description="count of vpa , to create in bulk, max limit:50") + vpa_count: StrictInt = Field(description="count of vpa , to create in bulk, max limit:50") __properties = ["vpa_count"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_plan_request.py b/cashfree_pg/models/create_plan_request.py index 7bb87d5e..df9648f2 100644 --- a/cashfree_pg/models/create_plan_request.py +++ b/cashfree_pg/models/create_plan_request.py @@ -1,47 +1,49 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr + + +from pydantic import field_validator class CreatePlanRequest(BaseModel): """ Request body to create a plan. """ - plan_id: constr(strict=True, max_length=40, min_length=1) = Field(..., description="Unique ID to identify the plan. Only alpha-numerics, dot, hyphen and underscore allowed.") - plan_name: constr(strict=True, max_length=40, min_length=1) = Field(..., description="Name of the plan.") - plan_type: StrictStr = Field(..., description="Type of the plan. Possible values - PERIODIC, ON_DEMAND.") - plan_currency: Optional[StrictStr] = Field(None, description="Currency of the plan.") - plan_recurring_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Recurring amount for the plan. Required for PERIODIC plan_type.") - plan_max_amount: Union[StrictFloat, StrictInt] = Field(..., description="Maximum amount for the plan.") - plan_max_cycles: Optional[StrictInt] = Field(None, description="Maximum number of payment cycles for the plan.") - plan_intervals: Optional[StrictInt] = Field(None, description="Number of billing cycles between charges. For instance, if set to 2 and the interval type is 'week', the service will be billed every 2 weeks. Similarly, if set to 3 and the interval type is 'month', the service will be billed every 3 months. Required for PERIODIC plan_type.") - plan_interval_type: Optional[StrictStr] = Field(None, description="Interval type for the plan. Possible values - DAY, WEEK, MONTH, YEAR.") - plan_note: Optional[StrictStr] = Field(None, description="Note for the plan.") + plan_id: Annotated[str, Field(min_length=1, strict=True, max_length=40)] = Field(description="Unique ID to identify the plan. Only alpha-numerics, dot, hyphen and underscore allowed.") + plan_name: Annotated[str, Field(min_length=1, strict=True, max_length=40)] = Field(description="Name of the plan.") + plan_type: StrictStr = Field(description="Type of the plan. Possible values - PERIODIC, ON_DEMAND.") + plan_currency: Optional[StrictStr] = Field(default=None, description="Currency of the plan.") + plan_recurring_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Recurring amount for the plan. Required for PERIODIC plan_type.") + plan_max_amount: Union[StrictFloat, StrictInt] = Field(description="Maximum amount for the plan.") + plan_max_cycles: Optional[StrictInt] = Field(default=None, description="Maximum number of payment cycles for the plan.") + plan_intervals: Optional[StrictInt] = Field(default=None, description="Number of billing cycles between charges. For instance, if set to 2 and the interval type is 'week', the service will be billed every 2 weeks. Similarly, if set to 3 and the interval type is 'month', the service will be billed every 3 months. Required for PERIODIC plan_type.") + plan_interval_type: Optional[StrictStr] = Field(default=None, description="Interval type for the plan. Possible values - DAY, WEEK, MONTH, YEAR.") + plan_note: Optional[StrictStr] = Field(default=None, description="Note for the plan.") __properties = ["plan_id", "plan_name", "plan_type", "plan_currency", "plan_recurring_amount", "plan_max_amount", "plan_max_cycles", "plan_intervals", "plan_interval_type", "plan_note"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscription_payment_request.py b/cashfree_pg/models/create_subscription_payment_request.py index e1933ebd..4ceb0e34 100644 --- a/cashfree_pg/models/create_subscription_payment_request.py +++ b/cashfree_pg/models/create_subscription_payment_request.py @@ -1,46 +1,48 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + from cashfree_pg.models.create_subscription_payment_request_payment_method import CreateSubscriptionPaymentRequestPaymentMethod +from pydantic import field_validator class CreateSubscriptionPaymentRequest(BaseModel): """ The request to be passed for the create subscription payment API. """ - subscription_id: StrictStr = Field(..., description="A unique ID passed by merchant for identifying the subscription.") - subscription_session_id: Optional[StrictStr] = Field(None, description="Session ID for the subscription. Required only for Auth.") - payment_id: StrictStr = Field(..., description="A unique ID passed by merchant for identifying the subscription payment.") - payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The charge amount of the payment. Required in case of charge.") - payment_schedule_date: Optional[StrictStr] = Field(None, description="The date on which the payment is scheduled to be processed. Required for UPI and CARD payment modes.") - payment_remarks: Optional[StrictStr] = Field(None, description="Payment remarks.") - payment_type: StrictStr = Field(..., description="Payment type. Can be AUTH or CHARGE.") + subscription_id: StrictStr = Field(description="A unique ID passed by merchant for identifying the subscription.") + subscription_session_id: Optional[StrictStr] = Field(default=None, description="Session ID for the subscription. Required only for Auth.") + payment_id: StrictStr = Field(description="A unique ID passed by merchant for identifying the subscription payment.") + payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The charge amount of the payment. Required in case of charge.") + payment_schedule_date: Optional[StrictStr] = Field(default=None, description="The date on which the payment is scheduled to be processed. Required for UPI and CARD payment modes.") + payment_remarks: Optional[StrictStr] = Field(default=None, description="Payment remarks.") + payment_type: StrictStr = Field(description="Payment type. Can be AUTH or CHARGE.") payment_method: Optional[CreateSubscriptionPaymentRequestPaymentMethod] = None __properties = ["subscription_id", "subscription_session_id", "payment_id", "payment_amount", "payment_schedule_date", "payment_remarks", "payment_type", "payment_method"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscription_payment_request_card.py b/cashfree_pg/models/create_subscription_payment_request_card.py index 7a5712ea..e199b150 100644 --- a/cashfree_pg/models/create_subscription_payment_request_card.py +++ b/cashfree_pg/models/create_subscription_payment_request_card.py @@ -1,45 +1,47 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class CreateSubscriptionPaymentRequestCard(BaseModel): """ payment method card. """ - channel: Optional[StrictStr] = Field(None, description="Channel. can be link") - card_number: Optional[StrictStr] = Field(None, description="Card number") - card_holder_name: Optional[StrictStr] = Field(None, description="Card holder name") - card_expiry_mm: Optional[StrictStr] = Field(None, description="Card expiry month") - card_expiry_yy: Optional[StrictStr] = Field(None, description="Card expiry year") - card_cvv: Optional[StrictStr] = Field(None, description="Card CVV") - card_network: Optional[StrictStr] = Field(None, description="Card network") - card_type: Optional[StrictStr] = Field(None, description="Card type") + channel: Optional[StrictStr] = Field(default=None, description="Channel. can be link") + card_number: Optional[StrictStr] = Field(default=None, description="Card number") + card_holder_name: Optional[StrictStr] = Field(default=None, description="Card holder name") + card_expiry_mm: Optional[StrictStr] = Field(default=None, description="Card expiry month") + card_expiry_yy: Optional[StrictStr] = Field(default=None, description="Card expiry year") + card_cvv: Optional[StrictStr] = Field(default=None, description="Card CVV") + card_network: Optional[StrictStr] = Field(default=None, description="Card network") + card_type: Optional[StrictStr] = Field(default=None, description="Card type") __properties = ["channel", "card_number", "card_holder_name", "card_expiry_mm", "card_expiry_yy", "card_cvv", "card_network", "card_type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscription_payment_request_enack.py b/cashfree_pg/models/create_subscription_payment_request_enack.py index f4434735..f602dff6 100644 --- a/cashfree_pg/models/create_subscription_payment_request_enack.py +++ b/cashfree_pg/models/create_subscription_payment_request_enack.py @@ -1,44 +1,46 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class CreateSubscriptionPaymentRequestEnack(BaseModel): """ payment method enach. """ - channel: Optional[StrictStr] = Field(None, description="Channel. can be link") - auth_mode: Optional[StrictStr] = Field(None, description="Authentication mode. can be debit_card, aadhaar, or net_banking") - account_holder_name: Optional[StrictStr] = Field(None, description="Account holder name") - account_number: Optional[StrictStr] = Field(None, description="Account number") - account_bank_code: Optional[StrictStr] = Field(None, description="Account bank code (required without AccountIFSC)") - account_type: Optional[StrictStr] = Field(None, description="Account type") - account_ifsc: Optional[StrictStr] = Field(None, description="Account IFSC") + channel: Optional[StrictStr] = Field(default=None, description="Channel. can be link") + auth_mode: Optional[StrictStr] = Field(default=None, description="Authentication mode. can be debit_card, aadhaar, or net_banking") + account_holder_name: Optional[StrictStr] = Field(default=None, description="Account holder name") + account_number: Optional[StrictStr] = Field(default=None, description="Account number") + account_bank_code: Optional[StrictStr] = Field(default=None, description="Account bank code (required without AccountIFSC)") + account_type: Optional[StrictStr] = Field(default=None, description="Account type") + account_ifsc: Optional[StrictStr] = Field(default=None, description="Account IFSC") __properties = ["channel", "auth_mode", "account_holder_name", "account_number", "account_bank_code", "account_type", "account_ifsc"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscription_payment_request_payment_method.py b/cashfree_pg/models/create_subscription_payment_request_payment_method.py index e359a614..f3e7b314 100644 --- a/cashfree_pg/models/create_subscription_payment_request_payment_method.py +++ b/cashfree_pg/models/create_subscription_payment_request_payment_method.py @@ -1,31 +1,30 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations from inspect import getfullargspec import json import pprint import re # noqa: F401 -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator + + from cashfree_pg.models.create_subscription_payment_request_card import CreateSubscriptionPaymentRequestCard from cashfree_pg.models.create_subscription_payment_request_enack import CreateSubscriptionPaymentRequestEnack from cashfree_pg.models.create_subscription_payment_request_pnach import CreateSubscriptionPaymentRequestPnach from cashfree_pg.models.create_subscripton_payment_request_upi import CreateSubscriptonPaymentRequestUpi -from typing import Union, Any, List, TYPE_CHECKING +from typing import Union, Any, List, TYPE_CHECKING, Literal from pydantic import StrictStr, Field CREATESUBSCRIPTIONPAYMENTREQUESTPAYMENTMETHOD_ONE_OF_SCHEMAS = ["CreateSubscriptionPaymentRequestCard", "CreateSubscriptionPaymentRequestEnack", "CreateSubscriptionPaymentRequestPnach", "CreateSubscriptonPaymentRequestUpi"] @@ -46,10 +45,12 @@ class CreateSubscriptionPaymentRequestPaymentMethod(BaseModel): actual_instance: Union[CreateSubscriptionPaymentRequestCard, CreateSubscriptionPaymentRequestEnack, CreateSubscriptionPaymentRequestPnach, CreateSubscriptonPaymentRequestUpi] else: actual_instance: Any - one_of_schemas: List[str] = Field(CREATESUBSCRIPTIONPAYMENTREQUESTPAYMENTMETHOD_ONE_OF_SCHEMAS, const=True) + one_of_schemas: List[str] = Literal[CREATESUBSCRIPTIONPAYMENTREQUESTPAYMENTMETHOD_ONE_OF_SCHEMAS] - class Config: - validate_assignment = True + # Updated to Pydantic v2 + model_config = { + "validate_assignment": True + } def __init__(self, *args, **kwargs): if args: diff --git a/cashfree_pg/models/create_subscription_payment_request_pnach.py b/cashfree_pg/models/create_subscription_payment_request_pnach.py index 13d53392..aeff4e69 100644 --- a/cashfree_pg/models/create_subscription_payment_request_pnach.py +++ b/cashfree_pg/models/create_subscription_payment_request_pnach.py @@ -1,45 +1,47 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class CreateSubscriptionPaymentRequestPnach(BaseModel): """ payment method pnach. """ - channel: Optional[StrictStr] = Field(None, description="Channel. can be post") - account_holder_name: Optional[StrictStr] = Field(None, description="Account holder name") - account_number: Optional[StrictStr] = Field(None, description="Account number") - account_bank_code: Optional[StrictStr] = Field(None, description="Account bank code") - account_type: Optional[StrictStr] = Field(None, description="Account type") - account_ifsc: Optional[StrictStr] = Field(None, description="Account IFSC") - mandate_creation_date: Optional[StrictStr] = Field(None, description="Mandate creation date") - mandate_start_date: Optional[StrictStr] = Field(None, description="Mandate start date") + channel: Optional[StrictStr] = Field(default=None, description="Channel. can be post") + account_holder_name: Optional[StrictStr] = Field(default=None, description="Account holder name") + account_number: Optional[StrictStr] = Field(default=None, description="Account number") + account_bank_code: Optional[StrictStr] = Field(default=None, description="Account bank code") + account_type: Optional[StrictStr] = Field(default=None, description="Account type") + account_ifsc: Optional[StrictStr] = Field(default=None, description="Account IFSC") + mandate_creation_date: Optional[StrictStr] = Field(default=None, description="Mandate creation date") + mandate_start_date: Optional[StrictStr] = Field(default=None, description="Mandate start date") __properties = ["channel", "account_holder_name", "account_number", "account_bank_code", "account_type", "account_ifsc", "mandate_creation_date", "mandate_start_date"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscription_payment_response.py b/cashfree_pg/models/create_subscription_payment_response.py index 287bd965..091c0973 100644 --- a/cashfree_pg/models/create_subscription_payment_response.py +++ b/cashfree_pg/models/create_subscription_payment_response.py @@ -1,48 +1,50 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + from cashfree_pg.models.subscription_payment_entity_failure_details import SubscriptionPaymentEntityFailureDetails +from pydantic import field_validator class CreateSubscriptionPaymentResponse(BaseModel): """ The response returned is Create Subscription Auth or Charge APIs. """ - cf_payment_id: Optional[StrictStr] = Field(None, description="Cashfree subscription payment reference number") + cf_payment_id: Optional[StrictStr] = Field(default=None, description="Cashfree subscription payment reference number") failure_details: Optional[SubscriptionPaymentEntityFailureDetails] = None - payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The charge amount of the payment.") - payment_id: Optional[StrictStr] = Field(None, description="A unique ID passed by merchant for identifying the transaction.") - payment_initiated_date: Optional[StrictStr] = Field(None, description="The date on which the payment was initiated.") - payment_status: Optional[StrictStr] = Field(None, description="Status of the payment.") - payment_type: Optional[StrictStr] = Field(None, description="Payment type. Can be AUTH or CHARGE.") - subscription_id: Optional[StrictStr] = Field(None, description="A unique ID passed by merchant for identifying the subscription.") - data: Optional[Dict[str, Any]] = Field(None, description="Contains a payload for auth app links in case of AUTH. For charge, the payload is empty.") - payment_method: Optional[StrictStr] = Field(None, description="Payment method used for the authorization.") + payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The charge amount of the payment.") + payment_id: Optional[StrictStr] = Field(default=None, description="A unique ID passed by merchant for identifying the transaction.") + payment_initiated_date: Optional[StrictStr] = Field(default=None, description="The date on which the payment was initiated.") + payment_status: Optional[StrictStr] = Field(default=None, description="Status of the payment.") + payment_type: Optional[StrictStr] = Field(default=None, description="Payment type. Can be AUTH or CHARGE.") + subscription_id: Optional[StrictStr] = Field(default=None, description="A unique ID passed by merchant for identifying the subscription.") + data: Optional[Dict[str, Any]] = Field(default=None, description="Contains a payload for auth app links in case of AUTH. For charge, the payload is empty.") + payment_method: Optional[StrictStr] = Field(default=None, description="Payment method used for the authorization.") __properties = ["cf_payment_id", "failure_details", "payment_amount", "payment_id", "payment_initiated_date", "payment_status", "payment_type", "subscription_id", "data", "payment_method"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscription_refund_request.py b/cashfree_pg/models/create_subscription_refund_request.py index aba434d0..824b1ea8 100644 --- a/cashfree_pg/models/create_subscription_refund_request.py +++ b/cashfree_pg/models/create_subscription_refund_request.py @@ -1,44 +1,46 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class CreateSubscriptionRefundRequest(BaseModel): """ Request body to create a subscription refund. """ - subscription_id: StrictStr = Field(..., description="A unique ID passed by merchant for identifying the subscription.") - payment_id: Optional[StrictStr] = Field(None, description="A unique ID passed by merchant for identifying the transaction.") - cf_payment_id: Optional[StrictStr] = Field(None, description="Cashfree subscription payment reference number.") - refund_id: StrictStr = Field(..., description="A unique ID passed by merchant for identifying the refund.") - refund_amount: Union[StrictFloat, StrictInt] = Field(..., description="The amount to be refunded. Can be partial or full amount of the payment.") - refund_note: Optional[StrictStr] = Field(None, description="Refund note.") - refund_speed: Optional[StrictStr] = Field(None, description="Refund speed. Can be INSTANT or STANDARD. UPI supports only STANDARD refunds, Enach and Pnach supports only INSTANT refunds.") + subscription_id: StrictStr = Field(description="A unique ID passed by merchant for identifying the subscription.") + payment_id: Optional[StrictStr] = Field(default=None, description="A unique ID passed by merchant for identifying the transaction.") + cf_payment_id: Optional[StrictStr] = Field(default=None, description="Cashfree subscription payment reference number.") + refund_id: StrictStr = Field(description="A unique ID passed by merchant for identifying the refund.") + refund_amount: Union[StrictFloat, StrictInt] = Field(description="The amount to be refunded. Can be partial or full amount of the payment.") + refund_note: Optional[StrictStr] = Field(default=None, description="Refund note.") + refund_speed: Optional[StrictStr] = Field(default=None, description="Refund speed. Can be INSTANT or STANDARD. UPI supports only STANDARD refunds, Enach and Pnach supports only INSTANT refunds.") __properties = ["subscription_id", "payment_id", "cf_payment_id", "refund_id", "refund_amount", "refund_note", "refund_speed"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscription_request.py b/cashfree_pg/models/create_subscription_request.py index 6f87db0c..b98f0c33 100644 --- a/cashfree_pg/models/create_subscription_request.py +++ b/cashfree_pg/models/create_subscription_request.py @@ -1,52 +1,54 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist, constr + + from cashfree_pg.models.create_subscription_request_authorization_details import CreateSubscriptionRequestAuthorizationDetails from cashfree_pg.models.create_subscription_request_plan_details import CreateSubscriptionRequestPlanDetails from cashfree_pg.models.create_subscription_request_subscription_meta import CreateSubscriptionRequestSubscriptionMeta from cashfree_pg.models.subscription_customer_details import SubscriptionCustomerDetails from cashfree_pg.models.subscription_payment_split_item import SubscriptionPaymentSplitItem +from pydantic import field_validator class CreateSubscriptionRequest(BaseModel): """ Request body to create a new subscription. """ - subscription_id: constr(strict=True, max_length=250, min_length=1) = Field(..., description="A unique ID for the subscription. It can include alphanumeric characters, underscore, dot, hyphen, and space. Maximum characters allowed is 250.") - customer_details: SubscriptionCustomerDetails = Field(...) - plan_details: CreateSubscriptionRequestPlanDetails = Field(...) + subscription_id: Annotated[str, Field(min_length=1, strict=True, max_length=250)] = Field(description="A unique ID for the subscription. It can include alphanumeric characters, underscore, dot, hyphen, and space. Maximum characters allowed is 250.") + customer_details: SubscriptionCustomerDetails + plan_details: CreateSubscriptionRequestPlanDetails authorization_details: Optional[CreateSubscriptionRequestAuthorizationDetails] = None subscription_meta: Optional[CreateSubscriptionRequestSubscriptionMeta] = None - subscription_expiry_time: Optional[StrictStr] = Field(None, description="Expiry date for the subscription.") - subscription_first_charge_time: Optional[StrictStr] = Field(None, description="Time at which the first charge will be made for the subscription after authorization. Applicable only for PERIODIC plans.") - subscription_note: Optional[StrictStr] = Field(None, description="Note for the subscription.") - subscription_tags: Optional[Dict[str, Any]] = Field(None, description="Tags for the subscription.") - subscription_payment_splits: Optional[conlist(SubscriptionPaymentSplitItem)] = Field(None, description="Payment splits for the subscription.") + subscription_expiry_time: Optional[StrictStr] = Field(default=None, description="Expiry date for the subscription.") + subscription_first_charge_time: Optional[StrictStr] = Field(default=None, description="Time at which the first charge will be made for the subscription after authorization. Applicable only for PERIODIC plans.") + subscription_note: Optional[StrictStr] = Field(default=None, description="Note for the subscription.") + subscription_tags: Optional[Dict[str, Any]] = Field(default=None, description="Tags for the subscription.") + subscription_payment_splits: Optional[List[SubscriptionPaymentSplitItem]] = Field(default=None, description="Payment splits for the subscription.") __properties = ["subscription_id", "customer_details", "plan_details", "authorization_details", "subscription_meta", "subscription_expiry_time", "subscription_first_charge_time", "subscription_note", "subscription_tags", "subscription_payment_splits"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscription_request_authorization_details.py b/cashfree_pg/models/create_subscription_request_authorization_details.py index 72db0a9a..12f4afa5 100644 --- a/cashfree_pg/models/create_subscription_request_authorization_details.py +++ b/cashfree_pg/models/create_subscription_request_authorization_details.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist + + +from pydantic import field_validator class CreateSubscriptionRequestAuthorizationDetails(BaseModel): """ CreateSubscriptionRequestAuthorizationDetails """ - authorization_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Authorization amount for the auth payment.") - authorization_amount_refund: Optional[StrictBool] = Field(None, description="Indicates whether the authorization amount should be refunded to the customer automatically. Merchants can use this field to specify if the authorized funds should be returned to the customer after authorization of the subscription.") - payment_methods: Optional[conlist(StrictStr)] = Field(None, description="Payment methods for the subscription. enach, pnach, upi, card are possible values.") + authorization_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Authorization amount for the auth payment.") + authorization_amount_refund: Optional[StrictBool] = Field(default=None, description="Indicates whether the authorization amount should be refunded to the customer automatically. Merchants can use this field to specify if the authorized funds should be returned to the customer after authorization of the subscription.") + payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Payment methods for the subscription. enach, pnach, upi, card are possible values.") __properties = ["authorization_amount", "authorization_amount_refund", "payment_methods"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscription_request_plan_details.py b/cashfree_pg/models/create_subscription_request_plan_details.py index 9e72e3e5..166a257a 100644 --- a/cashfree_pg/models/create_subscription_request_plan_details.py +++ b/cashfree_pg/models/create_subscription_request_plan_details.py @@ -1,47 +1,49 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr + + +from pydantic import field_validator class CreateSubscriptionRequestPlanDetails(BaseModel): """ CreateSubscriptionRequestPlanDetails """ - plan_id: Optional[StrictStr] = Field(None, description="The unique identifier used to create plan. You only need to pass this field if you had already created plan. Otherwise use the other fields here to define the plan.") - plan_name: Optional[constr(strict=True, max_length=40)] = Field(None, description="Specify plan name for easy reference.") - plan_type: Optional[StrictStr] = Field(None, description="Possible values ON_DEMAND or PERIODIC. PERIODIC - Payments are triggered automatically at fixed intervals defined by the merchant. ON_DEMAND - Merchant needs to trigger/charge the customer explicitly with the required amount.") - plan_currency: Optional[StrictStr] = Field(None, description="INR by default.") - plan_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The amount to be charged for PERIODIC plan. This is a conditional parameter, only required for PERIODIC plans.") - plan_max_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="This is the maximum amount that can be charged on a subscription.") - plan_max_cycles: Optional[StrictInt] = Field(None, description="Maximum number of debits set for the plan. The subscription will automatically change to COMPLETED status once this limit is reached.") - plan_intervals: Optional[StrictInt] = Field(None, description="Number of intervals of intervalType between every subscription payment. For example, to charge a customer bi-weekly use intervalType as “week” and intervals as 2. Required for PERIODIC plan. The default value is 1.") - plan_interval_type: Optional[StrictStr] = Field(None, description="The type of interval for a PERIODIC plan like DAY, WEEK, MONTH, or YEAR. This is a conditional parameter only applicable for PERIODIC plans.") - plan_note: Optional[StrictStr] = Field(None, description="Note for the plan.") + plan_id: Optional[StrictStr] = Field(default=None, description="The unique identifier used to create plan. You only need to pass this field if you had already created plan. Otherwise use the other fields here to define the plan.") + plan_name: Optional[Annotated[str, Field(strict=True, max_length=40)]] = Field(default=None, description="Specify plan name for easy reference.") + plan_type: Optional[StrictStr] = Field(default=None, description="Possible values ON_DEMAND or PERIODIC. PERIODIC - Payments are triggered automatically at fixed intervals defined by the merchant. ON_DEMAND - Merchant needs to trigger/charge the customer explicitly with the required amount.") + plan_currency: Optional[StrictStr] = Field(default=None, description="INR by default.") + plan_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The amount to be charged for PERIODIC plan. This is a conditional parameter, only required for PERIODIC plans.") + plan_max_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="This is the maximum amount that can be charged on a subscription.") + plan_max_cycles: Optional[StrictInt] = Field(default=None, description="Maximum number of debits set for the plan. The subscription will automatically change to COMPLETED status once this limit is reached.") + plan_intervals: Optional[StrictInt] = Field(default=None, description="Number of intervals of intervalType between every subscription payment. For example, to charge a customer bi-weekly use intervalType as “week” and intervals as 2. Required for PERIODIC plan. The default value is 1.") + plan_interval_type: Optional[StrictStr] = Field(default=None, description="The type of interval for a PERIODIC plan like DAY, WEEK, MONTH, or YEAR. This is a conditional parameter only applicable for PERIODIC plans.") + plan_note: Optional[StrictStr] = Field(default=None, description="Note for the plan.") __properties = ["plan_id", "plan_name", "plan_type", "plan_currency", "plan_amount", "plan_max_amount", "plan_max_cycles", "plan_intervals", "plan_interval_type", "plan_note"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscription_request_subscription_meta.py b/cashfree_pg/models/create_subscription_request_subscription_meta.py index 57f526e2..38315dae 100644 --- a/cashfree_pg/models/create_subscription_request_subscription_meta.py +++ b/cashfree_pg/models/create_subscription_request_subscription_meta.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist + + +from pydantic import field_validator class CreateSubscriptionRequestSubscriptionMeta(BaseModel): """ CreateSubscriptionRequestSubscriptionMeta """ - return_url: Optional[StrictStr] = Field(None, description="The url to redirect after checkout.") - notification_channel: Optional[conlist(StrictStr)] = Field(None, description="Notification channel for the subscription. SMS, EMAIL are possible values.") + return_url: Optional[StrictStr] = Field(default=None, description="The url to redirect after checkout.") + notification_channel: Optional[List[StrictStr]] = Field(default=None, description="Notification channel for the subscription. SMS, EMAIL are possible values.") __properties = ["return_url", "notification_channel"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_subscripton_payment_request_upi.py b/cashfree_pg/models/create_subscripton_payment_request_upi.py index 4fe58555..78223c78 100644 --- a/cashfree_pg/models/create_subscripton_payment_request_upi.py +++ b/cashfree_pg/models/create_subscripton_payment_request_upi.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class CreateSubscriptonPaymentRequestUpi(BaseModel): """ payment method upi. """ upi_id: Optional[StrictStr] = None - channel: Optional[StrictStr] = Field(None, description="Channel. can be link, qrcode, or collect") + channel: Optional[StrictStr] = Field(default=None, description="Channel. can be link, qrcode, or collect") __properties = ["upi_id", "channel"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_terminal_request.py b/cashfree_pg/models/create_terminal_request.py index a6a821c6..3fc969f8 100644 --- a/cashfree_pg/models/create_terminal_request.py +++ b/cashfree_pg/models/create_terminal_request.py @@ -1,46 +1,48 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, constr + + from cashfree_pg.models.create_terminal_request_terminal_meta import CreateTerminalRequestTerminalMeta +from pydantic import field_validator class CreateTerminalRequest(BaseModel): """ Request body to create a terminal """ - terminal_id: constr(strict=True, max_length=100, min_length=3) = Field(..., description="merchant’s internal terminal id") - terminal_phone_no: constr(strict=True, max_length=10, min_length=10) = Field(..., description="phone number assigned to the terminal") - terminal_name: constr(strict=True, max_length=100, min_length=3) = Field(..., description="terminal name to be assigned by merchants") - terminal_address: Optional[constr(strict=True, max_length=100, min_length=1)] = Field(None, description="address of the terminal. required for STOREFRONT") - terminal_email: constr(strict=True, max_length=100, min_length=1) = Field(..., description="terminal email ID of the AGENT/STOREFRONT assigned by merchants.") - terminal_note: Optional[constr(strict=True, max_length=100, min_length=1)] = Field(None, description="additional note for terminal") - terminal_type: constr(strict=True, max_length=100, min_length=1) = Field(..., description="mention the terminal type. possible values - AGENT, STOREFRONT.") + terminal_id: Annotated[str, Field(min_length=3, strict=True, max_length=100)] = Field(description="merchant’s internal terminal id") + terminal_phone_no: Annotated[str, Field(min_length=10, strict=True, max_length=10)] = Field(description="phone number assigned to the terminal") + terminal_name: Annotated[str, Field(min_length=3, strict=True, max_length=100)] = Field(description="terminal name to be assigned by merchants") + terminal_address: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=100)]] = Field(default=None, description="address of the terminal. required for STOREFRONT") + terminal_email: Annotated[str, Field(min_length=1, strict=True, max_length=100)] = Field(description="terminal email ID of the AGENT/STOREFRONT assigned by merchants.") + terminal_note: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=100)]] = Field(default=None, description="additional note for terminal") + terminal_type: Annotated[str, Field(min_length=1, strict=True, max_length=100)] = Field(description="mention the terminal type. possible values - AGENT, STOREFRONT.") terminal_meta: Optional[CreateTerminalRequestTerminalMeta] = None __properties = ["terminal_id", "terminal_phone_no", "terminal_name", "terminal_address", "terminal_email", "terminal_note", "terminal_type", "terminal_meta"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_terminal_request_terminal_meta.py b/cashfree_pg/models/create_terminal_request_terminal_meta.py index 28b97e35..56ce6ecf 100644 --- a/cashfree_pg/models/create_terminal_request_terminal_meta.py +++ b/cashfree_pg/models/create_terminal_request_terminal_meta.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class CreateTerminalRequestTerminalMeta(BaseModel): """ terminal metadata. required field for storefront. """ - terminal_operator: Optional[StrictStr] = Field(None, description="name of the STOREFRONT operator.") + terminal_operator: Optional[StrictStr] = Field(default=None, description="name of the STOREFRONT operator.") __properties = ["terminal_operator"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_terminal_transaction_request.py b/cashfree_pg/models/create_terminal_transaction_request.py index 96ec155a..6d06c408 100644 --- a/cashfree_pg/models/create_terminal_transaction_request.py +++ b/cashfree_pg/models/create_terminal_transaction_request.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, constr + + +from pydantic import field_validator class CreateTerminalTransactionRequest(BaseModel): """ Request body to create a terminal transaction """ - cf_order_id: StrictStr = Field(..., description="cashfree order ID that was returned while creating an order.") - cf_terminal_id: Optional[StrictStr] = Field(None, description="cashfree terminal id. this is a required parameter when you do not provide the terminal phone number.") - payment_method: constr(strict=True, max_length=100, min_length=3) = Field(..., description="mention the payment method used for the transaction. possible values - QR_CODE, LINK.") - terminal_phone_no: Optional[constr(strict=True, max_length=10, min_length=10)] = Field(None, description="agent mobile number assigned to the terminal. this is a required parameter when you do not provide the cf_terminal_id.") - add_invoice: Optional[StrictBool] = Field(None, description="make it true to have request be sent to create a Dynamic GST QR Code.") + cf_order_id: StrictStr = Field(description="cashfree order ID that was returned while creating an order.") + cf_terminal_id: Optional[StrictStr] = Field(default=None, description="cashfree terminal id. this is a required parameter when you do not provide the terminal phone number.") + payment_method: Annotated[str, Field(min_length=3, strict=True, max_length=100)] = Field(description="mention the payment method used for the transaction. possible values - QR_CODE, LINK.") + terminal_phone_no: Optional[Annotated[str, Field(min_length=10, strict=True, max_length=10)]] = Field(default=None, description="agent mobile number assigned to the terminal. this is a required parameter when you do not provide the cf_terminal_id.") + add_invoice: Optional[StrictBool] = Field(default=None, description="make it true to have request be sent to create a Dynamic GST QR Code.") __properties = ["cf_order_id", "cf_terminal_id", "payment_method", "terminal_phone_no", "add_invoice"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_vendor_request.py b/cashfree_pg/models/create_vendor_request.py index 4bae1085..63a4e74b 100644 --- a/cashfree_pg/models/create_vendor_request.py +++ b/cashfree_pg/models/create_vendor_request.py @@ -1,51 +1,53 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist + + from cashfree_pg.models.bank_details import BankDetails from cashfree_pg.models.kyc_details import KycDetails from cashfree_pg.models.upi_details import UpiDetails +from pydantic import field_validator class CreateVendorRequest(BaseModel): """ Create Vendor Request """ - vendor_id: StrictStr = Field(..., description="Specify the unique Vendor ID to identify the beneficiary. Alphanumeric and underscore (_) allowed.") - status: StrictStr = Field(..., description="Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED") - name: StrictStr = Field(..., description="Specify the name of the vendor to be updated. Name should not have any special character except . / - &") - email: StrictStr = Field(..., description="Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.)") - phone: StrictStr = Field(..., description="Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91).") - verify_account: Optional[StrictBool] = Field(None, description="Specify if the vendor bank account details should be verified. Possible values: true or false") - dashboard_access: Optional[StrictBool] = Field(None, description="Update if the vendor will have dashboard access or not. Possible values are: true or false") - schedule_option: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements.") - bank: Optional[conlist(BankDetails)] = Field(None, description="Specify the vendor bank account details to be updated.") - upi: Optional[conlist(UpiDetails)] = Field(None, description="Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign.") - kyc_details: conlist(KycDetails) = Field(..., description="Specify the kyc details that should be updated.") + vendor_id: StrictStr = Field(description="Specify the unique Vendor ID to identify the beneficiary. Alphanumeric and underscore (_) allowed.") + status: StrictStr = Field(description="Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED") + name: StrictStr = Field(description="Specify the name of the vendor to be updated. Name should not have any special character except . / - &") + email: StrictStr = Field(description="Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.)") + phone: StrictStr = Field(description="Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91).") + verify_account: Optional[StrictBool] = Field(default=None, description="Specify if the vendor bank account details should be verified. Possible values: true or false") + dashboard_access: Optional[StrictBool] = Field(default=None, description="Update if the vendor will have dashboard access or not. Possible values are: true or false") + schedule_option: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements.") + bank: Optional[List[BankDetails]] = Field(default=None, description="Specify the vendor bank account details to be updated.") + upi: Optional[List[UpiDetails]] = Field(default=None, description="Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign.") + kyc_details: List[KycDetails] = Field(description="Specify the kyc details that should be updated.") __properties = ["vendor_id", "status", "name", "email", "phone", "verify_account", "dashboard_access", "schedule_option", "bank", "upi", "kyc_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/create_vendor_response.py b/cashfree_pg/models/create_vendor_response.py index c4399f06..eb03843e 100644 --- a/cashfree_pg/models/create_vendor_response.py +++ b/cashfree_pg/models/create_vendor_response.py @@ -1,29 +1,29 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr, conlist + + from cashfree_pg.models.bank_details import BankDetails from cashfree_pg.models.kyc_details import KycDetails from cashfree_pg.models.schedule_option import ScheduleOption +from pydantic import field_validator class CreateVendorResponse(BaseModel): """ @@ -31,21 +31,23 @@ class CreateVendorResponse(BaseModel): """ email: Optional[StrictStr] = None status: Optional[StrictStr] = None - bank: Optional[conlist(BankDetails)] = None + bank: Optional[List[BankDetails]] = None upi: Optional[StrictStr] = None phone: Optional[Union[StrictFloat, StrictInt]] = None name: Optional[StrictStr] = None vendor_id: Optional[StrictStr] = None - schedule_option: Optional[conlist(ScheduleOption)] = None - kyc_details: Optional[conlist(KycDetails)] = None + schedule_option: Optional[List[ScheduleOption]] = None + kyc_details: Optional[List[KycDetails]] = None dashboard_access: Optional[StrictBool] = None bank_details: Optional[StrictStr] = None __properties = ["email", "status", "bank", "upi", "phone", "name", "vendor_id", "schedule_option", "kyc_details", "dashboard_access", "bank_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/cryptogram_entity.py b/cashfree_pg/models/cryptogram_entity.py index e5407a34..c3824bbc 100644 --- a/cashfree_pg/models/cryptogram_entity.py +++ b/cashfree_pg/models/cryptogram_entity.py @@ -1,44 +1,46 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class CryptogramEntity(BaseModel): """ Crytogram Card object """ - instrument_id: Optional[StrictStr] = Field(None, description="instrument_id of saved instrument") - token_requestor_id: Optional[StrictStr] = Field(None, description="TRID issued by card networks") - card_number: Optional[StrictStr] = Field(None, description="token pan number") - card_expiry_mm: Optional[StrictStr] = Field(None, description="token pan expiry month") - card_expiry_yy: Optional[StrictStr] = Field(None, description="token pan expiry year") - cryptogram: Optional[StrictStr] = Field(None, description="cryptogram") - card_display: Optional[StrictStr] = Field(None, description="last 4 digits of original card number") + instrument_id: Optional[StrictStr] = Field(default=None, description="instrument_id of saved instrument") + token_requestor_id: Optional[StrictStr] = Field(default=None, description="TRID issued by card networks") + card_number: Optional[StrictStr] = Field(default=None, description="token pan number") + card_expiry_mm: Optional[StrictStr] = Field(default=None, description="token pan expiry month") + card_expiry_yy: Optional[StrictStr] = Field(default=None, description="token pan expiry year") + cryptogram: Optional[StrictStr] = Field(default=None, description="cryptogram") + card_display: Optional[StrictStr] = Field(default=None, description="last 4 digits of original card number") __properties = ["instrument_id", "token_requestor_id", "card_number", "card_expiry_mm", "card_expiry_yy", "cryptogram", "card_display"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/customer_details.py b/cashfree_pg/models/customer_details.py index b18f5b39..a3537455 100644 --- a/cashfree_pg/models/customer_details.py +++ b/cashfree_pg/models/customer_details.py @@ -1,45 +1,47 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr + + +from pydantic import field_validator class CustomerDetails(BaseModel): """ The customer details that are necessary. Note that you can pass dummy details if your use case does not require the customer details. """ - customer_id: constr(strict=True, max_length=50, min_length=3) = Field(..., description="A unique identifier for the customer. Use alphanumeric values only.") - customer_email: Optional[constr(strict=True, max_length=100, min_length=3)] = Field(None, description="Customer email address.") - customer_phone: constr(strict=True, max_length=10, min_length=10) = Field(..., description="Customer phone number.") - customer_name: Optional[constr(strict=True, max_length=100, min_length=3)] = Field(None, description="Name of the customer.") - customer_bank_account_number: Optional[constr(strict=True, max_length=20, min_length=3)] = Field(None, description="Customer bank account. Required if you want to do a bank account check (TPV)") - customer_bank_ifsc: Optional[StrictStr] = Field(None, description="Customer bank IFSC. Required if you want to do a bank account check (TPV)") - customer_bank_code: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV)") - customer_uid: Optional[StrictStr] = Field(None, description="Customer identifier at Cashfree. You will get this when you create/get customer") + customer_id: Annotated[str, Field(min_length=3, strict=True, max_length=50)] = Field(description="A unique identifier for the customer. Use alphanumeric values only.") + customer_email: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=100)]] = Field(default=None, description="Customer email address.") + customer_phone: Annotated[str, Field(min_length=10, strict=True, max_length=10)] = Field(description="Customer phone number.") + customer_name: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=100)]] = Field(default=None, description="Name of the customer.") + customer_bank_account_number: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=20)]] = Field(default=None, description="Customer bank account. Required if you want to do a bank account check (TPV)") + customer_bank_ifsc: Optional[StrictStr] = Field(default=None, description="Customer bank IFSC. Required if you want to do a bank account check (TPV)") + customer_bank_code: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV)") + customer_uid: Optional[StrictStr] = Field(default=None, description="Customer identifier at Cashfree. You will get this when you create/get customer") __properties = ["customer_id", "customer_email", "customer_phone", "customer_name", "customer_bank_account_number", "customer_bank_ifsc", "customer_bank_code", "customer_uid"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/customer_details_cardless_emi.py b/cashfree_pg/models/customer_details_cardless_emi.py index 0f1a7149..d6674017 100644 --- a/cashfree_pg/models/customer_details_cardless_emi.py +++ b/cashfree_pg/models/customer_details_cardless_emi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,19 +19,22 @@ -from pydantic import BaseModel, Field, constr + +from pydantic import field_validator class CustomerDetailsCardlessEMI(BaseModel): """ Details of the customer for whom eligibility is being checked. """ - customer_phone: constr(strict=True, max_length=50, min_length=3) = Field(..., description="Phone Number of the customer") + customer_phone: Annotated[str, Field(min_length=3, strict=True, max_length=50)] = Field(description="Phone Number of the customer") __properties = ["customer_phone"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/customer_details_in_disputes_entity.py b/cashfree_pg/models/customer_details_in_disputes_entity.py index 8c378282..c9bdc27d 100644 --- a/cashfree_pg/models/customer_details_in_disputes_entity.py +++ b/cashfree_pg/models/customer_details_in_disputes_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class CustomerDetailsInDisputesEntity(BaseModel): """ @@ -31,10 +31,12 @@ class CustomerDetailsInDisputesEntity(BaseModel): customer_email: Optional[StrictStr] = None __properties = ["customer_name", "customer_phone", "customer_email"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/customer_details_response.py b/cashfree_pg/models/customer_details_response.py index 11934a8e..d61624fb 100644 --- a/cashfree_pg/models/customer_details_response.py +++ b/cashfree_pg/models/customer_details_response.py @@ -1,45 +1,47 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr + + +from pydantic import field_validator class CustomerDetailsResponse(BaseModel): """ The customer details that are necessary. Note that you can pass dummy details if your use case does not require the customer details. """ - customer_id: Optional[constr(strict=True, max_length=50, min_length=3)] = Field(None, description="A unique identifier for the customer. Use alphanumeric values only.") - customer_email: Optional[constr(strict=True, max_length=100, min_length=3)] = Field(None, description="Customer email address.") - customer_phone: Optional[constr(strict=True, max_length=10, min_length=10)] = Field(None, description="Customer phone number.") - customer_name: Optional[constr(strict=True, max_length=100, min_length=3)] = Field(None, description="Name of the customer.") - customer_bank_account_number: Optional[constr(strict=True, max_length=20, min_length=3)] = Field(None, description="Customer bank account. Required if you want to do a bank account check (TPV)") - customer_bank_ifsc: Optional[StrictStr] = Field(None, description="Customer bank IFSC. Required if you want to do a bank account check (TPV)") - customer_bank_code: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV)") - customer_uid: Optional[StrictStr] = Field(None, description="Customer identifier at Cashfree. You will get this when you create/get customer") + customer_id: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=50)]] = Field(default=None, description="A unique identifier for the customer. Use alphanumeric values only.") + customer_email: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=100)]] = Field(default=None, description="Customer email address.") + customer_phone: Optional[Annotated[str, Field(min_length=10, strict=True, max_length=10)]] = Field(default=None, description="Customer phone number.") + customer_name: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=100)]] = Field(default=None, description="Name of the customer.") + customer_bank_account_number: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=20)]] = Field(default=None, description="Customer bank account. Required if you want to do a bank account check (TPV)") + customer_bank_ifsc: Optional[StrictStr] = Field(default=None, description="Customer bank IFSC. Required if you want to do a bank account check (TPV)") + customer_bank_code: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV)") + customer_uid: Optional[StrictStr] = Field(default=None, description="Customer identifier at Cashfree. You will get this when you create/get customer") __properties = ["customer_id", "customer_email", "customer_phone", "customer_name", "customer_bank_account_number", "customer_bank_ifsc", "customer_bank_code", "customer_uid"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/customer_entity.py b/cashfree_pg/models/customer_entity.py index c34294dd..85b5cb72 100644 --- a/cashfree_pg/models/customer_entity.py +++ b/cashfree_pg/models/customer_entity.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class CustomerEntity(BaseModel): """ The complete customer entity """ - customer_uid: Optional[StrictStr] = Field(None, description="unique id generated by cashfree for your customer") - customer_phone: Optional[StrictStr] = Field(None, description="Customer Phone Number") - customer_email: Optional[StrictStr] = Field(None, description="Customer Email") - customer_name: Optional[StrictStr] = Field(None, description="Customer Name") + customer_uid: Optional[StrictStr] = Field(default=None, description="unique id generated by cashfree for your customer") + customer_phone: Optional[StrictStr] = Field(default=None, description="Customer Phone Number") + customer_email: Optional[StrictStr] = Field(default=None, description="Customer Email") + customer_name: Optional[StrictStr] = Field(default=None, description="Customer Name") __properties = ["customer_uid", "customer_phone", "customer_email", "customer_name"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/demap_soundbox_vpa_request.py b/cashfree_pg/models/demap_soundbox_vpa_request.py index 07ba246c..0cafe388 100644 --- a/cashfree_pg/models/demap_soundbox_vpa_request.py +++ b/cashfree_pg/models/demap_soundbox_vpa_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field, StrictStr + +from pydantic import field_validator class DemapSoundboxVpaRequest(BaseModel): """ Request body to demap soundbox vpa """ - cf_terminal_id: StrictStr = Field(..., description="cashfree terminal id.") - device_serial_no: StrictStr = Field(..., description="Device Serial No of soundbox that need to demap.") + cf_terminal_id: StrictStr = Field(description="cashfree terminal id.") + device_serial_no: StrictStr = Field(description="Device Serial No of soundbox that need to demap.") __properties = ["cf_terminal_id", "device_serial_no"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/discount_details.py b/cashfree_pg/models/discount_details.py index 73229f11..a967231a 100644 --- a/cashfree_pg/models/discount_details.py +++ b/cashfree_pg/models/discount_details.py @@ -1,47 +1,49 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, constr, validator + + +from pydantic import field_validator class DiscountDetails(BaseModel): """ detils of the discount object of offer """ - discount_type: constr(strict=True, max_length=50, min_length=3) = Field(..., description="Type of discount") - discount_value: Union[StrictFloat, StrictInt] = Field(..., description="Value of Discount.") - max_discount_amount: Union[StrictFloat, StrictInt] = Field(..., description="Maximum Value of Discount allowed.") + discount_type: Annotated[str, Field(min_length=3, strict=True, max_length=50)] = Field(description="Type of discount") + discount_value: Union[StrictFloat, StrictInt] = Field(description="Value of Discount.") + max_discount_amount: Union[StrictFloat, StrictInt] = Field(description="Maximum Value of Discount allowed.") __properties = ["discount_type", "discount_value", "max_discount_amount"] - @validator('discount_type') + @field_validator('discount_type') def discount_type_validate_enum(cls, value): """Validates the enum""" if value not in ('flat', 'percentage'): raise ValueError("must be one of enum values ('flat', 'percentage')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/disputes_entity.py b/cashfree_pg/models/disputes_entity.py index 75e159b4..3b89c665 100644 --- a/cashfree_pg/models/disputes_entity.py +++ b/cashfree_pg/models/disputes_entity.py @@ -1,30 +1,30 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, validator + + from cashfree_pg.models.customer_details_in_disputes_entity import CustomerDetailsInDisputesEntity from cashfree_pg.models.evidence import Evidence from cashfree_pg.models.evidences_to_contest_dispute import EvidencesToContestDispute from cashfree_pg.models.order_details_in_disputes_entity import OrderDetailsInDisputesEntity +from pydantic import field_validator class DisputesEntity(BaseModel): """ @@ -34,20 +34,20 @@ class DisputesEntity(BaseModel): dispute_type: Optional[StrictStr] = None reason_code: Optional[StrictStr] = None reason_description: Optional[StrictStr] = None - dispute_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Dispute amount may differ from transaction amount for partial cases.") - created_at: Optional[StrictStr] = Field(None, description="This is the time when the dispute was created.") - respond_by: Optional[StrictStr] = Field(None, description="This is the time by which evidence should be submitted to contest the dispute.") - updated_at: Optional[StrictStr] = Field(None, description="This is the time when the dispute case was updated.") - resolved_at: Optional[StrictStr] = Field(None, description="This is the time when the dispute case was closed.") + dispute_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Dispute amount may differ from transaction amount for partial cases.") + created_at: Optional[StrictStr] = Field(default=None, description="This is the time when the dispute was created.") + respond_by: Optional[StrictStr] = Field(default=None, description="This is the time by which evidence should be submitted to contest the dispute.") + updated_at: Optional[StrictStr] = Field(default=None, description="This is the time when the dispute case was updated.") + resolved_at: Optional[StrictStr] = Field(default=None, description="This is the time when the dispute case was closed.") dispute_status: Optional[StrictStr] = None cf_dispute_remarks: Optional[StrictStr] = None - preferred_evidence: Optional[conlist(EvidencesToContestDispute)] = None - dispute_evidence: Optional[conlist(Evidence)] = None + preferred_evidence: Optional[List[EvidencesToContestDispute]] = None + dispute_evidence: Optional[List[Evidence]] = None order_details: Optional[OrderDetailsInDisputesEntity] = None customer_details: Optional[CustomerDetailsInDisputesEntity] = None __properties = ["dispute_id", "dispute_type", "reason_code", "reason_description", "dispute_amount", "created_at", "respond_by", "updated_at", "resolved_at", "dispute_status", "cf_dispute_remarks", "preferred_evidence", "dispute_evidence", "order_details", "customer_details"] - @validator('dispute_type') + @field_validator('dispute_type') def dispute_type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -57,7 +57,7 @@ def dispute_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('DISPUTE', 'CHARGEBACK', 'RETRIEVAL', 'PRE_ARBITRATION', 'ARBITRATION')") return value - @validator('dispute_status') + @field_validator('dispute_status') def dispute_status_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -67,10 +67,12 @@ def dispute_status_validate_enum(cls, value): raise ValueError("must be one of enum values ('DISPUTE_CREATED', 'DISPUTE_DOCS_RECEIVED', 'DISPUTE_UNDER_REVIEW', 'DISPUTE_MERCHANT_WON', 'DISPUTE_MERCHANT_LOST', 'DISPUTE_MERCHANT_ACCEPTED', 'DISPUTE_INSUFFICIENT_EVIDENCE', 'CHARGEBACK_CREATED', 'CHARGEBACK_DOCS_RECEIVED', 'CHARGEBACK_UNDER_REVIEW', 'CHARGEBACK_MERCHANT_WON', 'CHARGEBACK_MERCHANT_LOST', 'CHARGEBACK_MERCHANT_ACCEPTED', 'CHARGEBACK_INSUFFICIENT_EVIDENCE', 'RETRIEVAL_CREATED', 'RETRIEVAL_DOCS_RECEIVED', 'RETRIEVAL_UNDER_REVIEW', 'RETRIEVAL_MERCHANT_WON', 'RETRIEVAL_MERCHANT_LOST', 'RETRIEVAL_MERCHANT_ACCEPTED', 'RETRIEVAL_INSUFFICIENT_EVIDENCE', 'PRE_ARBITRATION_CREATED', 'PRE_ARBITRATION_DOCS_RECEIVED', 'PRE_ARBITRATION_UNDER_REVIEW', 'PRE_ARBITRATION_MERCHANT_WON', 'PRE_ARBITRATION_MERCHANT_LOST', 'PRE_ARBITRATION_MERCHANT_ACCEPTED', 'PRE_ARBITRATION_INSUFFICIENT_EVIDENCE', 'ARBITRATION_CREATED', 'ARBITRATION_DOCS_RECEIVED', 'ARBITRATION_UNDER_REVIEW', 'ARBITRATION_MERCHANT_WON', 'ARBITRATION_MERCHANT_LOST', 'ARBITRATION_MERCHANT_ACCEPTED', 'ARBITRATION_INSUFFICIENT_EVIDENCE')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/disputes_entity_merchant_accepted.py b/cashfree_pg/models/disputes_entity_merchant_accepted.py index efbb3562..4f8ebb58 100644 --- a/cashfree_pg/models/disputes_entity_merchant_accepted.py +++ b/cashfree_pg/models/disputes_entity_merchant_accepted.py @@ -1,30 +1,30 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, validator + + from cashfree_pg.models.customer_details_in_disputes_entity import CustomerDetailsInDisputesEntity from cashfree_pg.models.evidence import Evidence from cashfree_pg.models.evidences_to_contest_dispute import EvidencesToContestDispute from cashfree_pg.models.order_details_in_disputes_entity import OrderDetailsInDisputesEntity +from pydantic import field_validator class DisputesEntityMerchantAccepted(BaseModel): """ @@ -34,20 +34,20 @@ class DisputesEntityMerchantAccepted(BaseModel): dispute_type: Optional[StrictStr] = None reason_code: Optional[StrictStr] = None reason_description: Optional[StrictStr] = None - dispute_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Dispute amount may differ from transaction amount for partial cases.") - created_at: Optional[StrictStr] = Field(None, description="This is the time when the dispute was created.") - respond_by: Optional[StrictStr] = Field(None, description="This is the time by which evidence should be submitted to contest the dispute.") - updated_at: Optional[StrictStr] = Field(None, description="This is the time when the dispute case was updated.") - resolved_at: Optional[StrictStr] = Field(None, description="This is the time when the dispute case was closed.") + dispute_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Dispute amount may differ from transaction amount for partial cases.") + created_at: Optional[StrictStr] = Field(default=None, description="This is the time when the dispute was created.") + respond_by: Optional[StrictStr] = Field(default=None, description="This is the time by which evidence should be submitted to contest the dispute.") + updated_at: Optional[StrictStr] = Field(default=None, description="This is the time when the dispute case was updated.") + resolved_at: Optional[StrictStr] = Field(default=None, description="This is the time when the dispute case was closed.") dispute_status: Optional[StrictStr] = None cf_dispute_remarks: Optional[StrictStr] = None - preferred_evidence: Optional[conlist(EvidencesToContestDispute)] = None - dispute_evidence: Optional[conlist(Evidence)] = None + preferred_evidence: Optional[List[EvidencesToContestDispute]] = None + dispute_evidence: Optional[List[Evidence]] = None order_details: Optional[OrderDetailsInDisputesEntity] = None customer_details: Optional[CustomerDetailsInDisputesEntity] = None __properties = ["dispute_id", "dispute_type", "reason_code", "reason_description", "dispute_amount", "created_at", "respond_by", "updated_at", "resolved_at", "dispute_status", "cf_dispute_remarks", "preferred_evidence", "dispute_evidence", "order_details", "customer_details"] - @validator('dispute_type') + @field_validator('dispute_type') def dispute_type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -57,7 +57,7 @@ def dispute_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('DISPUTE', 'CHARGEBACK', 'RETRIEVAL', 'PRE_ARBITRATION', 'ARBITRATION')") return value - @validator('dispute_status') + @field_validator('dispute_status') def dispute_status_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -67,10 +67,12 @@ def dispute_status_validate_enum(cls, value): raise ValueError("must be one of enum values ('DISPUTE_CREATED', 'DISPUTE_DOCS_RECEIVED', 'DISPUTE_UNDER_REVIEW', 'DISPUTE_MERCHANT_WON', 'DISPUTE_MERCHANT_LOST', 'DISPUTE_MERCHANT_ACCEPTED', 'DISPUTE_INSUFFICIENT_EVIDENCE', 'CHARGEBACK_CREATED', 'CHARGEBACK_DOCS_RECEIVED', 'CHARGEBACK_UNDER_REVIEW', 'CHARGEBACK_MERCHANT_WON', 'CHARGEBACK_MERCHANT_LOST', 'CHARGEBACK_MERCHANT_ACCEPTED', 'CHARGEBACK_INSUFFICIENT_EVIDENCE', 'RETRIEVAL_CREATED', 'RETRIEVAL_DOCS_RECEIVED', 'RETRIEVAL_UNDER_REVIEW', 'RETRIEVAL_MERCHANT_WON', 'RETRIEVAL_MERCHANT_LOST', 'RETRIEVAL_MERCHANT_ACCEPTED', 'RETRIEVAL_INSUFFICIENT_EVIDENCE', 'PRE_ARBITRATION_CREATED', 'PRE_ARBITRATION_DOCS_RECEIVED', 'PRE_ARBITRATION_UNDER_REVIEW', 'PRE_ARBITRATION_MERCHANT_WON', 'PRE_ARBITRATION_MERCHANT_LOST', 'PRE_ARBITRATION_MERCHANT_ACCEPTED', 'PRE_ARBITRATION_INSUFFICIENT_EVIDENCE', 'ARBITRATION_CREATED', 'ARBITRATION_DOCS_RECEIVED', 'ARBITRATION_UNDER_REVIEW', 'ARBITRATION_MERCHANT_WON', 'ARBITRATION_MERCHANT_LOST', 'ARBITRATION_MERCHANT_ACCEPTED', 'ARBITRATION_INSUFFICIENT_EVIDENCE')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_cardless_emi_entity.py b/cashfree_pg/models/eligibility_cardless_emi_entity.py index 734e627a..44b3048f 100644 --- a/cashfree_pg/models/eligibility_cardless_emi_entity.py +++ b/cashfree_pg/models/eligibility_cardless_emi_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictBool, StrictStr + + from cashfree_pg.models.cardless_emi_entity import CardlessEMIEntity +from pydantic import field_validator class EligibilityCardlessEMIEntity(BaseModel): """ @@ -33,10 +33,12 @@ class EligibilityCardlessEMIEntity(BaseModel): entity_details: Optional[CardlessEMIEntity] = None __properties = ["eligibility", "entity_type", "entity_value", "entity_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_fetch_cardless_emi_request.py b/cashfree_pg/models/eligibility_fetch_cardless_emi_request.py index 0fdf1eea..34609a80 100644 --- a/cashfree_pg/models/eligibility_fetch_cardless_emi_request.py +++ b/cashfree_pg/models/eligibility_fetch_cardless_emi_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.cardless_emi_queries import CardlessEMIQueries +from pydantic import field_validator class EligibilityFetchCardlessEMIRequest(BaseModel): """ eligibilty request for cardless """ - queries: CardlessEMIQueries = Field(...) + queries: CardlessEMIQueries __properties = ["queries"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_fetch_offers_request.py b/cashfree_pg/models/eligibility_fetch_offers_request.py index 0552a8f9..6947cdc9 100644 --- a/cashfree_pg/models/eligibility_fetch_offers_request.py +++ b/cashfree_pg/models/eligibility_fetch_offers_request.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field + + from cashfree_pg.models.offer_filters import OfferFilters from cashfree_pg.models.offer_queries import OfferQueries +from pydantic import field_validator class EligibilityFetchOffersRequest(BaseModel): """ Eligiblty API request """ - queries: OfferQueries = Field(...) + queries: OfferQueries filters: Optional[OfferFilters] = None __properties = ["queries", "filters"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_fetch_paylater_request.py b/cashfree_pg/models/eligibility_fetch_paylater_request.py index 7536cc37..99a3d0e5 100644 --- a/cashfree_pg/models/eligibility_fetch_paylater_request.py +++ b/cashfree_pg/models/eligibility_fetch_paylater_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.cardless_emi_queries import CardlessEMIQueries +from pydantic import field_validator class EligibilityFetchPaylaterRequest(BaseModel): """ Request to get eligible paylater payment methods """ - queries: CardlessEMIQueries = Field(...) + queries: CardlessEMIQueries __properties = ["queries"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_fetch_payment_methods_request.py b/cashfree_pg/models/eligibility_fetch_payment_methods_request.py index bba5d9a9..06e99edf 100644 --- a/cashfree_pg/models/eligibility_fetch_payment_methods_request.py +++ b/cashfree_pg/models/eligibility_fetch_payment_methods_request.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field + + from cashfree_pg.models.payment_methods_filters import PaymentMethodsFilters from cashfree_pg.models.payment_methods_queries import PaymentMethodsQueries +from pydantic import field_validator class EligibilityFetchPaymentMethodsRequest(BaseModel): """ eligibilty request to find eligible payment method """ - queries: PaymentMethodsQueries = Field(...) + queries: PaymentMethodsQueries filters: Optional[PaymentMethodsFilters] = None __properties = ["queries", "filters"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_method_item.py b/cashfree_pg/models/eligibility_method_item.py index 87f49364..9d17fc31 100644 --- a/cashfree_pg/models/eligibility_method_item.py +++ b/cashfree_pg/models/eligibility_method_item.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr + + from cashfree_pg.models.eligibility_method_item_entity_details import EligibilityMethodItemEntityDetails +from pydantic import field_validator class EligibilityMethodItem(BaseModel): """ Eligibile payment method object """ - eligibility: Optional[StrictBool] = Field(None, description="Indicates whether the payment method is eligible.") - entity_type: Optional[StrictStr] = Field(None, description="Type of entity (e.g., \"payment_methods\").") - entity_value: Optional[StrictStr] = Field(None, description="Payment method (e.g., enach, pnach, upi, card).") + eligibility: Optional[StrictBool] = Field(default=None, description="Indicates whether the payment method is eligible.") + entity_type: Optional[StrictStr] = Field(default=None, description="Type of entity (e.g., \"payment_methods\").") + entity_value: Optional[StrictStr] = Field(default=None, description="Payment method (e.g., enach, pnach, upi, card).") entity_details: Optional[EligibilityMethodItemEntityDetails] = None __properties = ["eligibility", "entity_type", "entity_value", "entity_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_method_item_entity_details.py b/cashfree_pg/models/eligibility_method_item_entity_details.py index 6f6d1f9b..7d9174cc 100644 --- a/cashfree_pg/models/eligibility_method_item_entity_details.py +++ b/cashfree_pg/models/eligibility_method_item_entity_details.py @@ -1,44 +1,46 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist + + from cashfree_pg.models.eligibility_method_item_entity_details_available_handles_inner import EligibilityMethodItemEntityDetailsAvailableHandlesInner from cashfree_pg.models.subscription_bank_details import SubscriptionBankDetails +from pydantic import field_validator class EligibilityMethodItemEntityDetails(BaseModel): """ EligibilityMethodItemEntityDetails """ - account_types: Optional[conlist(StrictStr)] = Field(None, description="List of account types associated with the payment method. (e.g. SAVINGS or CURRENT)") - frequent_bank_details: Optional[conlist(SubscriptionBankDetails)] = Field(None, description="List of the most frequently used banks.") - all_bank_details: Optional[conlist(SubscriptionBankDetails)] = Field(None, description="Details about all banks associated with the payment method.") - available_handles: Optional[conlist(EligibilityMethodItemEntityDetailsAvailableHandlesInner)] = Field(None, description="List of supported VPA handles.") - allowed_card_types: Optional[conlist(StrictStr)] = Field(None, description="List of allowed card types. (e.g. DEBIT_CARD, CREDIT_CARD)") + account_types: Optional[List[StrictStr]] = Field(default=None, description="List of account types associated with the payment method. (e.g. SAVINGS or CURRENT)") + frequent_bank_details: Optional[List[SubscriptionBankDetails]] = Field(default=None, description="List of the most frequently used banks.") + all_bank_details: Optional[List[SubscriptionBankDetails]] = Field(default=None, description="Details about all banks associated with the payment method.") + available_handles: Optional[List[EligibilityMethodItemEntityDetailsAvailableHandlesInner]] = Field(default=None, description="List of supported VPA handles.") + allowed_card_types: Optional[List[StrictStr]] = Field(default=None, description="List of allowed card types. (e.g. DEBIT_CARD, CREDIT_CARD)") __properties = ["account_types", "frequent_bank_details", "all_bank_details", "available_handles", "allowed_card_types"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_method_item_entity_details_available_handles_inner.py b/cashfree_pg/models/eligibility_method_item_entity_details_available_handles_inner.py index 65c310c4..dd861e68 100644 --- a/cashfree_pg/models/eligibility_method_item_entity_details_available_handles_inner.py +++ b/cashfree_pg/models/eligibility_method_item_entity_details_available_handles_inner.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class EligibilityMethodItemEntityDetailsAvailableHandlesInner(BaseModel): """ EligibilityMethodItemEntityDetailsAvailableHandlesInner """ - handle: Optional[StrictStr] = Field(None, description="VPA handle") - application: Optional[StrictStr] = Field(None, description="Application or service related to the VPA handle.") + handle: Optional[StrictStr] = Field(default=None, description="VPA handle") + application: Optional[StrictStr] = Field(default=None, description="Application or service related to the VPA handle.") __properties = ["handle", "application"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_offer_entity.py b/cashfree_pg/models/eligibility_offer_entity.py index 9882a3a0..57a396fd 100644 --- a/cashfree_pg/models/eligibility_offer_entity.py +++ b/cashfree_pg/models/eligibility_offer_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictBool, StrictStr + + from cashfree_pg.models.offer_entity import OfferEntity +from pydantic import field_validator class EligibilityOfferEntity(BaseModel): """ @@ -33,10 +33,12 @@ class EligibilityOfferEntity(BaseModel): entity_details: Optional[OfferEntity] = None __properties = ["eligibility", "entity_type", "entity_value", "entity_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_paylater_entity.py b/cashfree_pg/models/eligibility_paylater_entity.py index dff20cee..4aa47ba4 100644 --- a/cashfree_pg/models/eligibility_paylater_entity.py +++ b/cashfree_pg/models/eligibility_paylater_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictBool, StrictStr + + from cashfree_pg.models.paylater_entity import PaylaterEntity +from pydantic import field_validator class EligibilityPaylaterEntity(BaseModel): """ @@ -33,10 +33,12 @@ class EligibilityPaylaterEntity(BaseModel): entity_details: Optional[PaylaterEntity] = None __properties = ["eligibility", "entity_type", "entity_value", "entity_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_payment_methods_entity.py b/cashfree_pg/models/eligibility_payment_methods_entity.py index 52fdec26..23f0a28b 100644 --- a/cashfree_pg/models/eligibility_payment_methods_entity.py +++ b/cashfree_pg/models/eligibility_payment_methods_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictBool, StrictStr + + from cashfree_pg.models.eligibility_payment_methods_entity_entity_details import EligibilityPaymentMethodsEntityEntityDetails +from pydantic import field_validator class EligibilityPaymentMethodsEntity(BaseModel): """ @@ -33,10 +33,12 @@ class EligibilityPaymentMethodsEntity(BaseModel): entity_details: Optional[EligibilityPaymentMethodsEntityEntityDetails] = None __properties = ["eligibility", "entity_type", "entity_value", "entity_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/eligibility_payment_methods_entity_entity_details.py b/cashfree_pg/models/eligibility_payment_methods_entity_entity_details.py index 77b0406e..0934b61a 100644 --- a/cashfree_pg/models/eligibility_payment_methods_entity_entity_details.py +++ b/cashfree_pg/models/eligibility_payment_methods_entity_entity_details.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, conlist + + from cashfree_pg.models.payment_mode_details import PaymentModeDetails +from pydantic import field_validator class EligibilityPaymentMethodsEntityEntityDetails(BaseModel): """ EligibilityPaymentMethodsEntityEntityDetails """ - payment_method_details: Optional[conlist(PaymentModeDetails)] = None + payment_method_details: Optional[List[PaymentModeDetails]] = None __properties = ["payment_method_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/emi_offer.py b/cashfree_pg/models/emi_offer.py index 13dd0653..02b1b74b 100644 --- a/cashfree_pg/models/emi_offer.py +++ b/cashfree_pg/models/emi_offer.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List -from pydantic import BaseModel, Field, StrictInt, conlist, constr + + +from pydantic import field_validator class EMIOffer(BaseModel): """ EMIOffer """ - type: constr(strict=True, max_length=100, min_length=3) = Field(..., description="Type of emi offer. Possible values are `credit_card_emi`, `debit_card_emi`, `cardless_emi`") - issuer: constr(strict=True, max_length=100, min_length=3) = Field(..., description="Bank Name") - tenures: conlist(StrictInt) = Field(...) + type: Annotated[str, Field(min_length=3, strict=True, max_length=100)] = Field(description="Type of emi offer. Possible values are `credit_card_emi`, `debit_card_emi`, `cardless_emi`") + issuer: Annotated[str, Field(min_length=3, strict=True, max_length=100)] = Field(description="Bank Name") + tenures: List[StrictInt] __properties = ["type", "issuer", "tenures"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/emi_plans_array.py b/cashfree_pg/models/emi_plans_array.py index 6f45bda7..583a5587 100644 --- a/cashfree_pg/models/emi_plans_array.py +++ b/cashfree_pg/models/emi_plans_array.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, constr + + +from pydantic import field_validator class EMIPlansArray(BaseModel): """ @@ -28,16 +28,18 @@ class EMIPlansArray(BaseModel): """ tenure: Optional[StrictInt] = None interest_rate: Optional[Union[StrictFloat, StrictInt]] = None - currency: Optional[constr(strict=True, max_length=50, min_length=3)] = None + currency: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=50)]] = None emi: Optional[StrictInt] = None total_interest: Optional[StrictInt] = None total_amount: Optional[StrictInt] = None __properties = ["tenure", "interest_rate", "currency", "emi", "total_interest", "total_amount"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/entity_simulation_request.py b/cashfree_pg/models/entity_simulation_request.py index e2ab8592..1a194366 100644 --- a/cashfree_pg/models/entity_simulation_request.py +++ b/cashfree_pg/models/entity_simulation_request.py @@ -1,46 +1,48 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + +from pydantic import field_validator class EntitySimulationRequest(BaseModel): """ Entity Simulation it contains payment_status and payment_error_code """ - payment_status: StrictStr = Field(..., description="Payment Status") - payment_error_code: Optional[StrictStr] = Field(None, description="Payment Error Code") + payment_status: StrictStr = Field(description="Payment Status") + payment_error_code: Optional[StrictStr] = Field(default=None, description="Payment Error Code") __properties = ["payment_status", "payment_error_code"] - @validator('payment_status') + @field_validator('payment_status') def payment_status_validate_enum(cls, value): """Validates the enum""" if value not in ('SUCCESS', 'FAILED', 'PENDING', 'USER_DROPPED'): raise ValueError("must be one of enum values ('SUCCESS', 'FAILED', 'PENDING', 'USER_DROPPED')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/entity_simulation_response.py b/cashfree_pg/models/entity_simulation_response.py index 31716063..ab504bf3 100644 --- a/cashfree_pg/models/entity_simulation_response.py +++ b/cashfree_pg/models/entity_simulation_response.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class EntitySimulationResponse(BaseModel): """ Entity Simulation it contains payment_status and payment_error_code """ - payment_status: StrictStr = Field(..., description="Payment Status") - payment_error_code: Optional[StrictStr] = Field(None, description="Payment Error Code") + payment_status: StrictStr = Field(description="Payment Status") + payment_error_code: Optional[StrictStr] = Field(default=None, description="Payment Error Code") __properties = ["payment_status", "payment_error_code"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/error_details_in_payments_entity.py b/cashfree_pg/models/error_details_in_payments_entity.py index 162612a9..81cf7740 100644 --- a/cashfree_pg/models/error_details_in_payments_entity.py +++ b/cashfree_pg/models/error_details_in_payments_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class ErrorDetailsInPaymentsEntity(BaseModel): """ @@ -35,10 +35,12 @@ class ErrorDetailsInPaymentsEntity(BaseModel): error_subcode_raw: Optional[StrictStr] = None __properties = ["error_code", "error_description", "error_reason", "error_source", "error_code_raw", "error_description_raw", "error_subcode_raw"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/es_order_recon_request.py b/cashfree_pg/models/es_order_recon_request.py index cefd337e..4b5d0207 100644 --- a/cashfree_pg/models/es_order_recon_request.py +++ b/cashfree_pg/models/es_order_recon_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,22 +19,25 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.es_order_recon_request_filters import ESOrderReconRequestFilters from cashfree_pg.models.es_order_recon_request_pagination import ESOrderReconRequestPagination +from pydantic import field_validator class ESOrderReconRequest(BaseModel): """ ES Order Recon Request """ - filters: ESOrderReconRequestFilters = Field(...) - pagination: ESOrderReconRequestPagination = Field(...) + filters: ESOrderReconRequestFilters + pagination: ESOrderReconRequestPagination __properties = ["filters", "pagination"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/es_order_recon_request_filters.py b/cashfree_pg/models/es_order_recon_request_filters.py index 681ee1fe..c9ff324b 100644 --- a/cashfree_pg/models/es_order_recon_request_filters.py +++ b/cashfree_pg/models/es_order_recon_request_filters.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist + + +from pydantic import field_validator class ESOrderReconRequestFilters(BaseModel): """ Provide the filter object details. """ - start_date: Optional[StrictStr] = Field(None, description="Specify the start data from which you want to get the recon data.") - end_date: Optional[StrictStr] = Field(None, description="Specify the end data till which you want to get the recon data.") - order_ids: Optional[conlist(StrictStr)] = Field(None, description="Please provide list of order ids for which you want to get the recon data.") + start_date: Optional[StrictStr] = Field(default=None, description="Specify the start data from which you want to get the recon data.") + end_date: Optional[StrictStr] = Field(default=None, description="Specify the end data till which you want to get the recon data.") + order_ids: Optional[List[StrictStr]] = Field(default=None, description="Please provide list of order ids for which you want to get the recon data.") __properties = ["start_date", "end_date", "order_ids"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/es_order_recon_request_pagination.py b/cashfree_pg/models/es_order_recon_request_pagination.py index fb82fb4a..8318f0ad 100644 --- a/cashfree_pg/models/es_order_recon_request_pagination.py +++ b/cashfree_pg/models/es_order_recon_request_pagination.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr + + +from pydantic import field_validator class ESOrderReconRequestPagination(BaseModel): """ Set limit based on your requirement. Pagination limit will fetch a set of orders, next set of orders can be generated using the cursor shared in previous response of the same API. """ cursor: Optional[StrictStr] = None - limit: Optional[StrictInt] = Field(None, description="Set the minimum/maximum limit for number of filtered data. Min value - 10, Max value - 100.") + limit: Optional[StrictInt] = Field(default=None, description="Set the minimum/maximum limit for number of filtered data. Min value - 10, Max value - 100.") __properties = ["cursor", "limit"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/es_order_recon_response.py b/cashfree_pg/models/es_order_recon_response.py index dc834d4d..8de9ebfc 100644 --- a/cashfree_pg/models/es_order_recon_response.py +++ b/cashfree_pg/models/es_order_recon_response.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, StrictInt, StrictStr, conlist + + from cashfree_pg.models.es_order_recon_response_data_inner import ESOrderReconResponseDataInner +from pydantic import field_validator class ESOrderReconResponse(BaseModel): """ ES Order Recon Response """ cursor: Optional[StrictStr] = None - data: Optional[conlist(ESOrderReconResponseDataInner)] = None + data: Optional[List[ESOrderReconResponseDataInner]] = None limit: Optional[StrictInt] = None __properties = ["cursor", "data", "limit"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/es_order_recon_response_data_inner.py b/cashfree_pg/models/es_order_recon_response_data_inner.py index 2df27877..9aad7f66 100644 --- a/cashfree_pg/models/es_order_recon_response_data_inner.py +++ b/cashfree_pg/models/es_order_recon_response_data_inner.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr, conlist + + from cashfree_pg.models.es_order_recon_response_data_inner_order_splits_inner import ESOrderReconResponseDataInnerOrderSplitsInner +from pydantic import field_validator class ESOrderReconResponseDataInner(BaseModel): """ @@ -51,14 +51,16 @@ class ESOrderReconResponseDataInner(BaseModel): entity_type: Optional[StrictStr] = None settlement_initiated_on: Optional[StrictStr] = None settlement_time: Optional[StrictStr] = None - order_splits: Optional[conlist(ESOrderReconResponseDataInnerOrderSplitsInner)] = None + order_splits: Optional[List[ESOrderReconResponseDataInnerOrderSplitsInner]] = None eligible_split_balance: Optional[StrictStr] = None __properties = ["amount", "settlement_eligibility_time", "merchant_order_id", "tx_time", "settled", "entity_id", "merchant_settlement_utr", "currency", "sale_type", "customer_name", "customer_email", "customer_phone", "merchant_vendor_commission", "split_service_charge", "split_service_tax", "pg_service_tax", "pg_service_charge", "pg_charge_postpaid", "merchant_settlement_id", "added_on", "tags", "entity_type", "settlement_initiated_on", "settlement_time", "order_splits", "eligible_split_balance"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/es_order_recon_response_data_inner_order_splits_inner.py b/cashfree_pg/models/es_order_recon_response_data_inner_order_splits_inner.py index beca5c6b..6f2c067c 100644 --- a/cashfree_pg/models/es_order_recon_response_data_inner_order_splits_inner.py +++ b/cashfree_pg/models/es_order_recon_response_data_inner_order_splits_inner.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, StrictStr, conlist + + from cashfree_pg.models.es_order_recon_response_data_inner_order_splits_inner_split_inner import ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner +from pydantic import field_validator class ESOrderReconResponseDataInnerOrderSplitsInner(BaseModel): """ ESOrderReconResponseDataInnerOrderSplitsInner """ - split: Optional[conlist(ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner)] = None + split: Optional[List[ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner]] = None created_at: Optional[StrictStr] = None __properties = ["split", "created_at"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/es_order_recon_response_data_inner_order_splits_inner_split_inner.py b/cashfree_pg/models/es_order_recon_response_data_inner_order_splits_inner_split_inner.py index f092c77c..0e3f48f3 100644 --- a/cashfree_pg/models/es_order_recon_response_data_inner_order_splits_inner_split_inner.py +++ b/cashfree_pg/models/es_order_recon_response_data_inner_order_splits_inner_split_inner.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner(BaseModel): """ @@ -31,10 +31,12 @@ class ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner(BaseModel): tags: Optional[Dict[str, Any]] = None __properties = ["merchant_vendor_id", "percentage", "tags"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/evidence.py b/cashfree_pg/models/evidence.py index 29f76ab6..0afa8a6c 100644 --- a/cashfree_pg/models/evidence.py +++ b/cashfree_pg/models/evidence.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictInt, StrictStr + + +from pydantic import field_validator class Evidence(BaseModel): """ @@ -31,10 +31,12 @@ class Evidence(BaseModel): document_type: Optional[StrictStr] = None __properties = ["document_id", "document_name", "document_type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/evidence_submitted_to_contest_dispute.py b/cashfree_pg/models/evidence_submitted_to_contest_dispute.py index e5edf65c..0eeac162 100644 --- a/cashfree_pg/models/evidence_submitted_to_contest_dispute.py +++ b/cashfree_pg/models/evidence_submitted_to_contest_dispute.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr + + +from pydantic import field_validator class EvidenceSubmittedToContestDispute(BaseModel): """ EvidenceSubmittedToContestDispute """ - document_id: Optional[StrictInt] = Field(None, alias="documentId") - document_name: Optional[StrictStr] = Field(None, alias="documentName") - document_type: Optional[StrictStr] = Field(None, alias="documentType") - download_url: Optional[StrictStr] = Field(None, alias="downloadUrl") + document_id: Optional[StrictInt] = Field(default=None, alias="documentId") + document_name: Optional[StrictStr] = Field(default=None, alias="documentName") + document_type: Optional[StrictStr] = Field(default=None, alias="documentType") + download_url: Optional[StrictStr] = Field(default=None, alias="downloadUrl") __properties = ["documentId", "documentName", "documentType", "downloadUrl"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/evidences_to_contest_dispute.py b/cashfree_pg/models/evidences_to_contest_dispute.py index a7094b92..34b22ecc 100644 --- a/cashfree_pg/models/evidences_to_contest_dispute.py +++ b/cashfree_pg/models/evidences_to_contest_dispute.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class EvidencesToContestDispute(BaseModel): """ @@ -30,10 +30,12 @@ class EvidencesToContestDispute(BaseModel): document_description: Optional[StrictStr] = None __properties = ["document_type", "document_description"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/extended_cart_details.py b/cashfree_pg/models/extended_cart_details.py index 75dbe7a1..eb1f4ae6 100644 --- a/cashfree_pg/models/extended_cart_details.py +++ b/cashfree_pg/models/extended_cart_details.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist + + from cashfree_pg.models.cart_item import CartItem +from pydantic import field_validator class ExtendedCartDetails(BaseModel): """ The cart details that are necessary like shipping address, billing address and more. """ - name: Optional[StrictStr] = Field(None, description="Name of the cart.") - items: Optional[conlist(CartItem)] = None + name: Optional[StrictStr] = Field(default=None, description="Name of the cart.") + items: Optional[List[CartItem]] = None __properties = ["name", "items"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/extended_customer_details.py b/cashfree_pg/models/extended_customer_details.py index 44ab6481..1a1dabc7 100644 --- a/cashfree_pg/models/extended_customer_details.py +++ b/cashfree_pg/models/extended_customer_details.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr + + +from pydantic import field_validator class ExtendedCustomerDetails(BaseModel): """ Recent Customer details associated with the order. """ - customer_id: Optional[constr(strict=True, max_length=50, min_length=3)] = Field(None, description="A unique identifier for the customer. Use alphanumeric values only.") - customer_email: Optional[constr(strict=True, max_length=100, min_length=3)] = Field(None, description="Customer email address.") - customer_phone: Optional[constr(strict=True, max_length=10, min_length=10)] = Field(None, description="Customer phone number.") - customer_name: Optional[constr(strict=True, max_length=100, min_length=3)] = Field(None, description="Name of the customer.") - customer_uid: Optional[StrictStr] = Field(None, description="Customer identifier at Cashfree. You will get this when you create/get customer ") + customer_id: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=50)]] = Field(default=None, description="A unique identifier for the customer. Use alphanumeric values only.") + customer_email: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=100)]] = Field(default=None, description="Customer email address.") + customer_phone: Optional[Annotated[str, Field(min_length=10, strict=True, max_length=10)]] = Field(default=None, description="Customer phone number.") + customer_name: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=100)]] = Field(default=None, description="Name of the customer.") + customer_uid: Optional[StrictStr] = Field(default=None, description="Customer identifier at Cashfree. You will get this when you create/get customer ") __properties = ["customer_id", "customer_email", "customer_phone", "customer_name", "customer_uid"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/fetch_recon_request.py b/cashfree_pg/models/fetch_recon_request.py index 612d3d95..5b1160d9 100644 --- a/cashfree_pg/models/fetch_recon_request.py +++ b/cashfree_pg/models/fetch_recon_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,22 +19,25 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.fetch_recon_request_filters import FetchReconRequestFilters from cashfree_pg.models.fetch_recon_request_pagination import FetchReconRequestPagination +from pydantic import field_validator class FetchReconRequest(BaseModel): """ Recon object """ - pagination: FetchReconRequestPagination = Field(...) - filters: FetchReconRequestFilters = Field(...) + pagination: FetchReconRequestPagination + filters: FetchReconRequestFilters __properties = ["pagination", "filters"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/fetch_recon_request_filters.py b/cashfree_pg/models/fetch_recon_request_filters.py index 2d208038..5677aabc 100644 --- a/cashfree_pg/models/fetch_recon_request_filters.py +++ b/cashfree_pg/models/fetch_recon_request_filters.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field, StrictStr + +from pydantic import field_validator class FetchReconRequestFilters(BaseModel): """ FetchReconRequestFilters """ - start_date: StrictStr = Field(..., description="Specify the start date from when you want the settlement reconciliation details.") - end_date: StrictStr = Field(..., description="Specify the end date till when you want the settlement reconciliation details.") + start_date: StrictStr = Field(description="Specify the start date from when you want the settlement reconciliation details.") + end_date: StrictStr = Field(description="Specify the end date till when you want the settlement reconciliation details.") __properties = ["start_date", "end_date"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/fetch_recon_request_pagination.py b/cashfree_pg/models/fetch_recon_request_pagination.py index 6a203b41..8f3d2762 100644 --- a/cashfree_pg/models/fetch_recon_request_pagination.py +++ b/cashfree_pg/models/fetch_recon_request_pagination.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr + + +from pydantic import field_validator class FetchReconRequestPagination(BaseModel): """ To fetch the next set of settlements, pass the cursor received in the response to the next API call. To receive the data for the first time, pass the cursor as null. Limit would be number of settlements that you want to receive. """ - limit: StrictInt = Field(..., description="Number of settlements you want to fetch in the next iteration. Maximum limit is 1000, default value is 10.") - cursor: Optional[StrictStr] = Field(None, description="Specifies from where the next set of settlement details should be fetched.") + limit: StrictInt = Field(description="Number of settlements you want to fetch in the next iteration. Maximum limit is 1000, default value is 10.") + cursor: Optional[StrictStr] = Field(default=None, description="Specifies from where the next set of settlement details should be fetched.") __properties = ["limit", "cursor"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/fetch_settlements_request.py b/cashfree_pg/models/fetch_settlements_request.py index 9139c2af..1f58adce 100644 --- a/cashfree_pg/models/fetch_settlements_request.py +++ b/cashfree_pg/models/fetch_settlements_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,22 +19,25 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.fetch_settlements_request_filters import FetchSettlementsRequestFilters from cashfree_pg.models.fetch_settlements_request_pagination import FetchSettlementsRequestPagination +from pydantic import field_validator class FetchSettlementsRequest(BaseModel): """ Request to fetch settlement """ - pagination: FetchSettlementsRequestPagination = Field(...) - filters: FetchSettlementsRequestFilters = Field(...) + pagination: FetchSettlementsRequestPagination + filters: FetchSettlementsRequestFilters __properties = ["pagination", "filters"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/fetch_settlements_request_filters.py b/cashfree_pg/models/fetch_settlements_request_filters.py index e273f876..0f84a05e 100644 --- a/cashfree_pg/models/fetch_settlements_request_filters.py +++ b/cashfree_pg/models/fetch_settlements_request_filters.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist + + +from pydantic import field_validator class FetchSettlementsRequestFilters(BaseModel): """ Specify either the Settlement ID, Settlement UTR, or start date and end date to fetch the settlement details. """ - cf_settlement_ids: Optional[conlist(StrictStr)] = Field(None, description="List of settlement IDs for which you want the settlement reconciliation details.") - settlement_utrs: Optional[conlist(StrictStr)] = Field(None, description="List of settlement UTRs for which you want the settlement reconciliation details.") - start_date: Optional[StrictStr] = Field(None, description="Specify the start date from when you want the settlement reconciliation details.") - end_date: Optional[StrictStr] = Field(None, description="Specify the end date till when you want the settlement reconciliation details.") + cf_settlement_ids: Optional[List[StrictStr]] = Field(default=None, description="List of settlement IDs for which you want the settlement reconciliation details.") + settlement_utrs: Optional[List[StrictStr]] = Field(default=None, description="List of settlement UTRs for which you want the settlement reconciliation details.") + start_date: Optional[StrictStr] = Field(default=None, description="Specify the start date from when you want the settlement reconciliation details.") + end_date: Optional[StrictStr] = Field(default=None, description="Specify the end date till when you want the settlement reconciliation details.") __properties = ["cf_settlement_ids", "settlement_utrs", "start_date", "end_date"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/fetch_settlements_request_pagination.py b/cashfree_pg/models/fetch_settlements_request_pagination.py index 2c07009a..95c28a99 100644 --- a/cashfree_pg/models/fetch_settlements_request_pagination.py +++ b/cashfree_pg/models/fetch_settlements_request_pagination.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr + + +from pydantic import field_validator class FetchSettlementsRequestPagination(BaseModel): """ To fetch the next set of settlements, pass the cursor received in the response to the next API call. To receive the data for the first time, pass the cursor as null. Limit would be number of settlements that you want to receive. """ - limit: StrictInt = Field(..., description="The number of settlements you want to fetch. Maximum limit is 1000, default value is 10.") - cursor: Optional[StrictStr] = Field(None, description="Specifies from where the next set of settlement details should be fetched.") + limit: StrictInt = Field(description="The number of settlements you want to fetch. Maximum limit is 1000, default value is 10.") + cursor: Optional[StrictStr] = Field(default=None, description="Specifies from where the next set of settlement details should be fetched.") __properties = ["limit", "cursor"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/fetch_terminal_qr_codes_entity.py b/cashfree_pg/models/fetch_terminal_qr_codes_entity.py index 332ece04..1d2ac4d8 100644 --- a/cashfree_pg/models/fetch_terminal_qr_codes_entity.py +++ b/cashfree_pg/models/fetch_terminal_qr_codes_entity.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class FetchTerminalQRCodesEntity(BaseModel): """ Fetch Static QR Codes using terminal ID or phone number """ - bank: Optional[StrictStr] = Field(None, description="Name of the bank that is linked to the Static QR.") - qr_code: Optional[StrictStr] = Field(None, alias="qrCode", description="Base-64 Encoded QR Code URL") - qr_code_url: Optional[StrictStr] = Field(None, alias="qrCodeUrl", description="URL of the qr Code.") - status: Optional[StrictStr] = Field(None, description="Status of the static QR.") + bank: Optional[StrictStr] = Field(default=None, description="Name of the bank that is linked to the Static QR.") + qr_code: Optional[StrictStr] = Field(default=None, description="Base-64 Encoded QR Code URL", alias="qrCode") + qr_code_url: Optional[StrictStr] = Field(default=None, description="URL of the qr Code.", alias="qrCodeUrl") + status: Optional[StrictStr] = Field(default=None, description="Status of the static QR.") __properties = ["bank", "qrCode", "qrCodeUrl", "status"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/idempotency_error.py b/cashfree_pg/models/idempotency_error.py index fcc8d89d..2b698c2b 100644 --- a/cashfree_pg/models/idempotency_error.py +++ b/cashfree_pg/models/idempotency_error.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + +from pydantic import field_validator class IdempotencyError(BaseModel): """ @@ -28,10 +28,10 @@ class IdempotencyError(BaseModel): """ message: Optional[StrictStr] = None code: Optional[StrictStr] = None - type: Optional[StrictStr] = Field(None, description="idempotency_error") + type: Optional[StrictStr] = Field(default=None, description="idempotency_error") __properties = ["message", "code", "type"] - @validator('type') + @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,10 +41,12 @@ def type_validate_enum(cls, value): raise ValueError("must be one of enum values ('idempotency_error')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/instrument_entity.py b/cashfree_pg/models/instrument_entity.py index 5d9b51fe..8a520892 100644 --- a/cashfree_pg/models/instrument_entity.py +++ b/cashfree_pg/models/instrument_entity.py @@ -1,44 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + from cashfree_pg.models.saved_instrument_meta import SavedInstrumentMeta +from pydantic import field_validator class InstrumentEntity(BaseModel): """ Saved card instrument object """ - customer_id: Optional[StrictStr] = Field(None, description="customer_id for which the instrument was saved") - afa_reference: Optional[StrictStr] = Field(None, description="cf_payment_id of the successful transaction done while saving instrument") - instrument_id: Optional[StrictStr] = Field(None, description="saved instrument id") - instrument_type: Optional[StrictStr] = Field(None, description="Type of the saved instrument") - instrument_uid: Optional[StrictStr] = Field(None, description="Unique id for the saved instrument") - instrument_display: Optional[StrictStr] = Field(None, description="masked card number displayed to the customer") - instrument_status: Optional[StrictStr] = Field(None, description="Status of the saved instrument.") - created_at: Optional[StrictStr] = Field(None, description="Timestamp at which instrument was saved.") + customer_id: Optional[StrictStr] = Field(default=None, description="customer_id for which the instrument was saved") + afa_reference: Optional[StrictStr] = Field(default=None, description="cf_payment_id of the successful transaction done while saving instrument") + instrument_id: Optional[StrictStr] = Field(default=None, description="saved instrument id") + instrument_type: Optional[StrictStr] = Field(default=None, description="Type of the saved instrument") + instrument_uid: Optional[StrictStr] = Field(default=None, description="Unique id for the saved instrument") + instrument_display: Optional[StrictStr] = Field(default=None, description="masked card number displayed to the customer") + instrument_status: Optional[StrictStr] = Field(default=None, description="Status of the saved instrument.") + created_at: Optional[StrictStr] = Field(default=None, description="Timestamp at which instrument was saved.") instrument_meta: Optional[SavedInstrumentMeta] = None __properties = ["customer_id", "afa_reference", "instrument_id", "instrument_type", "instrument_uid", "instrument_display", "instrument_status", "created_at", "instrument_meta"] - @validator('instrument_type') + @field_validator('instrument_type') def instrument_type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -48,7 +48,7 @@ def instrument_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('card')") return value - @validator('instrument_status') + @field_validator('instrument_status') def instrument_status_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -58,10 +58,12 @@ def instrument_status_validate_enum(cls, value): raise ValueError("must be one of enum values ('ACTIVE', 'INACTIVE')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/instrument_webhook.py b/cashfree_pg/models/instrument_webhook.py index 0c078dbe..51713ed6 100644 --- a/cashfree_pg/models/instrument_webhook.py +++ b/cashfree_pg/models/instrument_webhook.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.instrument_webhook_data import InstrumentWebhookData +from pydantic import field_validator class InstrumentWebhook(BaseModel): """ @@ -30,10 +30,12 @@ class InstrumentWebhook(BaseModel): data: Optional[InstrumentWebhookData] = None __properties = ["data"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/instrument_webhook_data.py b/cashfree_pg/models/instrument_webhook_data.py index f97ceb5f..cd2bb21f 100644 --- a/cashfree_pg/models/instrument_webhook_data.py +++ b/cashfree_pg/models/instrument_webhook_data.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + from cashfree_pg.models.instrument_webhook_data_entity import InstrumentWebhookDataEntity +from pydantic import field_validator class InstrumentWebhookData(BaseModel): """ @@ -32,10 +32,12 @@ class InstrumentWebhookData(BaseModel): type: Optional[StrictStr] = None __properties = ["data", "event_time", "type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/instrument_webhook_data_entity.py b/cashfree_pg/models/instrument_webhook_data_entity.py index f583a049..e8f1eaef 100644 --- a/cashfree_pg/models/instrument_webhook_data_entity.py +++ b/cashfree_pg/models/instrument_webhook_data_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.instrument_entity import InstrumentEntity +from pydantic import field_validator class InstrumentWebhookDataEntity(BaseModel): """ @@ -30,10 +30,12 @@ class InstrumentWebhookDataEntity(BaseModel): instrument: Optional[InstrumentEntity] = None __properties = ["instrument"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/kyc_details.py b/cashfree_pg/models/kyc_details.py index 24c28cc0..8594d75e 100644 --- a/cashfree_pg/models/kyc_details.py +++ b/cashfree_pg/models/kyc_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class KycDetails(BaseModel): """ @@ -37,10 +37,12 @@ class KycDetails(BaseModel): voter_id: Optional[StrictStr] = None __properties = ["account_type", "business_type", "uidai", "gst", "cin", "pan", "passport_number", "driving_license", "voter_id"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/link_customer_details_entity.py b/cashfree_pg/models/link_customer_details_entity.py index 16ce95bf..4b37dd9d 100644 --- a/cashfree_pg/models/link_customer_details_entity.py +++ b/cashfree_pg/models/link_customer_details_entity.py @@ -1,40 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, validator + + +from pydantic import field_validator class LinkCustomerDetailsEntity(BaseModel): """ Payment link customer entity """ - customer_phone: StrictStr = Field(..., description="Customer phone number") - customer_email: Optional[StrictStr] = Field(None, description="Customer email address") - customer_name: Optional[StrictStr] = Field(None, description="Customer name") - customer_bank_account_number: Optional[StrictStr] = Field(None, description="Customer Bank Account Number") - customer_bank_ifsc: Optional[StrictStr] = Field(None, description="Customer Bank Ifsc") - customer_bank_code: Optional[StrictInt] = Field(None, description="Customer Bank Code") + customer_phone: StrictStr = Field(description="Customer phone number") + customer_email: Optional[StrictStr] = Field(default=None, description="Customer email address") + customer_name: Optional[StrictStr] = Field(default=None, description="Customer name") + customer_bank_account_number: Optional[StrictStr] = Field(default=None, description="Customer Bank Account Number") + customer_bank_ifsc: Optional[StrictStr] = Field(default=None, description="Customer Bank Ifsc") + customer_bank_code: Optional[StrictInt] = Field(default=None, description="Customer Bank Code") __properties = ["customer_phone", "customer_email", "customer_name", "customer_bank_account_number", "customer_bank_ifsc", "customer_bank_code"] - @validator('customer_bank_code') + @field_validator('customer_bank_code') def customer_bank_code_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -44,10 +44,12 @@ def customer_bank_code_validate_enum(cls, value): raise ValueError("must be one of enum values (3003, 3005, 3006, 3010, 3012, 3016, 3019, 3020, 3021, 3022, 3023, 3024, 3026, 3027, 3028, 3029, 3030, 3031, 3032, 3033, 3038, 3039, 3040, 3042, 3044, 3054, 3055, 3058, 3086, 3087, 3088, 3089, 3090, 3091, 3092, 3098, 3115, 3117, 7001)") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/link_entity.py b/cashfree_pg/models/link_entity.py index 93406e9e..7913f910 100644 --- a/cashfree_pg/models/link_entity.py +++ b/cashfree_pg/models/link_entity.py @@ -1,30 +1,30 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Dict, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist + + from cashfree_pg.models.link_customer_details_entity import LinkCustomerDetailsEntity from cashfree_pg.models.link_meta_response_entity import LinkMetaResponseEntity from cashfree_pg.models.link_notify_entity import LinkNotifyEntity from cashfree_pg.models.vendor_split import VendorSplit +from pydantic import field_validator class LinkEntity(BaseModel): """ @@ -44,17 +44,19 @@ class LinkEntity(BaseModel): link_meta: Optional[LinkMetaResponseEntity] = None link_url: Optional[StrictStr] = None link_expiry_time: Optional[StrictStr] = None - link_notes: Optional[Dict[str, StrictStr]] = Field(None, description="Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs") + link_notes: Optional[Dict[str, StrictStr]] = Field(default=None, description="Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs") link_auto_reminders: Optional[StrictBool] = None link_notify: Optional[LinkNotifyEntity] = None - link_qrcode: Optional[StrictStr] = Field(None, description="Base64 encoded string for payment link. You can scan with camera to open a link in the browser to complete the payment.") - order_splits: Optional[conlist(VendorSplit)] = None + link_qrcode: Optional[StrictStr] = Field(default=None, description="Base64 encoded string for payment link. You can scan with camera to open a link in the browser to complete the payment.") + order_splits: Optional[List[VendorSplit]] = None __properties = ["cf_link_id", "link_id", "link_status", "link_currency", "link_amount", "link_amount_paid", "link_partial_payments", "link_minimum_partial_amount", "link_purpose", "link_created_at", "customer_details", "link_meta", "link_url", "link_expiry_time", "link_notes", "link_auto_reminders", "link_notify", "link_qrcode", "order_splits"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/link_meta_response_entity.py b/cashfree_pg/models/link_meta_response_entity.py index b9d8412f..6455d41b 100644 --- a/cashfree_pg/models/link_meta_response_entity.py +++ b/cashfree_pg/models/link_meta_response_entity.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class LinkMetaResponseEntity(BaseModel): """ Payment link meta information object """ - notify_url: Optional[StrictStr] = Field(None, description="Notification URL for server-server communication. It should be an https URL.") - upi_intent: Optional[StrictStr] = Field(None, description="If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere") - return_url: Optional[StrictStr] = Field(None, description="The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250.") - payment_methods: Optional[StrictStr] = Field(None, description="Allowed payment modes for this link. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\", \"nb\", \"upi\", \"paypal\", \"app\". Leave it blank to show all available payment methods") + notify_url: Optional[StrictStr] = Field(default=None, description="Notification URL for server-server communication. It should be an https URL.") + upi_intent: Optional[StrictStr] = Field(default=None, description="If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere") + return_url: Optional[StrictStr] = Field(default=None, description="The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250.") + payment_methods: Optional[StrictStr] = Field(default=None, description="Allowed payment modes for this link. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\", \"nb\", \"upi\", \"paypal\", \"app\". Leave it blank to show all available payment methods") __properties = ["notify_url", "upi_intent", "return_url", "payment_methods"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/link_notify_entity.py b/cashfree_pg/models/link_notify_entity.py index c71bea54..13f2f09f 100644 --- a/cashfree_pg/models/link_notify_entity.py +++ b/cashfree_pg/models/link_notify_entity.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictBool + + +from pydantic import field_validator class LinkNotifyEntity(BaseModel): """ Payment link Notify Object for SMS and Email """ - send_sms: Optional[StrictBool] = Field(None, description="If \"true\", Cashfree will send sms on customer_phone") - send_email: Optional[StrictBool] = Field(None, description="If \"true\", Cashfree will send email on customer_email") + send_sms: Optional[StrictBool] = Field(default=None, description="If \"true\", Cashfree will send sms on customer_phone") + send_email: Optional[StrictBool] = Field(default=None, description="If \"true\", Cashfree will send email on customer_email") __properties = ["send_sms", "send_email"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/manage_subscription_payment_request.py b/cashfree_pg/models/manage_subscription_payment_request.py index b75a6ffa..d3e68471 100644 --- a/cashfree_pg/models/manage_subscription_payment_request.py +++ b/cashfree_pg/models/manage_subscription_payment_request.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + from cashfree_pg.models.manage_subscription_payment_request_action_details import ManageSubscriptionPaymentRequestActionDetails +from pydantic import field_validator class ManageSubscriptionPaymentRequest(BaseModel): """ Request body to manage a subscription payment. """ - subscription_id: StrictStr = Field(..., description="The unique ID which was used to create subscription.") - payment_id: StrictStr = Field(..., description="The unique ID which was used to create payment.") - action: StrictStr = Field(..., description="Action to be performed on the payment. Possible values - CANCEL, RETRY.") + subscription_id: StrictStr = Field(description="The unique ID which was used to create subscription.") + payment_id: StrictStr = Field(description="The unique ID which was used to create payment.") + action: StrictStr = Field(description="Action to be performed on the payment. Possible values - CANCEL, RETRY.") action_details: Optional[ManageSubscriptionPaymentRequestActionDetails] = None __properties = ["subscription_id", "payment_id", "action", "action_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/manage_subscription_payment_request_action_details.py b/cashfree_pg/models/manage_subscription_payment_request_action_details.py index 75cc2702..cb44baab 100644 --- a/cashfree_pg/models/manage_subscription_payment_request_action_details.py +++ b/cashfree_pg/models/manage_subscription_payment_request_action_details.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class ManageSubscriptionPaymentRequestActionDetails(BaseModel): """ Details of the action to be performed. Needed for retry action. """ - next_scheduled_time: Optional[StrictStr] = Field(None, description="Next scheduled time for the retry of the FAILED payment. Required for retry action.") + next_scheduled_time: Optional[StrictStr] = Field(default=None, description="Next scheduled time for the retry of the FAILED payment. Required for retry action.") __properties = ["next_scheduled_time"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/manage_subscription_request.py b/cashfree_pg/models/manage_subscription_request.py index 18c92c13..87b09a6b 100644 --- a/cashfree_pg/models/manage_subscription_request.py +++ b/cashfree_pg/models/manage_subscription_request.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + from cashfree_pg.models.manage_subscription_request_action_details import ManageSubscriptionRequestActionDetails +from pydantic import field_validator class ManageSubscriptionRequest(BaseModel): """ Request body to manage a subscription. """ - subscription_id: StrictStr = Field(..., description="The unique ID which was used to create subscription.") - action: StrictStr = Field(..., description="Action to be performed on the subscription. Possible values - CANCEL, PAUSE, ACTIVATE, CHANGE_PLAN.") + subscription_id: StrictStr = Field(description="The unique ID which was used to create subscription.") + action: StrictStr = Field(description="Action to be performed on the subscription. Possible values - CANCEL, PAUSE, ACTIVATE, CHANGE_PLAN.") action_details: Optional[ManageSubscriptionRequestActionDetails] = None __properties = ["subscription_id", "action", "action_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/manage_subscription_request_action_details.py b/cashfree_pg/models/manage_subscription_request_action_details.py index bd5f5935..3d965987 100644 --- a/cashfree_pg/models/manage_subscription_request_action_details.py +++ b/cashfree_pg/models/manage_subscription_request_action_details.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class ManageSubscriptionRequestActionDetails(BaseModel): """ Details of the action to be performed. """ - next_scheduled_time: Optional[StrictStr] = Field(None, description="Next scheduled time for the action. Required for ACTIVATE action.") - plan_id: Optional[StrictStr] = Field(None, description="Plan ID to update. Required for CHANGE_PLAN action.") + next_scheduled_time: Optional[StrictStr] = Field(default=None, description="Next scheduled time for the action. Required for ACTIVATE action.") + plan_id: Optional[StrictStr] = Field(default=None, description="Plan ID to update. Required for CHANGE_PLAN action.") __properties = ["next_scheduled_time", "plan_id"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/net_banking_payment_method.py b/cashfree_pg/models/net_banking_payment_method.py index 401c3ee5..8c65a59f 100644 --- a/cashfree_pg/models/net_banking_payment_method.py +++ b/cashfree_pg/models/net_banking_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.netbanking import Netbanking +from pydantic import field_validator class NetBankingPaymentMethod(BaseModel): """ Payment method for netbanking object """ - netbanking: Netbanking = Field(...) + netbanking: Netbanking __properties = ["netbanking"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/netbanking.py b/cashfree_pg/models/netbanking.py index 51c82801..ce9743e3 100644 --- a/cashfree_pg/models/netbanking.py +++ b/cashfree_pg/models/netbanking.py @@ -1,37 +1,37 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, conint, constr, validator + + +from pydantic import field_validator class Netbanking(BaseModel): """ Netbanking payment method request body """ - channel: StrictStr = Field(..., description="The channel for netbanking will always be `link`") - netbanking_bank_code: Optional[conint(strict=True)] = Field(None, description="Bank code") - netbanking_bank_name: Optional[constr(strict=True)] = Field(None, description="String code for bank") + channel: StrictStr = Field(description="The channel for netbanking will always be `link`") + netbanking_bank_code: Optional[Annotated[int, Field(strict=True)]] = Field(default=None, description="Bank code") + netbanking_bank_name: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="String code for bank") __properties = ["channel", "netbanking_bank_code", "netbanking_bank_name"] - @validator('netbanking_bank_name') + @field_validator('netbanking_bank_name') def netbanking_bank_name_validate_regular_expression(cls, value): """Validates the regular expression""" if value is None: @@ -41,10 +41,12 @@ def netbanking_bank_name_validate_regular_expression(cls, value): raise ValueError(r"must validate the regular expression /^[A-Z]{5}$/") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_all.py b/cashfree_pg/models/offer_all.py index 65d5e369..ef10c00c 100644 --- a/cashfree_pg/models/offer_all.py +++ b/cashfree_pg/models/offer_all.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict -from pydantic import BaseModel, Field + + +from pydantic import field_validator class OfferAll(BaseModel): """ returns all offers """ - all: Dict[str, Any] = Field(..., description="All offers applicable") + all: Dict[str, Any] = Field(description="All offers applicable") __properties = ["all"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_card.py b/cashfree_pg/models/offer_card.py index 7303865d..49811d9a 100644 --- a/cashfree_pg/models/offer_card.py +++ b/cashfree_pg/models/offer_card.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.card_offer import CardOffer +from pydantic import field_validator class OfferCard(BaseModel): """ Offers related to cards """ - card: CardOffer = Field(...) + card: CardOffer __properties = ["card"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_details.py b/cashfree_pg/models/offer_details.py index 077d52a2..2ef0b708 100644 --- a/cashfree_pg/models/offer_details.py +++ b/cashfree_pg/models/offer_details.py @@ -1,49 +1,51 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, constr, validator + + from cashfree_pg.models.cashback_details import CashbackDetails from cashfree_pg.models.discount_details import DiscountDetails +from pydantic import field_validator class OfferDetails(BaseModel): """ Offer details and type """ - offer_type: constr(strict=True, max_length=50, min_length=3) = Field(..., description="Offer Type for the Offer.") + offer_type: Annotated[str, Field(min_length=3, strict=True, max_length=50)] = Field(description="Offer Type for the Offer.") discount_details: Optional[DiscountDetails] = None cashback_details: Optional[CashbackDetails] = None __properties = ["offer_type", "discount_details", "cashback_details"] - @validator('offer_type') + @field_validator('offer_type') def offer_type_validate_enum(cls, value): """Validates the enum""" if value not in ('DISCOUNT', 'CASHBACK', 'DISCOUNT_AND_CASHBACK', 'NO_COST_EMI'): raise ValueError("must be one of enum values ('DISCOUNT', 'CASHBACK', 'DISCOUNT_AND_CASHBACK', 'NO_COST_EMI')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_emi.py b/cashfree_pg/models/offer_emi.py index d769f6d2..6f01bfa8 100644 --- a/cashfree_pg/models/offer_emi.py +++ b/cashfree_pg/models/offer_emi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.emi_offer import EMIOffer +from pydantic import field_validator class OfferEMI(BaseModel): """ EMI offer object """ - emi: EMIOffer = Field(...) + emi: EMIOffer __properties = ["emi"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_entity.py b/cashfree_pg/models/offer_entity.py index b68e6fa8..28a29f09 100644 --- a/cashfree_pg/models/offer_entity.py +++ b/cashfree_pg/models/offer_entity.py @@ -1,30 +1,30 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + from cashfree_pg.models.offer_details import OfferDetails from cashfree_pg.models.offer_meta import OfferMeta from cashfree_pg.models.offer_tnc import OfferTnc from cashfree_pg.models.offer_validations import OfferValidations +from pydantic import field_validator class OfferEntity(BaseModel): """ @@ -38,10 +38,12 @@ class OfferEntity(BaseModel): offer_validations: Optional[OfferValidations] = None __properties = ["offer_id", "offer_status", "offer_meta", "offer_tnc", "offer_details", "offer_validations"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_extended_details.py b/cashfree_pg/models/offer_extended_details.py index a47fde6c..c59d71a5 100644 --- a/cashfree_pg/models/offer_extended_details.py +++ b/cashfree_pg/models/offer_extended_details.py @@ -1,30 +1,30 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + from cashfree_pg.models.offer_details import OfferDetails from cashfree_pg.models.offer_meta import OfferMeta from cashfree_pg.models.offer_tnc import OfferTnc from cashfree_pg.models.offer_validations import OfferValidations +from pydantic import field_validator class OfferExtendedDetails(BaseModel): """ @@ -38,10 +38,12 @@ class OfferExtendedDetails(BaseModel): offer_validations: Optional[OfferValidations] = None __properties = ["offer_id", "offer_status", "offer_meta", "offer_tnc", "offer_details", "offer_validations"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_filters.py b/cashfree_pg/models/offer_filters.py index 9c040a44..d4a0ebca 100644 --- a/cashfree_pg/models/offer_filters.py +++ b/cashfree_pg/models/offer_filters.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, conlist + + from cashfree_pg.models.offer_type import OfferType +from pydantic import field_validator class OfferFilters(BaseModel): """ Filter for offers """ - offer_type: Optional[conlist(OfferType)] = Field(None, description="Array of offer_type to be filtered.") + offer_type: Optional[List[OfferType]] = Field(default=None, description="Array of offer_type to be filtered.") __properties = ["offer_type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_meta.py b/cashfree_pg/models/offer_meta.py index e22c4bdd..c9e9ce68 100644 --- a/cashfree_pg/models/offer_meta.py +++ b/cashfree_pg/models/offer_meta.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,23 +19,26 @@ -from pydantic import BaseModel, Field, StrictStr, constr + +from pydantic import field_validator class OfferMeta(BaseModel): """ Offer meta details object """ - offer_title: constr(strict=True, max_length=50, min_length=3) = Field(..., description="Title for the Offer.") - offer_description: constr(strict=True, max_length=100, min_length=3) = Field(..., description="Description for the Offer.") - offer_code: constr(strict=True, max_length=45, min_length=1) = Field(..., description="Unique identifier for the Offer.") - offer_start_time: constr(strict=True, max_length=20, min_length=3) = Field(..., description="Start Time for the Offer") - offer_end_time: StrictStr = Field(..., description="Expiry Time for the Offer") + offer_title: Annotated[str, Field(min_length=3, strict=True, max_length=50)] = Field(description="Title for the Offer.") + offer_description: Annotated[str, Field(min_length=3, strict=True, max_length=100)] = Field(description="Description for the Offer.") + offer_code: Annotated[str, Field(min_length=1, strict=True, max_length=45)] = Field(description="Unique identifier for the Offer.") + offer_start_time: Annotated[str, Field(min_length=3, strict=True, max_length=20)] = Field(description="Start Time for the Offer") + offer_end_time: StrictStr = Field(description="Expiry Time for the Offer") __properties = ["offer_title", "offer_description", "offer_code", "offer_start_time", "offer_end_time"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_nb.py b/cashfree_pg/models/offer_nb.py index 1293d5b9..eaa78b7f 100644 --- a/cashfree_pg/models/offer_nb.py +++ b/cashfree_pg/models/offer_nb.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.offer_nb_netbanking import OfferNBNetbanking +from pydantic import field_validator class OfferNB(BaseModel): """ Offer object ofr NetBanking """ - netbanking: OfferNBNetbanking = Field(...) + netbanking: OfferNBNetbanking __properties = ["netbanking"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_nb_netbanking.py b/cashfree_pg/models/offer_nb_netbanking.py index ab574b93..e860c635 100644 --- a/cashfree_pg/models/offer_nb_netbanking.py +++ b/cashfree_pg/models/offer_nb_netbanking.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class OfferNBNetbanking(BaseModel): """ @@ -29,10 +29,12 @@ class OfferNBNetbanking(BaseModel): bank_name: Optional[StrictStr] = None __properties = ["bank_name"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_paylater.py b/cashfree_pg/models/offer_paylater.py index c3c05bc2..5ea00dea 100644 --- a/cashfree_pg/models/offer_paylater.py +++ b/cashfree_pg/models/offer_paylater.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.paylater_offer import PaylaterOffer +from pydantic import field_validator class OfferPaylater(BaseModel): """ Offer object for paylater """ - paylater: PaylaterOffer = Field(...) + paylater: PaylaterOffer __properties = ["paylater"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_queries.py b/cashfree_pg/models/offer_queries.py index 2bfb5d60..695d97bc 100644 --- a/cashfree_pg/models/offer_queries.py +++ b/cashfree_pg/models/offer_queries.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, confloat, conint, constr + + +from pydantic import field_validator class OfferQueries(BaseModel): """ Offer Query Object """ - order_id: Optional[constr(strict=True, max_length=50, min_length=3)] = Field(None, description="OrderId of the order. Either of `order_id` or `order_amount` is mandatory.") - amount: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = Field(None, description="Amount of the order. OrderId of the order. Either of `order_id` or `order_amount` is mandatory.") + order_id: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=50)]] = Field(default=None, description="OrderId of the order. Either of `order_id` or `order_amount` is mandatory.") + amount: Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Amount of the order. OrderId of the order. Either of `order_id` or `order_amount` is mandatory.") __properties = ["order_id", "amount"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_tnc.py b/cashfree_pg/models/offer_tnc.py index 1f1c6734..6b50ae20 100644 --- a/cashfree_pg/models/offer_tnc.py +++ b/cashfree_pg/models/offer_tnc.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,27 +19,30 @@ -from pydantic import BaseModel, Field, constr, validator + +from pydantic import field_validator class OfferTnc(BaseModel): """ Offer terms and condition object """ - offer_tnc_type: constr(strict=True, max_length=50, min_length=3) = Field(..., description="TnC Type for the Offer. It can be either `text` or `link`") - offer_tnc_value: constr(strict=True, max_length=100, min_length=3) = Field(..., description="TnC for the Offer.") + offer_tnc_type: Annotated[str, Field(min_length=3, strict=True, max_length=50)] = Field(description="TnC Type for the Offer. It can be either `text` or `link`") + offer_tnc_value: Annotated[str, Field(min_length=3, strict=True, max_length=100)] = Field(description="TnC for the Offer.") __properties = ["offer_tnc_type", "offer_tnc_value"] - @validator('offer_tnc_type') + @field_validator('offer_tnc_type') def offer_tnc_type_validate_enum(cls, value): """Validates the enum""" if value not in ('text', 'link'): raise ValueError("must be one of enum values ('text', 'link')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_type.py b/cashfree_pg/models/offer_type.py index 35b2937b..c476b424 100644 --- a/cashfree_pg/models/offer_type.py +++ b/cashfree_pg/models/offer_type.py @@ -1,25 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import json import pprint import re # noqa: F401 from aenum import Enum, no_arg +from pydantic import Field +# Updated imports for Pydantic v2 compatibility class OfferType(str, Enum): @@ -40,4 +41,3 @@ def from_json(cls, json_str: str) -> OfferType: """Create an instance of OfferType from a JSON string""" return OfferType(json.loads(json_str)) - diff --git a/cashfree_pg/models/offer_upi.py b/cashfree_pg/models/offer_upi.py index d591731d..7d671334 100644 --- a/cashfree_pg/models/offer_upi.py +++ b/cashfree_pg/models/offer_upi.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict -from pydantic import BaseModel, Field + + +from pydantic import field_validator class OfferUPI(BaseModel): """ Offer object for UPI """ - upi: Dict[str, Any] = Field(...) + upi: Dict[str, Any] __properties = ["upi"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_validations.py b/cashfree_pg/models/offer_validations.py index e7134db3..4bd9fe15 100644 --- a/cashfree_pg/models/offer_validations.py +++ b/cashfree_pg/models/offer_validations.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, confloat, conint + + from cashfree_pg.models.offer_validations_payment_method import OfferValidationsPaymentMethod +from pydantic import field_validator class OfferValidations(BaseModel): """ Offer validation object """ - min_amount: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = Field(None, description="Minimum Amount for Offer to be Applicable") - max_allowed: Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)] = Field(..., description="Maximum Amount for Offer to be Applicable") - payment_method: OfferValidationsPaymentMethod = Field(...) + min_amount: Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Minimum Amount for Offer to be Applicable") + max_allowed: Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]] = Field(description="Maximum Amount for Offer to be Applicable") + payment_method: OfferValidationsPaymentMethod __properties = ["min_amount", "max_allowed", "payment_method"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/offer_validations_payment_method.py b/cashfree_pg/models/offer_validations_payment_method.py index dbefc99d..29685f2b 100644 --- a/cashfree_pg/models/offer_validations_payment_method.py +++ b/cashfree_pg/models/offer_validations_payment_method.py @@ -1,26 +1,25 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations from inspect import getfullargspec import json import pprint import re # noqa: F401 -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator + + from cashfree_pg.models.offer_all import OfferAll from cashfree_pg.models.offer_card import OfferCard from cashfree_pg.models.offer_emi import OfferEMI @@ -28,7 +27,7 @@ from cashfree_pg.models.offer_paylater import OfferPaylater from cashfree_pg.models.offer_upi import OfferUPI from cashfree_pg.models.offer_wallet import OfferWallet -from typing import Union, Any, List, TYPE_CHECKING +from typing import Union, Any, List, TYPE_CHECKING, Literal from pydantic import StrictStr, Field OFFERVALIDATIONSPAYMENTMETHOD_ONE_OF_SCHEMAS = ["OfferAll", "OfferCard", "OfferEMI", "OfferNB", "OfferPaylater", "OfferUPI", "OfferWallet"] @@ -55,10 +54,12 @@ class OfferValidationsPaymentMethod(BaseModel): actual_instance: Union[OfferAll, OfferCard, OfferEMI, OfferNB, OfferPaylater, OfferUPI, OfferWallet] else: actual_instance: Any - one_of_schemas: List[str] = Field(OFFERVALIDATIONSPAYMENTMETHOD_ONE_OF_SCHEMAS, const=True) + one_of_schemas: List[str] = Literal[OFFERVALIDATIONSPAYMENTMETHOD_ONE_OF_SCHEMAS] - class Config: - validate_assignment = True + # Updated to Pydantic v2 + model_config = { + "validate_assignment": True + } def __init__(self, *args, **kwargs): if args: diff --git a/cashfree_pg/models/offer_wallet.py b/cashfree_pg/models/offer_wallet.py index 27504c29..0f98a38e 100644 --- a/cashfree_pg/models/offer_wallet.py +++ b/cashfree_pg/models/offer_wallet.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.wallet_offer import WalletOffer +from pydantic import field_validator class OfferWallet(BaseModel): """ Offer object for wallet payment method """ - app: WalletOffer = Field(...) + app: WalletOffer __properties = ["app"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/onboard_soundbox_vpa_request.py b/cashfree_pg/models/onboard_soundbox_vpa_request.py index ec736aac..93a10c51 100644 --- a/cashfree_pg/models/onboard_soundbox_vpa_request.py +++ b/cashfree_pg/models/onboard_soundbox_vpa_request.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class OnboardSoundboxVpaRequest(BaseModel): """ Request body to onboard soundbox vpa """ - vpa: StrictStr = Field(..., description="Terminal Vpa ,that need to onboard on soundbox") - cf_terminal_id: StrictStr = Field(..., description="cashfree terminal id.") - device_serial_no: StrictStr = Field(..., description="Device Serial No of soundbox") - merchant_name: Optional[StrictStr] = Field(None, description="Merchant Name that need to onboard on soundbox") - language: Optional[StrictStr] = Field(None, description="language of soundbox,currently English, Hindi, Tamil") + vpa: StrictStr = Field(description="Terminal Vpa ,that need to onboard on soundbox") + cf_terminal_id: StrictStr = Field(description="cashfree terminal id.") + device_serial_no: StrictStr = Field(description="Device Serial No of soundbox") + merchant_name: Optional[StrictStr] = Field(default=None, description="Merchant Name that need to onboard on soundbox") + language: Optional[StrictStr] = Field(default=None, description="language of soundbox,currently English, Hindi, Tamil") __properties = ["vpa", "cf_terminal_id", "device_serial_no", "merchant_name", "language"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/order_authenticate_entity.py b/cashfree_pg/models/order_authenticate_entity.py index 4b9ef734..22b52eef 100644 --- a/cashfree_pg/models/order_authenticate_entity.py +++ b/cashfree_pg/models/order_authenticate_entity.py @@ -1,38 +1,38 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + +from pydantic import field_validator class OrderAuthenticateEntity(BaseModel): """ This is the response shared when merchant inovkes the OTP submit or resend API """ - cf_payment_id: Optional[StrictStr] = Field(None, description="The payment id for which this request was sent") - action: Optional[StrictStr] = Field(None, description="The action that was invoked for this request.") - authenticate_status: Optional[StrictStr] = Field(None, description="Status of the is action. Will be either failed or successful. If the action is successful, you should still call the authorization status to verify the final payment status.") - payment_message: Optional[StrictStr] = Field(None, description="Human readable message which describes the status in more detail") + cf_payment_id: Optional[StrictStr] = Field(default=None, description="The payment id for which this request was sent") + action: Optional[StrictStr] = Field(default=None, description="The action that was invoked for this request.") + authenticate_status: Optional[StrictStr] = Field(default=None, description="Status of the is action. Will be either failed or successful. If the action is successful, you should still call the authorization status to verify the final payment status.") + payment_message: Optional[StrictStr] = Field(default=None, description="Human readable message which describes the status in more detail") __properties = ["cf_payment_id", "action", "authenticate_status", "payment_message"] - @validator('action') + @field_validator('action') def action_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -42,7 +42,7 @@ def action_validate_enum(cls, value): raise ValueError("must be one of enum values ('SUBMIT_OTP', 'RESEND_OTP')") return value - @validator('authenticate_status') + @field_validator('authenticate_status') def authenticate_status_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -52,10 +52,12 @@ def authenticate_status_validate_enum(cls, value): raise ValueError("must be one of enum values ('FAILED', 'SUCCESS')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/order_authenticate_payment_request.py b/cashfree_pg/models/order_authenticate_payment_request.py index 834f3d19..fcc700f2 100644 --- a/cashfree_pg/models/order_authenticate_payment_request.py +++ b/cashfree_pg/models/order_authenticate_payment_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,27 +19,30 @@ -from pydantic import BaseModel, Field, StrictStr, validator + +from pydantic import field_validator class OrderAuthenticatePaymentRequest(BaseModel): """ OTP to be submitted for headless/native OTP """ - otp: StrictStr = Field(..., description="OTP to be submitted") - action: StrictStr = Field(..., description="The action for this workflow. Could be either SUBMIT_OTP or RESEND_OTP") + otp: StrictStr = Field(description="OTP to be submitted") + action: StrictStr = Field(description="The action for this workflow. Could be either SUBMIT_OTP or RESEND_OTP") __properties = ["otp", "action"] - @validator('action') + @field_validator('action') def action_validate_enum(cls, value): """Validates the enum""" if value not in ('SUBMIT_OTP', 'RESEND_OTP'): raise ValueError("must be one of enum values ('SUBMIT_OTP', 'RESEND_OTP')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/order_create_refund_request.py b/cashfree_pg/models/order_create_refund_request.py index 1439b72f..4c4f9395 100644 --- a/cashfree_pg/models/order_create_refund_request.py +++ b/cashfree_pg/models/order_create_refund_request.py @@ -1,40 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, constr, validator + + from cashfree_pg.models.vendor_split import VendorSplit +from pydantic import field_validator class OrderCreateRefundRequest(BaseModel): """ create refund request object """ - refund_amount: Union[StrictFloat, StrictInt] = Field(..., description="Amount to be refunded. Should be lesser than or equal to the transaction amount. (Decimals allowed)") - refund_id: constr(strict=True, max_length=40, min_length=3) = Field(..., description="An unique ID to associate the refund with. Provie alphanumeric values") - refund_note: Optional[constr(strict=True, max_length=100, min_length=3)] = Field(None, description="A refund note for your reference.") - refund_speed: Optional[StrictStr] = Field(None, description="Speed at which the refund is processed. It's an optional field with default being STANDARD") - refund_splits: Optional[conlist(VendorSplit)] = None + refund_amount: Union[StrictFloat, StrictInt] = Field(description="Amount to be refunded. Should be lesser than or equal to the transaction amount. (Decimals allowed)") + refund_id: Annotated[str, Field(min_length=3, strict=True, max_length=40)] = Field(description="An unique ID to associate the refund with. Provie alphanumeric values") + refund_note: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=100)]] = Field(default=None, description="A refund note for your reference.") + refund_speed: Optional[StrictStr] = Field(default=None, description="Speed at which the refund is processed. It's an optional field with default being STANDARD") + refund_splits: Optional[List[VendorSplit]] = None __properties = ["refund_amount", "refund_id", "refund_note", "refund_speed", "refund_splits"] - @validator('refund_speed') + @field_validator('refund_speed') def refund_speed_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -44,10 +44,12 @@ def refund_speed_validate_enum(cls, value): raise ValueError("must be one of enum values ('STANDARD', 'INSTANT')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/order_delivery_status.py b/cashfree_pg/models/order_delivery_status.py index b4a19b31..19664302 100644 --- a/cashfree_pg/models/order_delivery_status.py +++ b/cashfree_pg/models/order_delivery_status.py @@ -1,46 +1,48 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + +from pydantic import field_validator class OrderDeliveryStatus(BaseModel): """ Order delivery Status associated with order. """ - status: StrictStr = Field(..., description="Delivery status of order") - reason: Optional[StrictStr] = Field(None, description="Reason of provided order delivery status. This is optional field.") + status: StrictStr = Field(description="Delivery status of order") + reason: Optional[StrictStr] = Field(default=None, description="Reason of provided order delivery status. This is optional field.") __properties = ["status", "reason"] - @validator('status') + @field_validator('status') def status_validate_enum(cls, value): """Validates the enum""" if value not in ('AWAITING_PICKUP', 'CANCELLED', 'SELF_FULFILLED', 'PICKED_UP', 'SHIPPED', 'IN_TRANSIT', 'DELAY_COURIER_COMPANY_ISSUES', 'DELAY_INCORRECT_ADDRESS', 'DELAY_SELLER_ISSUES', 'REACHED_DESTINATION_HUB', 'OUT_FOR_DELIVERY', 'DELIVERED', 'POTENTIAL_RTO_DELIVERY_ATTEMPTED', 'RTO', 'LOST', 'DAMAGED', 'UNTRACKABLE_404', 'MANUAL_INTERVENTION_BROKEN_URL', 'ASSOCIATED_WITH_RETURN_PICKUP', 'UNSERVICEABLE'): raise ValueError("must be one of enum values ('AWAITING_PICKUP', 'CANCELLED', 'SELF_FULFILLED', 'PICKED_UP', 'SHIPPED', 'IN_TRANSIT', 'DELAY_COURIER_COMPANY_ISSUES', 'DELAY_INCORRECT_ADDRESS', 'DELAY_SELLER_ISSUES', 'REACHED_DESTINATION_HUB', 'OUT_FOR_DELIVERY', 'DELIVERED', 'POTENTIAL_RTO_DELIVERY_ATTEMPTED', 'RTO', 'LOST', 'DAMAGED', 'UNTRACKABLE_404', 'MANUAL_INTERVENTION_BROKEN_URL', 'ASSOCIATED_WITH_RETURN_PICKUP', 'UNSERVICEABLE')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/order_details_in_disputes_entity.py b/cashfree_pg/models/order_details_in_disputes_entity.py index 2e0b34f3..489b8050 100644 --- a/cashfree_pg/models/order_details_in_disputes_entity.py +++ b/cashfree_pg/models/order_details_in_disputes_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class OrderDetailsInDisputesEntity(BaseModel): """ @@ -34,10 +34,12 @@ class OrderDetailsInDisputesEntity(BaseModel): payment_amount: Optional[Union[StrictFloat, StrictInt]] = None __properties = ["order_id", "order_currency", "order_amount", "cf_payment_id", "payment_currency", "payment_amount"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/order_entity.py b/cashfree_pg/models/order_entity.py index 445fc1ef..74faf54c 100644 --- a/cashfree_pg/models/order_entity.py +++ b/cashfree_pg/models/order_entity.py @@ -1,56 +1,58 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from datetime import datetime -from typing import Dict, List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, constr + + + from cashfree_pg.models.cart_details_entity import CartDetailsEntity from cashfree_pg.models.customer_details_response import CustomerDetailsResponse from cashfree_pg.models.order_meta import OrderMeta from cashfree_pg.models.vendor_split import VendorSplit +from pydantic import field_validator class OrderEntity(BaseModel): """ The complete order entity """ - cf_order_id: Optional[StrictStr] = Field(None, description="unique id generated by cashfree for your order") - order_id: Optional[StrictStr] = Field(None, description="order_id sent during the api request") - entity: Optional[StrictStr] = Field(None, description="Type of the entity.") - order_currency: Optional[StrictStr] = Field(None, description="Currency of the order. Example INR") + cf_order_id: Optional[StrictStr] = Field(default=None, description="unique id generated by cashfree for your order") + order_id: Optional[StrictStr] = Field(default=None, description="order_id sent during the api request") + entity: Optional[StrictStr] = Field(default=None, description="Type of the entity.") + order_currency: Optional[StrictStr] = Field(default=None, description="Currency of the order. Example INR") order_amount: Optional[Union[StrictFloat, StrictInt]] = None - order_status: Optional[StrictStr] = Field(None, description="Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. `TERMINATED`: Order terminated `TERMINATION_REQUESTED`: Order termination requested") + order_status: Optional[StrictStr] = Field(default=None, description="Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. `TERMINATED`: Order terminated `TERMINATION_REQUESTED`: Order termination requested") payment_session_id: Optional[StrictStr] = None order_expiry_time: Optional[datetime] = None - order_note: Optional[StrictStr] = Field(None, description="Additional note for order") - created_at: Optional[datetime] = Field(None, description="When the order was created at cashfree's server") - order_splits: Optional[conlist(VendorSplit)] = None + order_note: Optional[StrictStr] = Field(default=None, description="Additional note for order") + created_at: Optional[datetime] = Field(default=None, description="When the order was created at cashfree's server") + order_splits: Optional[List[VendorSplit]] = None customer_details: Optional[CustomerDetailsResponse] = None order_meta: Optional[OrderMeta] = None - order_tags: Optional[Dict[str, constr(strict=True, max_length=255, min_length=1)]] = Field(None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") + order_tags: Optional[Dict[str, Annotated[str, Field(min_length=1, strict=True, max_length=255)]]] = Field(default=None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") cart_details: Optional[CartDetailsEntity] = None __properties = ["cf_order_id", "order_id", "entity", "order_currency", "order_amount", "order_status", "payment_session_id", "order_expiry_time", "order_note", "created_at", "order_splits", "customer_details", "order_meta", "order_tags", "cart_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/order_extended_data_entity.py b/cashfree_pg/models/order_extended_data_entity.py index 75358bdf..35c5755f 100644 --- a/cashfree_pg/models/order_extended_data_entity.py +++ b/cashfree_pg/models/order_extended_data_entity.py @@ -1,41 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from datetime import datetime -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + + from cashfree_pg.models.address_details import AddressDetails from cashfree_pg.models.charges_entity import ChargesEntity from cashfree_pg.models.extended_cart_details import ExtendedCartDetails from cashfree_pg.models.extended_customer_details import ExtendedCustomerDetails from cashfree_pg.models.offer_extended_details import OfferExtendedDetails +from pydantic import field_validator class OrderExtendedDataEntity(BaseModel): """ The complete order extended data entity """ - cf_order_id: Optional[StrictStr] = Field(None, description="unique id generated by cashfree for your order") - order_id: Optional[StrictStr] = Field(None, description="order_id sent during the api request") + cf_order_id: Optional[StrictStr] = Field(default=None, description="unique id generated by cashfree for your order") + order_id: Optional[StrictStr] = Field(default=None, description="order_id sent during the api request") order_amount: Optional[Union[StrictFloat, StrictInt]] = None - order_currency: Optional[StrictStr] = Field(None, description="Currency of the order. Example INR") - created_at: Optional[datetime] = Field(None, description="When the order was created at cashfree's server") + order_currency: Optional[StrictStr] = Field(default=None, description="Currency of the order. Example INR") + created_at: Optional[datetime] = Field(default=None, description="When the order was created at cashfree's server") charges: Optional[ChargesEntity] = None customer_details: Optional[ExtendedCustomerDetails] = None shipping_address: Optional[AddressDetails] = None @@ -44,10 +44,12 @@ class OrderExtendedDataEntity(BaseModel): offer: Optional[OfferExtendedDetails] = None __properties = ["cf_order_id", "order_id", "order_amount", "order_currency", "created_at", "charges", "customer_details", "shipping_address", "billing_address", "cart", "offer"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/order_meta.py b/cashfree_pg/models/order_meta.py index bdb3b3d6..c3fb85c7 100644 --- a/cashfree_pg/models/order_meta.py +++ b/cashfree_pg/models/order_meta.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class OrderMeta(BaseModel): """ Optional meta details to control how the customer pays and how payment journey completes """ - return_url: Optional[StrictStr] = Field(None, description="The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. We suggest to keep context of order_id in your return_url so that you can identify the order when customer lands on your page. Example of return_url format could be https://www.cashfree.com/devstudio/thankyou") - notify_url: Optional[StrictStr] = Field(None, description="Notification URL for server-server communication. Useful when user's connection drops while re-directing. NotifyUrl should be an https URL. Maximum length: 250.") - payment_methods: Optional[Any] = Field(None, description="Allowed payment modes for this order. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\",\"nb\",\"upi\",\"paypal\",\"app\",\"paylater\",\"cardlessemi\",\"dcemi\",\"ccemi\",\"banktransfer\". Leave it blank to show all available payment methods") + return_url: Optional[StrictStr] = Field(default=None, description="The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. We suggest to keep context of order_id in your return_url so that you can identify the order when customer lands on your page. Example of return_url format could be https://www.cashfree.com/devstudio/thankyou") + notify_url: Optional[StrictStr] = Field(default=None, description="Notification URL for server-server communication. Useful when user's connection drops while re-directing. NotifyUrl should be an https URL. Maximum length: 250.") + payment_methods: Optional[Any] = Field(default=None, description="Allowed payment modes for this order. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\",\"nb\",\"upi\",\"paypal\",\"app\",\"paylater\",\"cardlessemi\",\"dcemi\",\"ccemi\",\"banktransfer\". Leave it blank to show all available payment methods") __properties = ["return_url", "notify_url", "payment_methods"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/order_pay_data.py b/cashfree_pg/models/order_pay_data.py index ac97e641..3c0342a1 100644 --- a/cashfree_pg/models/order_pay_data.py +++ b/cashfree_pg/models/order_pay_data.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class OrderPayData(BaseModel): """ @@ -32,10 +32,12 @@ class OrderPayData(BaseModel): method: Optional[StrictStr] = None __properties = ["url", "payload", "content_type", "method"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/pay_order_entity.py b/cashfree_pg/models/pay_order_entity.py index ada9fb38..3d68ae5a 100644 --- a/cashfree_pg/models/pay_order_entity.py +++ b/cashfree_pg/models/pay_order_entity.py @@ -1,41 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, validator + + from cashfree_pg.models.order_pay_data import OrderPayData +from pydantic import field_validator class PayOrderEntity(BaseModel): """ Order Pay response once you create a transaction for that order """ - payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="total amount payable") - cf_payment_id: Optional[StrictStr] = Field(None, description="Payment identifier created by Cashfree") - payment_method: Optional[StrictStr] = Field(None, description="One of [\"upi\", \"netbanking\", \"card\", \"app\", \"cardless_emi\", \"paylater\", \"banktransfer\"] ") - channel: Optional[StrictStr] = Field(None, description="One of [\"link\", \"collect\", \"qrcode\"]. In an older version we used to support different channels like 'gpay', 'phonepe' etc. However, we now support only the following channels - link, collect and qrcode. To process payments using gpay, you will have to provide channel as 'link' and provider as 'gpay'") - action: Optional[StrictStr] = Field(None, description="One of [\"link\", \"custom\", \"form\"]") + payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total amount payable") + cf_payment_id: Optional[StrictStr] = Field(default=None, description="Payment identifier created by Cashfree") + payment_method: Optional[StrictStr] = Field(default=None, description="One of [\"upi\", \"netbanking\", \"card\", \"app\", \"cardless_emi\", \"paylater\", \"banktransfer\"] ") + channel: Optional[StrictStr] = Field(default=None, description="One of [\"link\", \"collect\", \"qrcode\"]. In an older version we used to support different channels like 'gpay', 'phonepe' etc. However, we now support only the following channels - link, collect and qrcode. To process payments using gpay, you will have to provide channel as 'link' and provider as 'gpay'") + action: Optional[StrictStr] = Field(default=None, description="One of [\"link\", \"custom\", \"form\"]") data: Optional[OrderPayData] = None __properties = ["payment_amount", "cf_payment_id", "payment_method", "channel", "action", "data"] - @validator('payment_method') + @field_validator('payment_method') def payment_method_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -45,7 +45,7 @@ def payment_method_validate_enum(cls, value): raise ValueError("must be one of enum values ('netbanking', 'card', 'upi', 'app', 'cardless_emi', 'paylater', 'banktransfer')") return value - @validator('channel') + @field_validator('channel') def channel_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -55,7 +55,7 @@ def channel_validate_enum(cls, value): raise ValueError("must be one of enum values ('link', 'collect', 'qrcode', 'post')") return value - @validator('action') + @field_validator('action') def action_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -65,10 +65,12 @@ def action_validate_enum(cls, value): raise ValueError("must be one of enum values ('link', 'custom', 'form', 'post')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/pay_order_request.py b/cashfree_pg/models/pay_order_request.py index 8e2a4e23..8f384870 100644 --- a/cashfree_pg/models/pay_order_request.py +++ b/cashfree_pg/models/pay_order_request.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr + + from cashfree_pg.models.pay_order_request_payment_method import PayOrderRequestPaymentMethod +from pydantic import field_validator class PayOrderRequest(BaseModel): """ Complete object for the pay api that uses payment method objects """ - payment_session_id: StrictStr = Field(...) - payment_method: PayOrderRequestPaymentMethod = Field(...) + payment_session_id: StrictStr + payment_method: PayOrderRequestPaymentMethod save_instrument: Optional[StrictBool] = None - offer_id: Optional[StrictStr] = Field(None, description="This is required if any offers needs to be applied to the order.") + offer_id: Optional[StrictStr] = Field(default=None, description="This is required if any offers needs to be applied to the order.") __properties = ["payment_session_id", "payment_method", "save_instrument", "offer_id"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/pay_order_request_payment_method.py b/cashfree_pg/models/pay_order_request_payment_method.py index fe600a29..d7bc0386 100644 --- a/cashfree_pg/models/pay_order_request_payment_method.py +++ b/cashfree_pg/models/pay_order_request_payment_method.py @@ -1,26 +1,25 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations from inspect import getfullargspec import json import pprint import re # noqa: F401 -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator + + from cashfree_pg.models.app_payment_method import AppPaymentMethod from cashfree_pg.models.banktransfer_payment_method import BanktransferPaymentMethod from cashfree_pg.models.card_emi_payment_method import CardEMIPaymentMethod @@ -29,7 +28,7 @@ from cashfree_pg.models.net_banking_payment_method import NetBankingPaymentMethod from cashfree_pg.models.paylater_payment_method import PaylaterPaymentMethod from cashfree_pg.models.upi_payment_method import UPIPaymentMethod -from typing import Union, Any, List, TYPE_CHECKING +from typing import Union, Any, List, TYPE_CHECKING, Literal from pydantic import StrictStr, Field PAYORDERREQUESTPAYMENTMETHOD_ONE_OF_SCHEMAS = ["AppPaymentMethod", "BanktransferPaymentMethod", "CardEMIPaymentMethod", "CardPaymentMethod", "CardlessEMIPaymentMethod", "NetBankingPaymentMethod", "PaylaterPaymentMethod", "UPIPaymentMethod"] @@ -58,10 +57,12 @@ class PayOrderRequestPaymentMethod(BaseModel): actual_instance: Union[AppPaymentMethod, BanktransferPaymentMethod, CardEMIPaymentMethod, CardPaymentMethod, CardlessEMIPaymentMethod, NetBankingPaymentMethod, PaylaterPaymentMethod, UPIPaymentMethod] else: actual_instance: Any - one_of_schemas: List[str] = Field(PAYORDERREQUESTPAYMENTMETHOD_ONE_OF_SCHEMAS, const=True) + one_of_schemas: List[str] = Literal[PAYORDERREQUESTPAYMENTMETHOD_ONE_OF_SCHEMAS] - class Config: - validate_assignment = True + # Updated to Pydantic v2 + model_config = { + "validate_assignment": True + } def __init__(self, *args, **kwargs): if args: diff --git a/cashfree_pg/models/paylater.py b/cashfree_pg/models/paylater.py index 8a9cabe7..6c79883d 100644 --- a/cashfree_pg/models/paylater.py +++ b/cashfree_pg/models/paylater.py @@ -1,37 +1,37 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + +from pydantic import field_validator class Paylater(BaseModel): """ Paylater payment method """ - channel: Optional[StrictStr] = Field(None, description="The channel for cardless EMI is always `link`") - provider: Optional[StrictStr] = Field(None, description="One of [\"kotak\", \"flexipay\", \"zestmoney\", \"lazypay\", \"olapostpaid\",\"simpl\", \"freechargepaylater\"]. Please note that Flexipay is offered by HDFC bank") - phone: Optional[StrictStr] = Field(None, description="Customers phone number for this payment instrument. If the customer is not eligible you will receive a 400 error with type as 'invalid_request_error' and code as 'invalid_request_error'") + channel: Optional[StrictStr] = Field(default=None, description="The channel for cardless EMI is always `link`") + provider: Optional[StrictStr] = Field(default=None, description="One of [\"kotak\", \"flexipay\", \"zestmoney\", \"lazypay\", \"olapostpaid\",\"simpl\", \"freechargepaylater\"]. Please note that Flexipay is offered by HDFC bank") + phone: Optional[StrictStr] = Field(default=None, description="Customers phone number for this payment instrument. If the customer is not eligible you will receive a 400 error with type as 'invalid_request_error' and code as 'invalid_request_error'") __properties = ["channel", "provider", "phone"] - @validator('provider') + @field_validator('provider') def provider_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,10 +41,12 @@ def provider_validate_enum(cls, value): raise ValueError("must be one of enum values ('kotak', 'flexipay', 'zestmoney', 'lazypay', 'olapostpaid', 'simpl', 'freechargepaylater')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/paylater_entity.py b/cashfree_pg/models/paylater_entity.py index b8706970..5fdf1ec0 100644 --- a/cashfree_pg/models/paylater_entity.py +++ b/cashfree_pg/models/paylater_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class PaylaterEntity(BaseModel): """ @@ -29,10 +29,12 @@ class PaylaterEntity(BaseModel): payment_method: Optional[StrictStr] = None __properties = ["payment_method"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/paylater_offer.py b/cashfree_pg/models/paylater_offer.py index 5f40625d..26f184d3 100644 --- a/cashfree_pg/models/paylater_offer.py +++ b/cashfree_pg/models/paylater_offer.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class PaylaterOffer(BaseModel): """ @@ -29,10 +29,12 @@ class PaylaterOffer(BaseModel): provider: Optional[StrictStr] = None __properties = ["provider"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/paylater_payment_method.py b/cashfree_pg/models/paylater_payment_method.py index e8401205..5fb29242 100644 --- a/cashfree_pg/models/paylater_payment_method.py +++ b/cashfree_pg/models/paylater_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.paylater import Paylater +from pydantic import field_validator class PaylaterPaymentMethod(BaseModel): """ paylater payment method """ - paylater: Paylater = Field(...) + paylater: Paylater __properties = ["paylater"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_entity.py b/cashfree_pg/models/payment_entity.py index 58c0b538..6cfd1269 100644 --- a/cashfree_pg/models/payment_entity.py +++ b/cashfree_pg/models/payment_entity.py @@ -1,28 +1,28 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, validator + + from cashfree_pg.models.authorization_in_payments_entity import AuthorizationInPaymentsEntity from cashfree_pg.models.error_details_in_payments_entity import ErrorDetailsInPaymentsEntity +from pydantic import field_validator class PaymentEntity(BaseModel): """ @@ -33,13 +33,13 @@ class PaymentEntity(BaseModel): entity: Optional[StrictStr] = None error_details: Optional[ErrorDetailsInPaymentsEntity] = None is_captured: Optional[StrictBool] = None - order_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Order amount can be different from payment amount if you collect service fee from the customer") - payment_group: Optional[StrictStr] = Field(None, description="Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi']") + order_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Order amount can be different from payment amount if you collect service fee from the customer") + payment_group: Optional[StrictStr] = Field(default=None, description="Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi']") payment_currency: Optional[StrictStr] = None payment_amount: Optional[Union[StrictFloat, StrictInt]] = None - payment_time: Optional[StrictStr] = Field(None, description="This is the time when the payment was initiated") - payment_completion_time: Optional[StrictStr] = Field(None, description="This is the time when the payment reaches its terminal state") - payment_status: Optional[StrictStr] = Field(None, description="The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"]") + payment_time: Optional[StrictStr] = Field(default=None, description="This is the time when the payment was initiated") + payment_completion_time: Optional[StrictStr] = Field(default=None, description="This is the time when the payment reaches its terminal state") + payment_status: Optional[StrictStr] = Field(default=None, description="The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"]") payment_message: Optional[StrictStr] = None bank_reference: Optional[StrictStr] = None auth_id: Optional[StrictStr] = None @@ -47,7 +47,7 @@ class PaymentEntity(BaseModel): payment_method: Optional[Dict[str, Any]] = None __properties = ["cf_payment_id", "order_id", "entity", "error_details", "is_captured", "order_amount", "payment_group", "payment_currency", "payment_amount", "payment_time", "payment_completion_time", "payment_status", "payment_message", "bank_reference", "auth_id", "authorization", "payment_method"] - @validator('payment_status') + @field_validator('payment_status') def payment_status_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -57,10 +57,12 @@ def payment_status_validate_enum(cls, value): raise ValueError("must be one of enum values ('SUCCESS', 'NOT_ATTEMPTED', 'FAILED', 'USER_DROPPED', 'VOID', 'CANCELLED', 'PENDING')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_link_customer_details.py b/cashfree_pg/models/payment_link_customer_details.py index d2a1ad6a..cee37ff7 100644 --- a/cashfree_pg/models/payment_link_customer_details.py +++ b/cashfree_pg/models/payment_link_customer_details.py @@ -1,44 +1,46 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr + + +from pydantic import field_validator class PaymentLinkCustomerDetails(BaseModel): """ The customer details that are necessary. Note that you can pass dummy details if your use case does not require the customer details. """ - customer_id: Optional[constr(strict=True, max_length=50, min_length=3)] = Field(None, description="A unique identifier for the customer. Use alphanumeric values only.") - customer_email: Optional[constr(strict=True, max_length=100, min_length=3)] = Field(None, description="Customer email address.") - customer_phone: constr(strict=True, max_length=10, min_length=10) = Field(..., description="Customer phone number.") - customer_name: Optional[constr(strict=True, max_length=100, min_length=3)] = Field(None, description="Name of the customer.") - customer_bank_account_number: Optional[constr(strict=True, max_length=20, min_length=3)] = Field(None, description="Customer bank account. Required if you want to do a bank account check (TPV)") - customer_bank_ifsc: Optional[StrictStr] = Field(None, description="Customer bank IFSC. Required if you want to do a bank account check (TPV)") - customer_bank_code: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV)") + customer_id: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=50)]] = Field(default=None, description="A unique identifier for the customer. Use alphanumeric values only.") + customer_email: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=100)]] = Field(default=None, description="Customer email address.") + customer_phone: Annotated[str, Field(min_length=10, strict=True, max_length=10)] = Field(description="Customer phone number.") + customer_name: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=100)]] = Field(default=None, description="Name of the customer.") + customer_bank_account_number: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=20)]] = Field(default=None, description="Customer bank account. Required if you want to do a bank account check (TPV)") + customer_bank_ifsc: Optional[StrictStr] = Field(default=None, description="Customer bank IFSC. Required if you want to do a bank account check (TPV)") + customer_bank_code: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV)") __properties = ["customer_id", "customer_email", "customer_phone", "customer_name", "customer_bank_account_number", "customer_bank_ifsc", "customer_bank_code"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_link_order_entity.py b/cashfree_pg/models/payment_link_order_entity.py index 47ec90be..75434091 100644 --- a/cashfree_pg/models/payment_link_order_entity.py +++ b/cashfree_pg/models/payment_link_order_entity.py @@ -1,55 +1,57 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from datetime import datetime -from typing import Dict, List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, constr + + + from cashfree_pg.models.order_meta import OrderMeta from cashfree_pg.models.payment_link_customer_details import PaymentLinkCustomerDetails from cashfree_pg.models.vendor_split import VendorSplit +from pydantic import field_validator class PaymentLinkOrderEntity(BaseModel): """ The complete order entity """ - cf_order_id: Optional[StrictStr] = Field(None, description="unique id generated by cashfree for your order") - link_id: Optional[StrictStr] = Field(None, description="link id of the order") - order_id: Optional[StrictStr] = Field(None, description="order_id sent during the api request") - entity: Optional[StrictStr] = Field(None, description="Type of the entity.") - order_currency: Optional[StrictStr] = Field(None, description="Currency of the order. Example INR") + cf_order_id: Optional[StrictStr] = Field(default=None, description="unique id generated by cashfree for your order") + link_id: Optional[StrictStr] = Field(default=None, description="link id of the order") + order_id: Optional[StrictStr] = Field(default=None, description="order_id sent during the api request") + entity: Optional[StrictStr] = Field(default=None, description="Type of the entity.") + order_currency: Optional[StrictStr] = Field(default=None, description="Currency of the order. Example INR") order_amount: Optional[Union[StrictFloat, StrictInt]] = None - order_status: Optional[StrictStr] = Field(None, description="Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. ") + order_status: Optional[StrictStr] = Field(default=None, description="Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. ") payment_session_id: Optional[StrictStr] = None order_expiry_time: Optional[datetime] = None - order_note: Optional[StrictStr] = Field(None, description="Additional note for order") - created_at: Optional[datetime] = Field(None, description="When the order was created at cashfree's server") - order_splits: Optional[conlist(VendorSplit)] = None + order_note: Optional[StrictStr] = Field(default=None, description="Additional note for order") + created_at: Optional[datetime] = Field(default=None, description="When the order was created at cashfree's server") + order_splits: Optional[List[VendorSplit]] = None customer_details: Optional[PaymentLinkCustomerDetails] = None order_meta: Optional[OrderMeta] = None - order_tags: Optional[Dict[str, constr(strict=True, max_length=255, min_length=1)]] = Field(None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") + order_tags: Optional[Dict[str, Annotated[str, Field(min_length=1, strict=True, max_length=255)]]] = Field(default=None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") __properties = ["cf_order_id", "link_id", "order_id", "entity", "order_currency", "order_amount", "order_status", "payment_session_id", "order_expiry_time", "order_note", "created_at", "order_splits", "customer_details", "order_meta", "order_tags"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_app_in_payments_entity.py b/cashfree_pg/models/payment_method_app_in_payments_entity.py index a152f486..a54ff04e 100644 --- a/cashfree_pg/models/payment_method_app_in_payments_entity.py +++ b/cashfree_pg/models/payment_method_app_in_payments_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.payment_method_app_in_payments_entity_app import PaymentMethodAppInPaymentsEntityApp +from pydantic import field_validator class PaymentMethodAppInPaymentsEntity(BaseModel): """ @@ -30,10 +30,12 @@ class PaymentMethodAppInPaymentsEntity(BaseModel): app: Optional[PaymentMethodAppInPaymentsEntityApp] = None __properties = ["app"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_app_in_payments_entity_app.py b/cashfree_pg/models/payment_method_app_in_payments_entity_app.py index db9e183e..9c3b6d0f 100644 --- a/cashfree_pg/models/payment_method_app_in_payments_entity_app.py +++ b/cashfree_pg/models/payment_method_app_in_payments_entity_app.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class PaymentMethodAppInPaymentsEntityApp(BaseModel): """ @@ -31,10 +31,12 @@ class PaymentMethodAppInPaymentsEntityApp(BaseModel): phone: Optional[StrictStr] = None __properties = ["channel", "provider", "phone"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_bank_transfer_in_payments_entity.py b/cashfree_pg/models/payment_method_bank_transfer_in_payments_entity.py index 59b9196f..03367e50 100644 --- a/cashfree_pg/models/payment_method_bank_transfer_in_payments_entity.py +++ b/cashfree_pg/models/payment_method_bank_transfer_in_payments_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.payment_method_bank_transfer_in_payments_entity_banktransfer import PaymentMethodBankTransferInPaymentsEntityBanktransfer +from pydantic import field_validator class PaymentMethodBankTransferInPaymentsEntity(BaseModel): """ @@ -30,10 +30,12 @@ class PaymentMethodBankTransferInPaymentsEntity(BaseModel): banktransfer: Optional[PaymentMethodBankTransferInPaymentsEntityBanktransfer] = None __properties = ["banktransfer"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_bank_transfer_in_payments_entity_banktransfer.py b/cashfree_pg/models/payment_method_bank_transfer_in_payments_entity_banktransfer.py index 9254c8cc..165b3268 100644 --- a/cashfree_pg/models/payment_method_bank_transfer_in_payments_entity_banktransfer.py +++ b/cashfree_pg/models/payment_method_bank_transfer_in_payments_entity_banktransfer.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class PaymentMethodBankTransferInPaymentsEntityBanktransfer(BaseModel): """ @@ -32,10 +32,12 @@ class PaymentMethodBankTransferInPaymentsEntityBanktransfer(BaseModel): banktransfer_account_number: Optional[StrictStr] = None __properties = ["channel", "banktransfer_bank_name", "banktransfer_ifsc", "banktransfer_account_number"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_card_emiin_payments_entity.py b/cashfree_pg/models/payment_method_card_emiin_payments_entity.py index ab8cb57e..29b73619 100644 --- a/cashfree_pg/models/payment_method_card_emiin_payments_entity.py +++ b/cashfree_pg/models/payment_method_card_emiin_payments_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.payment_method_card_emiin_payments_entity_emi import PaymentMethodCardEMIInPaymentsEntityEmi +from pydantic import field_validator class PaymentMethodCardEMIInPaymentsEntity(BaseModel): """ @@ -30,10 +30,12 @@ class PaymentMethodCardEMIInPaymentsEntity(BaseModel): emi: Optional[PaymentMethodCardEMIInPaymentsEntityEmi] = None __properties = ["emi"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_card_emiin_payments_entity_emi.py b/cashfree_pg/models/payment_method_card_emiin_payments_entity_emi.py index e7e478b0..05c2a2dc 100644 --- a/cashfree_pg/models/payment_method_card_emiin_payments_entity_emi.py +++ b/cashfree_pg/models/payment_method_card_emiin_payments_entity_emi.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr + + from cashfree_pg.models.payment_method_card_emiin_payments_entity_emi_emi_details import PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails +from pydantic import field_validator class PaymentMethodCardEMIInPaymentsEntityEmi(BaseModel): """ @@ -38,10 +38,12 @@ class PaymentMethodCardEMIInPaymentsEntityEmi(BaseModel): emi_details: Optional[PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails] = None __properties = ["channel", "card_number", "card_network", "card_type", "card_country", "card_bank_name", "card_network_reference_id", "emi_tenure", "emi_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_card_emiin_payments_entity_emi_emi_details.py b/cashfree_pg/models/payment_method_card_emiin_payments_entity_emi_emi_details.py index fd43524e..8b6d71df 100644 --- a/cashfree_pg/models/payment_method_card_emiin_payments_entity_emi_emi_details.py +++ b/cashfree_pg/models/payment_method_card_emiin_payments_entity_emi_emi_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt + + +from pydantic import field_validator class PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails(BaseModel): """ @@ -31,10 +31,12 @@ class PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails(BaseModel): emi_interest: Optional[Union[StrictFloat, StrictInt]] = None __properties = ["emi_amount", "emi_tenure", "emi_interest"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_card_in_payments_entity.py b/cashfree_pg/models/payment_method_card_in_payments_entity.py index 68bf6fbe..056dd4e1 100644 --- a/cashfree_pg/models/payment_method_card_in_payments_entity.py +++ b/cashfree_pg/models/payment_method_card_in_payments_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.payment_method_card_in_payments_entity_card import PaymentMethodCardInPaymentsEntityCard +from pydantic import field_validator class PaymentMethodCardInPaymentsEntity(BaseModel): """ @@ -30,10 +30,12 @@ class PaymentMethodCardInPaymentsEntity(BaseModel): card: Optional[PaymentMethodCardInPaymentsEntityCard] = None __properties = ["card"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_card_in_payments_entity_card.py b/cashfree_pg/models/payment_method_card_in_payments_entity_card.py index 42e809a7..8ee620f7 100644 --- a/cashfree_pg/models/payment_method_card_in_payments_entity_card.py +++ b/cashfree_pg/models/payment_method_card_in_payments_entity_card.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class PaymentMethodCardInPaymentsEntityCard(BaseModel): """ @@ -35,10 +35,12 @@ class PaymentMethodCardInPaymentsEntityCard(BaseModel): card_network_reference_id: Optional[StrictStr] = None __properties = ["channel", "card_number", "card_network", "card_type", "card_country", "card_bank_name", "card_network_reference_id"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_cardless_emiin_payments_entity.py b/cashfree_pg/models/payment_method_cardless_emiin_payments_entity.py index da63483e..49c0552e 100644 --- a/cashfree_pg/models/payment_method_cardless_emiin_payments_entity.py +++ b/cashfree_pg/models/payment_method_cardless_emiin_payments_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.payment_method_app_in_payments_entity_app import PaymentMethodAppInPaymentsEntityApp +from pydantic import field_validator class PaymentMethodCardlessEMIInPaymentsEntity(BaseModel): """ @@ -30,10 +30,12 @@ class PaymentMethodCardlessEMIInPaymentsEntity(BaseModel): cardless_emi: Optional[PaymentMethodAppInPaymentsEntityApp] = None __properties = ["cardless_emi"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_net_banking_in_payments_entity.py b/cashfree_pg/models/payment_method_net_banking_in_payments_entity.py index af8ea54e..ca091041 100644 --- a/cashfree_pg/models/payment_method_net_banking_in_payments_entity.py +++ b/cashfree_pg/models/payment_method_net_banking_in_payments_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.payment_method_net_banking_in_payments_entity_netbanking import PaymentMethodNetBankingInPaymentsEntityNetbanking +from pydantic import field_validator class PaymentMethodNetBankingInPaymentsEntity(BaseModel): """ @@ -30,10 +30,12 @@ class PaymentMethodNetBankingInPaymentsEntity(BaseModel): netbanking: Optional[PaymentMethodNetBankingInPaymentsEntityNetbanking] = None __properties = ["netbanking"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_net_banking_in_payments_entity_netbanking.py b/cashfree_pg/models/payment_method_net_banking_in_payments_entity_netbanking.py index 5ec37c4e..472a8cae 100644 --- a/cashfree_pg/models/payment_method_net_banking_in_payments_entity_netbanking.py +++ b/cashfree_pg/models/payment_method_net_banking_in_payments_entity_netbanking.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictInt, StrictStr + + +from pydantic import field_validator class PaymentMethodNetBankingInPaymentsEntityNetbanking(BaseModel): """ @@ -33,10 +33,12 @@ class PaymentMethodNetBankingInPaymentsEntityNetbanking(BaseModel): netbanking_account_number: Optional[StrictStr] = None __properties = ["channel", "netbanking_bank_code", "netbanking_bank_name", "netbanking_ifsc", "netbanking_account_number"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_others_in_payments_entity.py b/cashfree_pg/models/payment_method_others_in_payments_entity.py index 103a0032..c62a25ef 100644 --- a/cashfree_pg/models/payment_method_others_in_payments_entity.py +++ b/cashfree_pg/models/payment_method_others_in_payments_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, Optional -from pydantic import BaseModel + + +from pydantic import field_validator class PaymentMethodOthersInPaymentsEntity(BaseModel): """ @@ -29,10 +29,12 @@ class PaymentMethodOthersInPaymentsEntity(BaseModel): others: Optional[Dict[str, Any]] = None __properties = ["others"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_paylater_in_payments_entity.py b/cashfree_pg/models/payment_method_paylater_in_payments_entity.py index 57361b9a..299b6290 100644 --- a/cashfree_pg/models/payment_method_paylater_in_payments_entity.py +++ b/cashfree_pg/models/payment_method_paylater_in_payments_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.payment_method_app_in_payments_entity_app import PaymentMethodAppInPaymentsEntityApp +from pydantic import field_validator class PaymentMethodPaylaterInPaymentsEntity(BaseModel): """ @@ -30,10 +30,12 @@ class PaymentMethodPaylaterInPaymentsEntity(BaseModel): paylater: Optional[PaymentMethodAppInPaymentsEntityApp] = None __properties = ["paylater"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_upiin_payments_entity.py b/cashfree_pg/models/payment_method_upiin_payments_entity.py index 986d70b7..e24d8093 100644 --- a/cashfree_pg/models/payment_method_upiin_payments_entity.py +++ b/cashfree_pg/models/payment_method_upiin_payments_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.payment_method_upiin_payments_entity_upi import PaymentMethodUPIInPaymentsEntityUpi +from pydantic import field_validator class PaymentMethodUPIInPaymentsEntity(BaseModel): """ @@ -30,10 +30,12 @@ class PaymentMethodUPIInPaymentsEntity(BaseModel): upi: Optional[PaymentMethodUPIInPaymentsEntityUpi] = None __properties = ["upi"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_method_upiin_payments_entity_upi.py b/cashfree_pg/models/payment_method_upiin_payments_entity_upi.py index afe73cbb..bba9ccd0 100644 --- a/cashfree_pg/models/payment_method_upiin_payments_entity_upi.py +++ b/cashfree_pg/models/payment_method_upiin_payments_entity_upi.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class PaymentMethodUPIInPaymentsEntityUpi(BaseModel): """ @@ -30,10 +30,12 @@ class PaymentMethodUPIInPaymentsEntityUpi(BaseModel): upi_id: Optional[StrictStr] = None __properties = ["channel", "upi_id"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_methods_filters.py b/cashfree_pg/models/payment_methods_filters.py index a4bc2ce3..0b9742d4 100644 --- a/cashfree_pg/models/payment_methods_filters.py +++ b/cashfree_pg/models/payment_methods_filters.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist + + +from pydantic import field_validator class PaymentMethodsFilters(BaseModel): """ Filter for Payment Methods """ - payment_methods: Optional[conlist(StrictStr)] = Field(None, description="Array of payment methods to be filtered. This is optional, by default all payment methods will be returned. Possible values in [ 'debit_card', 'credit_card', 'prepaid_card', 'corporate_credit_card', 'upi', 'wallet', 'netbanking', 'banktransfer', 'paylater', 'paypal', 'debit_card_emi', 'credit_card_emi', 'upi_credit_card', 'upi_ppi', 'cardless_emi', 'account_based_payment' ] ") + payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Array of payment methods to be filtered. This is optional, by default all payment methods will be returned. Possible values in [ 'debit_card', 'credit_card', 'prepaid_card', 'corporate_credit_card', 'upi', 'wallet', 'netbanking', 'banktransfer', 'paylater', 'paypal', 'debit_card_emi', 'credit_card_emi', 'upi_credit_card', 'upi_ppi', 'cardless_emi', 'account_based_payment' ] ") __properties = ["payment_methods"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_methods_queries.py b/cashfree_pg/models/payment_methods_queries.py index 0362e484..d94e70dd 100644 --- a/cashfree_pg/models/payment_methods_queries.py +++ b/cashfree_pg/models/payment_methods_queries.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, confloat, conint, constr + + +from pydantic import field_validator class PaymentMethodsQueries(BaseModel): """ Payment Method Query Object """ - amount: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = Field(None, description="Amount of the order.") - order_id: Optional[constr(strict=True, max_length=50, min_length=3)] = Field(None, description="OrderId of the order. Either of `order_id` or `order_amount` is mandatory.") + amount: Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]] = Field(default=None, description="Amount of the order.") + order_id: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=50)]] = Field(default=None, description="OrderId of the order. Either of `order_id` or `order_amount` is mandatory.") __properties = ["amount", "order_id"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_mode_details.py b/cashfree_pg/models/payment_mode_details.py index 0a013a6c..93a42e77 100644 --- a/cashfree_pg/models/payment_mode_details.py +++ b/cashfree_pg/models/payment_mode_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class PaymentModeDetails(BaseModel): """ @@ -32,10 +32,12 @@ class PaymentModeDetails(BaseModel): code: Optional[Union[StrictFloat, StrictInt]] = None __properties = ["nick", "display", "eligibility", "code"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_webhook.py b/cashfree_pg/models/payment_webhook.py index 781edc6d..2180e9a5 100644 --- a/cashfree_pg/models/payment_webhook.py +++ b/cashfree_pg/models/payment_webhook.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + from cashfree_pg.models.payment_webhook_data_entity import PaymentWebhookDataEntity +from pydantic import field_validator class PaymentWebhook(BaseModel): """ @@ -32,10 +32,12 @@ class PaymentWebhook(BaseModel): type: Optional[StrictStr] = None __properties = ["data", "event_time", "type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_webhook_customer_entity.py b/cashfree_pg/models/payment_webhook_customer_entity.py index 79c86832..c6558584 100644 --- a/cashfree_pg/models/payment_webhook_customer_entity.py +++ b/cashfree_pg/models/payment_webhook_customer_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class PaymentWebhookCustomerEntity(BaseModel): """ @@ -32,10 +32,12 @@ class PaymentWebhookCustomerEntity(BaseModel): customer_phone: Optional[StrictStr] = None __properties = ["customer_name", "customer_id", "customer_email", "customer_phone"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_webhook_data_entity.py b/cashfree_pg/models/payment_webhook_data_entity.py index cc4b5b9f..4305e27d 100644 --- a/cashfree_pg/models/payment_webhook_data_entity.py +++ b/cashfree_pg/models/payment_webhook_data_entity.py @@ -1,32 +1,32 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, conlist + + from cashfree_pg.models.offer_entity import OfferEntity from cashfree_pg.models.payment_entity import PaymentEntity from cashfree_pg.models.payment_webhook_customer_entity import PaymentWebhookCustomerEntity from cashfree_pg.models.payment_webhook_error_entity import PaymentWebhookErrorEntity from cashfree_pg.models.payment_webhook_gateway_details_entity import PaymentWebhookGatewayDetailsEntity from cashfree_pg.models.payment_webhook_order_entity import PaymentWebhookOrderEntity +from pydantic import field_validator class PaymentWebhookDataEntity(BaseModel): """ @@ -37,13 +37,15 @@ class PaymentWebhookDataEntity(BaseModel): customer_details: Optional[PaymentWebhookCustomerEntity] = None error_details: Optional[PaymentWebhookErrorEntity] = None payment_gateway_details: Optional[PaymentWebhookGatewayDetailsEntity] = None - payment_offers: Optional[conlist(OfferEntity)] = None + payment_offers: Optional[List[OfferEntity]] = None __properties = ["order", "payment", "customer_details", "error_details", "payment_gateway_details", "payment_offers"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_webhook_error_entity.py b/cashfree_pg/models/payment_webhook_error_entity.py index 545aabb0..596596f5 100644 --- a/cashfree_pg/models/payment_webhook_error_entity.py +++ b/cashfree_pg/models/payment_webhook_error_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class PaymentWebhookErrorEntity(BaseModel): """ @@ -34,10 +34,12 @@ class PaymentWebhookErrorEntity(BaseModel): error_description_raw: Optional[StrictStr] = None __properties = ["error_code", "error_description", "error_reason", "error_source", "error_code_raw", "error_description_raw"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_webhook_gateway_details_entity.py b/cashfree_pg/models/payment_webhook_gateway_details_entity.py index 20001060..8db65b88 100644 --- a/cashfree_pg/models/payment_webhook_gateway_details_entity.py +++ b/cashfree_pg/models/payment_webhook_gateway_details_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class PaymentWebhookGatewayDetailsEntity(BaseModel): """ @@ -33,10 +33,12 @@ class PaymentWebhookGatewayDetailsEntity(BaseModel): gateway_settlement: Optional[StrictStr] = None __properties = ["gateway_name", "gateway_order_id", "gateway_payment_id", "gateway_status_code", "gateway_settlement"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/payment_webhook_order_entity.py b/cashfree_pg/models/payment_webhook_order_entity.py index 250d5435..1c479a9d 100644 --- a/cashfree_pg/models/payment_webhook_order_entity.py +++ b/cashfree_pg/models/payment_webhook_order_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Dict, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr + + +from pydantic import field_validator class PaymentWebhookOrderEntity(BaseModel): """ @@ -29,13 +29,15 @@ class PaymentWebhookOrderEntity(BaseModel): order_id: Optional[StrictStr] = None order_amount: Optional[Union[StrictFloat, StrictInt]] = None order_currency: Optional[StrictStr] = None - order_tags: Optional[Dict[str, constr(strict=True, max_length=255, min_length=1)]] = Field(None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") + order_tags: Optional[Dict[str, Annotated[str, Field(min_length=1, strict=True, max_length=255)]]] = Field(default=None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") __properties = ["order_id", "order_amount", "order_currency", "order_tags"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/plan_entity.py b/cashfree_pg/models/plan_entity.py index c6bb5fdf..fe4852af 100644 --- a/cashfree_pg/models/plan_entity.py +++ b/cashfree_pg/models/plan_entity.py @@ -1,48 +1,50 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class PlanEntity(BaseModel): """ The response returned for Get, Create and Manage Plan APIs """ - plan_currency: Optional[StrictStr] = Field(None, description="Currency for the plan.") - plan_id: Optional[StrictStr] = Field(None, description="Plan ID provided by merchant.") - plan_interval_type: Optional[StrictStr] = Field(None, description="Interval type for the plan.") - plan_intervals: Optional[StrictInt] = Field(None, description="Number of intervals for the plan.") - plan_max_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Maximum amount for the plan.") - plan_max_cycles: Optional[StrictInt] = Field(None, description="Maximum number of payment cycles for the plan.") - plan_name: Optional[StrictStr] = Field(None, description="Name of the plan.") - plan_note: Optional[StrictStr] = Field(None, description="Note for the plan.") - plan_recurring_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Recurring amount for the plan.") - plan_status: Optional[StrictStr] = Field(None, description="Status of the plan.") - plan_type: Optional[StrictStr] = Field(None, description="Type of the plan.") + plan_currency: Optional[StrictStr] = Field(default=None, description="Currency for the plan.") + plan_id: Optional[StrictStr] = Field(default=None, description="Plan ID provided by merchant.") + plan_interval_type: Optional[StrictStr] = Field(default=None, description="Interval type for the plan.") + plan_intervals: Optional[StrictInt] = Field(default=None, description="Number of intervals for the plan.") + plan_max_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum amount for the plan.") + plan_max_cycles: Optional[StrictInt] = Field(default=None, description="Maximum number of payment cycles for the plan.") + plan_name: Optional[StrictStr] = Field(default=None, description="Name of the plan.") + plan_note: Optional[StrictStr] = Field(default=None, description="Note for the plan.") + plan_recurring_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Recurring amount for the plan.") + plan_status: Optional[StrictStr] = Field(default=None, description="Status of the plan.") + plan_type: Optional[StrictStr] = Field(default=None, description="Type of the plan.") __properties = ["plan_currency", "plan_id", "plan_interval_type", "plan_intervals", "plan_max_amount", "plan_max_cycles", "plan_name", "plan_note", "plan_recurring_amount", "plan_status", "plan_type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/rate_limit_error.py b/cashfree_pg/models/rate_limit_error.py index f8392b96..7db9ddea 100644 --- a/cashfree_pg/models/rate_limit_error.py +++ b/cashfree_pg/models/rate_limit_error.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator + + +from pydantic import field_validator class RateLimitError(BaseModel): """ @@ -28,10 +28,10 @@ class RateLimitError(BaseModel): """ message: Optional[StrictStr] = None code: Optional[StrictStr] = None - type: Optional[StrictStr] = Field(None, description="rate_limit_error") + type: Optional[StrictStr] = Field(default=None, description="rate_limit_error") __properties = ["message", "code", "type"] - @validator('type') + @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,10 +41,12 @@ def type_validate_enum(cls, value): raise ValueError("must be one of enum values ('rate_limit_error')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/recon_entity.py b/cashfree_pg/models/recon_entity.py index a7d4ecb0..c506d71b 100644 --- a/cashfree_pg/models/recon_entity.py +++ b/cashfree_pg/models/recon_entity.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist + + from cashfree_pg.models.recon_entity_data_inner import ReconEntityDataInner +from pydantic import field_validator class ReconEntity(BaseModel): """ Settlement detailed recon response """ - cursor: Optional[StrictStr] = Field(None, description="Specifies from where the next set of settlement details should be fetched.") - limit: Optional[StrictInt] = Field(None, description="Number of settlements you want to fetch in the next iteration.") - data: Optional[conlist(ReconEntityDataInner)] = None + cursor: Optional[StrictStr] = Field(default=None, description="Specifies from where the next set of settlement details should be fetched.") + limit: Optional[StrictInt] = Field(default=None, description="Number of settlements you want to fetch in the next iteration.") + data: Optional[List[ReconEntityDataInner]] = None __properties = ["cursor", "limit", "data"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/recon_entity_data_inner.py b/cashfree_pg/models/recon_entity_data_inner.py index e1ab50fb..6f0de5f3 100644 --- a/cashfree_pg/models/recon_entity_data_inner.py +++ b/cashfree_pg/models/recon_entity_data_inner.py @@ -1,84 +1,86 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class ReconEntityDataInner(BaseModel): """ ReconEntityDataInner """ - event_id: Optional[StrictStr] = Field(None, description="Unique ID associated with the event.") - event_type: Optional[StrictStr] = Field(None, description="The event type can be SETTLEMENT, PAYMENT, REFUND, REFUND_REVERSAL, DISPUTE, DISPUTE_REVERSAL, CHARGEBACK, CHARGEBACK_REVERSAL, OTHER_ADJUSTMENT.") - event_settlement_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Amount that is part of the settlement corresponding to the event.") - event_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Amount of the event. Example, refund amount, dispute amount, payment amount, etc.") - sale_type: Optional[StrictStr] = Field(None, description="Indicates if it is CREDIT/DEBIT sale.") - event_status: Optional[StrictStr] = Field(None, description="Status of the event. Example - SUCCESS, FAILED, PENDING, CANCELLED.") - entity: Optional[StrictStr] = Field(None, description="Recon") - event_time: Optional[StrictStr] = Field(None, description="Time associated with the event. Example, transaction time, dispute initiation time") - event_currency: Optional[StrictStr] = Field(None, description="Curreny type - INR.") - order_id: Optional[StrictStr] = Field(None, description="Unique order ID. Alphanumeric and only '-' and '_' allowed.") - order_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The amount which was passed at the order creation time.") - customer_phone: Optional[StrictStr] = Field(None, description="Customer phone number.") - customer_email: Optional[StrictStr] = Field(None, description="Customer email.") - customer_name: Optional[StrictStr] = Field(None, description="Customer name.") - payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Payment amount captured.") - payment_utr: Optional[StrictStr] = Field(None, description="Unique transaction reference number of the payment.") - payment_time: Optional[StrictStr] = Field(None, description="Date and time when the payment was initiated.") - payment_service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service charge applicable for the payment.") - payment_service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service tax applicable on the payment.") - cf_payment_id: Optional[StrictStr] = Field(None, description="Cashfree Payments unique ID to identify a payment.") - cf_settlement_id: Optional[StrictStr] = Field(None, description="Unique ID to identify the settlement.") - settlement_date: Optional[StrictStr] = Field(None, description="Date and time when the settlement was processed.") - settlement_utr: Optional[StrictStr] = Field(None, description="Unique transaction reference number of the settlement.") - split_service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service charge that is applicable for splitting the payment.") - split_service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service tax applicable for splitting the amount to vendors.") - vendor_commission: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Vendor commission applicable for this transaction.") - closed_in_favor_of: Optional[StrictStr] = Field(None, description="Specifies whether the dispute was closed in favor of the merchant or customer. /n Possible values - Merchant, Customer") - dispute_resolved_on: Optional[StrictStr] = Field(None, description="Date and time when the dispute was resolved.") - dispute_category: Optional[StrictStr] = Field(None, description="Category of the dispute - Dispute code and the reason for dispute is shown.") - dispute_note: Optional[StrictStr] = Field(None, description="Note regarding the dispute.") - refund_processed_at: Optional[StrictStr] = Field(None, description="Date and time when the refund was processed.") - refund_arn: Optional[StrictStr] = Field(None, description="The bank reference number for the refund.") - refund_note: Optional[StrictStr] = Field(None, description="A refund note for your reference.") - refund_id: Optional[StrictStr] = Field(None, description="An unique ID to associate the refund with.") - adjustment_remarks: Optional[StrictStr] = Field(None, description="Other adjustment remarks.") - adjustment: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Amount that is adjusted from the settlement amount because of any credit/debit event such as refund, refund_reverse etc.") - service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service tax applicable on the settlement amount.") - service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service charge applicable on the settlement amount.") - amount_settled: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Net amount that is settled after considering the adjustments, settlement charge and tax.") - payment_from: Optional[StrictStr] = Field(None, description="The start time of the time range of the payments considered for the settlement.") - payment_till: Optional[StrictStr] = Field(None, description="The end time of time range of the payments considered for the settlement.") - reason: Optional[StrictStr] = Field(None, description="Reason for settlement failure.") - settlement_initiated_on: Optional[StrictStr] = Field(None, description="Date and time when the settlement was initiated.") - settlement_type: Optional[StrictStr] = Field(None, description="Type of settlement. Possible values - Standard, Instant, On demand.") - settlement_charge: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Settlement charges applicable on the settlement.") - settlement_tax: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Settlement tax applicable on the settlement.") - remarks: Optional[StrictStr] = Field(None, description="Remarks on the settlement.") + event_id: Optional[StrictStr] = Field(default=None, description="Unique ID associated with the event.") + event_type: Optional[StrictStr] = Field(default=None, description="The event type can be SETTLEMENT, PAYMENT, REFUND, REFUND_REVERSAL, DISPUTE, DISPUTE_REVERSAL, CHARGEBACK, CHARGEBACK_REVERSAL, OTHER_ADJUSTMENT.") + event_settlement_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount that is part of the settlement corresponding to the event.") + event_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount of the event. Example, refund amount, dispute amount, payment amount, etc.") + sale_type: Optional[StrictStr] = Field(default=None, description="Indicates if it is CREDIT/DEBIT sale.") + event_status: Optional[StrictStr] = Field(default=None, description="Status of the event. Example - SUCCESS, FAILED, PENDING, CANCELLED.") + entity: Optional[StrictStr] = Field(default=None, description="Recon") + event_time: Optional[StrictStr] = Field(default=None, description="Time associated with the event. Example, transaction time, dispute initiation time") + event_currency: Optional[StrictStr] = Field(default=None, description="Curreny type - INR.") + order_id: Optional[StrictStr] = Field(default=None, description="Unique order ID. Alphanumeric and only '-' and '_' allowed.") + order_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The amount which was passed at the order creation time.") + customer_phone: Optional[StrictStr] = Field(default=None, description="Customer phone number.") + customer_email: Optional[StrictStr] = Field(default=None, description="Customer email.") + customer_name: Optional[StrictStr] = Field(default=None, description="Customer name.") + payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Payment amount captured.") + payment_utr: Optional[StrictStr] = Field(default=None, description="Unique transaction reference number of the payment.") + payment_time: Optional[StrictStr] = Field(default=None, description="Date and time when the payment was initiated.") + payment_service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service charge applicable for the payment.") + payment_service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service tax applicable on the payment.") + cf_payment_id: Optional[StrictStr] = Field(default=None, description="Cashfree Payments unique ID to identify a payment.") + cf_settlement_id: Optional[StrictStr] = Field(default=None, description="Unique ID to identify the settlement.") + settlement_date: Optional[StrictStr] = Field(default=None, description="Date and time when the settlement was processed.") + settlement_utr: Optional[StrictStr] = Field(default=None, description="Unique transaction reference number of the settlement.") + split_service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service charge that is applicable for splitting the payment.") + split_service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service tax applicable for splitting the amount to vendors.") + vendor_commission: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Vendor commission applicable for this transaction.") + closed_in_favor_of: Optional[StrictStr] = Field(default=None, description="Specifies whether the dispute was closed in favor of the merchant or customer. /n Possible values - Merchant, Customer") + dispute_resolved_on: Optional[StrictStr] = Field(default=None, description="Date and time when the dispute was resolved.") + dispute_category: Optional[StrictStr] = Field(default=None, description="Category of the dispute - Dispute code and the reason for dispute is shown.") + dispute_note: Optional[StrictStr] = Field(default=None, description="Note regarding the dispute.") + refund_processed_at: Optional[StrictStr] = Field(default=None, description="Date and time when the refund was processed.") + refund_arn: Optional[StrictStr] = Field(default=None, description="The bank reference number for the refund.") + refund_note: Optional[StrictStr] = Field(default=None, description="A refund note for your reference.") + refund_id: Optional[StrictStr] = Field(default=None, description="An unique ID to associate the refund with.") + adjustment_remarks: Optional[StrictStr] = Field(default=None, description="Other adjustment remarks.") + adjustment: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount that is adjusted from the settlement amount because of any credit/debit event such as refund, refund_reverse etc.") + service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service tax applicable on the settlement amount.") + service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service charge applicable on the settlement amount.") + amount_settled: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Net amount that is settled after considering the adjustments, settlement charge and tax.") + payment_from: Optional[StrictStr] = Field(default=None, description="The start time of the time range of the payments considered for the settlement.") + payment_till: Optional[StrictStr] = Field(default=None, description="The end time of time range of the payments considered for the settlement.") + reason: Optional[StrictStr] = Field(default=None, description="Reason for settlement failure.") + settlement_initiated_on: Optional[StrictStr] = Field(default=None, description="Date and time when the settlement was initiated.") + settlement_type: Optional[StrictStr] = Field(default=None, description="Type of settlement. Possible values - Standard, Instant, On demand.") + settlement_charge: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Settlement charges applicable on the settlement.") + settlement_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Settlement tax applicable on the settlement.") + remarks: Optional[StrictStr] = Field(default=None, description="Remarks on the settlement.") __properties = ["event_id", "event_type", "event_settlement_amount", "event_amount", "sale_type", "event_status", "entity", "event_time", "event_currency", "order_id", "order_amount", "customer_phone", "customer_email", "customer_name", "payment_amount", "payment_utr", "payment_time", "payment_service_charge", "payment_service_tax", "cf_payment_id", "cf_settlement_id", "settlement_date", "settlement_utr", "split_service_charge", "split_service_tax", "vendor_commission", "closed_in_favor_of", "dispute_resolved_on", "dispute_category", "dispute_note", "refund_processed_at", "refund_arn", "refund_note", "refund_id", "adjustment_remarks", "adjustment", "service_tax", "service_charge", "amount_settled", "payment_from", "payment_till", "reason", "settlement_initiated_on", "settlement_type", "settlement_charge", "settlement_tax", "remarks"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/refund_entity.py b/cashfree_pg/models/refund_entity.py index b1caee29..9d8f4530 100644 --- a/cashfree_pg/models/refund_entity.py +++ b/cashfree_pg/models/refund_entity.py @@ -1,55 +1,55 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, validator + + from cashfree_pg.models.refund_speed import RefundSpeed from cashfree_pg.models.vendor_split import VendorSplit +from pydantic import field_validator class RefundEntity(BaseModel): """ The refund entity """ - cf_payment_id: Optional[StrictStr] = Field(None, description="Cashfree Payments ID of the payment for which refund is initiated") - cf_refund_id: Optional[StrictStr] = Field(None, description="Cashfree Payments ID for a refund") - order_id: Optional[StrictStr] = Field(None, description="Merchant’s order Id of the order for which refund is initiated") - refund_id: Optional[StrictStr] = Field(None, description="Merchant’s refund ID of the refund") - entity: Optional[StrictStr] = Field(None, description="Type of object") - refund_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Amount that is refunded") - refund_currency: Optional[StrictStr] = Field(None, description="Currency of the refund amount") - refund_note: Optional[StrictStr] = Field(None, description="Note added by merchant for the refund") - refund_status: Optional[StrictStr] = Field(None, description="This can be one of [\"SUCCESS\", \"PENDING\", \"CANCELLED\", \"ONHOLD\", \"FAILED\"]") - refund_arn: Optional[StrictStr] = Field(None, description="The bank reference number for refund") - refund_charge: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Charges in INR for processing refund") - status_description: Optional[StrictStr] = Field(None, description="Description of refund status") - metadata: Optional[Dict[str, Any]] = Field(None, description="Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs") - refund_splits: Optional[conlist(VendorSplit)] = None - refund_type: Optional[StrictStr] = Field(None, description="This can be one of [\"PAYMENT_AUTO_REFUND\", \"MERCHANT_INITIATED\", \"UNRECONCILED_AUTO_REFUND\"]") - refund_mode: Optional[StrictStr] = Field(None, description="Method or speed of processing refund") - created_at: Optional[StrictStr] = Field(None, description="Time of refund creation") - processed_at: Optional[StrictStr] = Field(None, description="Time when refund was processed successfully") + cf_payment_id: Optional[StrictStr] = Field(default=None, description="Cashfree Payments ID of the payment for which refund is initiated") + cf_refund_id: Optional[StrictStr] = Field(default=None, description="Cashfree Payments ID for a refund") + order_id: Optional[StrictStr] = Field(default=None, description="Merchant’s order Id of the order for which refund is initiated") + refund_id: Optional[StrictStr] = Field(default=None, description="Merchant’s refund ID of the refund") + entity: Optional[StrictStr] = Field(default=None, description="Type of object") + refund_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount that is refunded") + refund_currency: Optional[StrictStr] = Field(default=None, description="Currency of the refund amount") + refund_note: Optional[StrictStr] = Field(default=None, description="Note added by merchant for the refund") + refund_status: Optional[StrictStr] = Field(default=None, description="This can be one of [\"SUCCESS\", \"PENDING\", \"CANCELLED\", \"ONHOLD\", \"FAILED\"]") + refund_arn: Optional[StrictStr] = Field(default=None, description="The bank reference number for refund") + refund_charge: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Charges in INR for processing refund") + status_description: Optional[StrictStr] = Field(default=None, description="Description of refund status") + metadata: Optional[Dict[str, Any]] = Field(default=None, description="Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs") + refund_splits: Optional[List[VendorSplit]] = None + refund_type: Optional[StrictStr] = Field(default=None, description="This can be one of [\"PAYMENT_AUTO_REFUND\", \"MERCHANT_INITIATED\", \"UNRECONCILED_AUTO_REFUND\"]") + refund_mode: Optional[StrictStr] = Field(default=None, description="Method or speed of processing refund") + created_at: Optional[StrictStr] = Field(default=None, description="Time of refund creation") + processed_at: Optional[StrictStr] = Field(default=None, description="Time when refund was processed successfully") refund_speed: Optional[RefundSpeed] = None __properties = ["cf_payment_id", "cf_refund_id", "order_id", "refund_id", "entity", "refund_amount", "refund_currency", "refund_note", "refund_status", "refund_arn", "refund_charge", "status_description", "metadata", "refund_splits", "refund_type", "refund_mode", "created_at", "processed_at", "refund_speed"] - @validator('entity') + @field_validator('entity') def entity_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -59,7 +59,7 @@ def entity_validate_enum(cls, value): raise ValueError("must be one of enum values ('refund')") return value - @validator('refund_status') + @field_validator('refund_status') def refund_status_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -69,7 +69,7 @@ def refund_status_validate_enum(cls, value): raise ValueError("must be one of enum values ('SUCCESS', 'PENDING', 'CANCELLED', 'ONHOLD')") return value - @validator('refund_type') + @field_validator('refund_type') def refund_type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -79,10 +79,12 @@ def refund_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('PAYMENT_AUTO_REFUND', 'MERCHANT_INITIATED', 'UNRECONCILED_AUTO_REFUND')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/refund_speed.py b/cashfree_pg/models/refund_speed.py index 78a98972..3311ca60 100644 --- a/cashfree_pg/models/refund_speed.py +++ b/cashfree_pg/models/refund_speed.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class RefundSpeed(BaseModel): """ How fast refund has to be proecessed """ - requested: Optional[StrictStr] = Field(None, description="Requested speed of refund.") - accepted: Optional[StrictStr] = Field(None, description="Accepted speed of refund.") - processed: Optional[StrictStr] = Field(None, description="Processed speed of refund.") - message: Optional[StrictStr] = Field(None, description="Error message, if any for refund_speed request") + requested: Optional[StrictStr] = Field(default=None, description="Requested speed of refund.") + accepted: Optional[StrictStr] = Field(default=None, description="Accepted speed of refund.") + processed: Optional[StrictStr] = Field(default=None, description="Processed speed of refund.") + message: Optional[StrictStr] = Field(default=None, description="Error message, if any for refund_speed request") __properties = ["requested", "accepted", "processed", "message"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/refund_webhook.py b/cashfree_pg/models/refund_webhook.py index b0c0a1da..1209c3f0 100644 --- a/cashfree_pg/models/refund_webhook.py +++ b/cashfree_pg/models/refund_webhook.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + from cashfree_pg.models.refund_webhook_data_entity import RefundWebhookDataEntity +from pydantic import field_validator class RefundWebhook(BaseModel): """ @@ -32,10 +32,12 @@ class RefundWebhook(BaseModel): type: Optional[StrictStr] = None __properties = ["data", "event_time", "type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/refund_webhook_data_entity.py b/cashfree_pg/models/refund_webhook_data_entity.py index 54ff707d..824cb7d6 100644 --- a/cashfree_pg/models/refund_webhook_data_entity.py +++ b/cashfree_pg/models/refund_webhook_data_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.refund_entity import RefundEntity +from pydantic import field_validator class RefundWebhookDataEntity(BaseModel): """ @@ -30,10 +30,12 @@ class RefundWebhookDataEntity(BaseModel): refund: Optional[RefundEntity] = None __properties = ["refund"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/saved_instrument_meta.py b/cashfree_pg/models/saved_instrument_meta.py index 42c92145..2421a387 100644 --- a/cashfree_pg/models/saved_instrument_meta.py +++ b/cashfree_pg/models/saved_instrument_meta.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class SavedInstrumentMeta(BaseModel): """ Card instrument meta information """ - card_network: Optional[StrictStr] = Field(None, description="card scheme/network of the saved card. Example visa, mastercard") - card_bank_name: Optional[StrictStr] = Field(None, description="Issuing bank name of saved card") - card_country: Optional[StrictStr] = Field(None, description="Issuing country of saved card") - card_type: Optional[StrictStr] = Field(None, description="Type of saved card") + card_network: Optional[StrictStr] = Field(default=None, description="card scheme/network of the saved card. Example visa, mastercard") + card_bank_name: Optional[StrictStr] = Field(default=None, description="Issuing bank name of saved card") + card_country: Optional[StrictStr] = Field(default=None, description="Issuing country of saved card") + card_type: Optional[StrictStr] = Field(default=None, description="Type of saved card") card_token_details: Optional[Dict[str, Any]] = None __properties = ["card_network", "card_bank_name", "card_country", "card_type", "card_token_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/schedule_option.py b/cashfree_pg/models/schedule_option.py index 39a5152f..12f94472 100644 --- a/cashfree_pg/models/schedule_option.py +++ b/cashfree_pg/models/schedule_option.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class ScheduleOption(BaseModel): """ @@ -31,10 +31,12 @@ class ScheduleOption(BaseModel): merchant_default: Optional[StrictBool] = None __properties = ["settlement_schedule_message", "schedule_id", "merchant_default"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/settlement_entity.py b/cashfree_pg/models/settlement_entity.py index a123cb09..2495725d 100644 --- a/cashfree_pg/models/settlement_entity.py +++ b/cashfree_pg/models/settlement_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class SettlementEntity(BaseModel): """ @@ -42,10 +42,12 @@ class SettlementEntity(BaseModel): transfer_utr: Optional[StrictStr] = None __properties = ["cf_payment_id", "cf_settlement_id", "settlement_currency", "order_id", "entity", "order_amount", "payment_time", "service_charge", "service_tax", "settlement_amount", "settlement_id", "transfer_id", "transfer_time", "transfer_utr"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/settlement_fetch_recon_request.py b/cashfree_pg/models/settlement_fetch_recon_request.py index 81b79572..1321cca4 100644 --- a/cashfree_pg/models/settlement_fetch_recon_request.py +++ b/cashfree_pg/models/settlement_fetch_recon_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,22 +19,25 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.fetch_settlements_request_filters import FetchSettlementsRequestFilters from cashfree_pg.models.fetch_settlements_request_pagination import FetchSettlementsRequestPagination +from pydantic import field_validator class SettlementFetchReconRequest(BaseModel): """ Recon Request Object """ - pagination: FetchSettlementsRequestPagination = Field(...) - filters: FetchSettlementsRequestFilters = Field(...) + pagination: FetchSettlementsRequestPagination + filters: FetchSettlementsRequestFilters __properties = ["pagination", "filters"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/settlement_recon_entity.py b/cashfree_pg/models/settlement_recon_entity.py index 6cfe69bf..e4f205ad 100644 --- a/cashfree_pg/models/settlement_recon_entity.py +++ b/cashfree_pg/models/settlement_recon_entity.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist + + from cashfree_pg.models.settlement_recon_entity_data_inner import SettlementReconEntityDataInner +from pydantic import field_validator class SettlementReconEntity(BaseModel): """ Recon object for settlement """ - cursor: Optional[StrictStr] = Field(None, description="Specifies from where the next set of settlement details should be fetched.") - limit: Optional[StrictInt] = Field(None, description="Number of settlements you want to fetch in the next iteration.") - data: Optional[conlist(SettlementReconEntityDataInner)] = None + cursor: Optional[StrictStr] = Field(default=None, description="Specifies from where the next set of settlement details should be fetched.") + limit: Optional[StrictInt] = Field(default=None, description="Number of settlements you want to fetch in the next iteration.") + data: Optional[List[SettlementReconEntityDataInner]] = None __properties = ["cursor", "limit", "data"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/settlement_recon_entity_data_inner.py b/cashfree_pg/models/settlement_recon_entity_data_inner.py index 4f38ebc7..ad71a432 100644 --- a/cashfree_pg/models/settlement_recon_entity_data_inner.py +++ b/cashfree_pg/models/settlement_recon_entity_data_inner.py @@ -1,72 +1,74 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class SettlementReconEntityDataInner(BaseModel): """ SettlementReconEntityDataInner """ - event_id: Optional[StrictStr] = Field(None, description="Unique ID associated with the event.") - event_type: Optional[StrictStr] = Field(None, description="The event type can be PAYMENT, REFUND, REFUND_REVERSAL, DISPUTE, DISPUTE_REVERSAL, CHARGEBACK, CHARGEBACK_REVERSAL, OTHER_ADJUSTMENT.") - event_settlement_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Amount that is part of the settlement corresponding to the event.") - event_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Amount corresponding to the event. Example, refund amount, dispute amount, payment amount, etc.") - sale_type: Optional[StrictStr] = Field(None, description="Indicates if it is CREDIT/DEBIT sale.") - event_status: Optional[StrictStr] = Field(None, description="Status of the event. Example - SUCCESS, FAILED, PENDING, CANCELLED.") - entity: Optional[StrictStr] = Field(None, description="Recon") - event_time: Optional[StrictStr] = Field(None, description="Time associated with the event. Example, transaction time, dispute initiation time") - event_currency: Optional[StrictStr] = Field(None, description="Curreny type - INR.") - order_id: Optional[StrictStr] = Field(None, description="Unique order ID. Alphanumeric and only '-' and '_' allowed.") - order_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The amount which was passed at the order creation time.") - customer_phone: Optional[StrictStr] = Field(None, description="Customer phone number.") - customer_email: Optional[StrictStr] = Field(None, description="Customer email.") - customer_name: Optional[StrictStr] = Field(None, description="Customer name.") - payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Payment amount captured.") - payment_utr: Optional[StrictStr] = Field(None, description="Unique transaction reference number of the payment.") - payment_time: Optional[StrictStr] = Field(None, description="Date and time when the payment was initiated.") - payment_service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service charge applicable for the payment.") - payment_service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service tax applicable on the payment.") - cf_payment_id: Optional[StrictStr] = Field(None, description="Cashfree Payments unique ID to identify a payment.") - cf_settlement_id: Optional[StrictStr] = Field(None, description="Unique ID to identify the settlement.") - settlement_date: Optional[StrictStr] = Field(None, description="Date and time when the settlement was processed.") - settlement_utr: Optional[StrictStr] = Field(None, description="Unique transaction reference number of the settlement.") - split_service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service charge that is applicable for splitting the payment.") - split_service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service tax applicable for splitting the amount to vendors.") - vendor_commission: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Vendor commission applicable for this transaction.") - closed_in_favor_of: Optional[StrictStr] = Field(None, description="Specifies whether the dispute was closed in favor of the merchant or customer. Possible values - Merchant, Customer.") - dispute_resolved_on: Optional[StrictStr] = Field(None, description="Date and time when the dispute was resolved.") - dispute_category: Optional[StrictStr] = Field(None, description="Category of the dispute - Dispute code and the reason for dispute is shown.") - dispute_note: Optional[StrictStr] = Field(None, description="Note regarding the dispute.") - refund_processed_at: Optional[StrictStr] = Field(None, description="Date and time when the refund was processed.") - refund_arn: Optional[StrictStr] = Field(None, description="The bank reference number for refund.") - refund_note: Optional[StrictStr] = Field(None, description="A refund note for your reference.") - refund_id: Optional[StrictStr] = Field(None, description="An unique ID associated with the refund.") - adjustment_remarks: Optional[StrictStr] = Field(None, description="Other adjustment remarks.") + event_id: Optional[StrictStr] = Field(default=None, description="Unique ID associated with the event.") + event_type: Optional[StrictStr] = Field(default=None, description="The event type can be PAYMENT, REFUND, REFUND_REVERSAL, DISPUTE, DISPUTE_REVERSAL, CHARGEBACK, CHARGEBACK_REVERSAL, OTHER_ADJUSTMENT.") + event_settlement_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount that is part of the settlement corresponding to the event.") + event_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount corresponding to the event. Example, refund amount, dispute amount, payment amount, etc.") + sale_type: Optional[StrictStr] = Field(default=None, description="Indicates if it is CREDIT/DEBIT sale.") + event_status: Optional[StrictStr] = Field(default=None, description="Status of the event. Example - SUCCESS, FAILED, PENDING, CANCELLED.") + entity: Optional[StrictStr] = Field(default=None, description="Recon") + event_time: Optional[StrictStr] = Field(default=None, description="Time associated with the event. Example, transaction time, dispute initiation time") + event_currency: Optional[StrictStr] = Field(default=None, description="Curreny type - INR.") + order_id: Optional[StrictStr] = Field(default=None, description="Unique order ID. Alphanumeric and only '-' and '_' allowed.") + order_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The amount which was passed at the order creation time.") + customer_phone: Optional[StrictStr] = Field(default=None, description="Customer phone number.") + customer_email: Optional[StrictStr] = Field(default=None, description="Customer email.") + customer_name: Optional[StrictStr] = Field(default=None, description="Customer name.") + payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Payment amount captured.") + payment_utr: Optional[StrictStr] = Field(default=None, description="Unique transaction reference number of the payment.") + payment_time: Optional[StrictStr] = Field(default=None, description="Date and time when the payment was initiated.") + payment_service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service charge applicable for the payment.") + payment_service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service tax applicable on the payment.") + cf_payment_id: Optional[StrictStr] = Field(default=None, description="Cashfree Payments unique ID to identify a payment.") + cf_settlement_id: Optional[StrictStr] = Field(default=None, description="Unique ID to identify the settlement.") + settlement_date: Optional[StrictStr] = Field(default=None, description="Date and time when the settlement was processed.") + settlement_utr: Optional[StrictStr] = Field(default=None, description="Unique transaction reference number of the settlement.") + split_service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service charge that is applicable for splitting the payment.") + split_service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service tax applicable for splitting the amount to vendors.") + vendor_commission: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Vendor commission applicable for this transaction.") + closed_in_favor_of: Optional[StrictStr] = Field(default=None, description="Specifies whether the dispute was closed in favor of the merchant or customer. Possible values - Merchant, Customer.") + dispute_resolved_on: Optional[StrictStr] = Field(default=None, description="Date and time when the dispute was resolved.") + dispute_category: Optional[StrictStr] = Field(default=None, description="Category of the dispute - Dispute code and the reason for dispute is shown.") + dispute_note: Optional[StrictStr] = Field(default=None, description="Note regarding the dispute.") + refund_processed_at: Optional[StrictStr] = Field(default=None, description="Date and time when the refund was processed.") + refund_arn: Optional[StrictStr] = Field(default=None, description="The bank reference number for refund.") + refund_note: Optional[StrictStr] = Field(default=None, description="A refund note for your reference.") + refund_id: Optional[StrictStr] = Field(default=None, description="An unique ID associated with the refund.") + adjustment_remarks: Optional[StrictStr] = Field(default=None, description="Other adjustment remarks.") __properties = ["event_id", "event_type", "event_settlement_amount", "event_amount", "sale_type", "event_status", "entity", "event_time", "event_currency", "order_id", "order_amount", "customer_phone", "customer_email", "customer_name", "payment_amount", "payment_utr", "payment_time", "payment_service_charge", "payment_service_tax", "cf_payment_id", "cf_settlement_id", "settlement_date", "settlement_utr", "split_service_charge", "split_service_tax", "vendor_commission", "closed_in_favor_of", "dispute_resolved_on", "dispute_category", "dispute_note", "refund_processed_at", "refund_arn", "refund_note", "refund_id", "adjustment_remarks"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/settlement_webhook.py b/cashfree_pg/models/settlement_webhook.py index ba4dc6a0..8227d5a1 100644 --- a/cashfree_pg/models/settlement_webhook.py +++ b/cashfree_pg/models/settlement_webhook.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + from cashfree_pg.models.settlement_webhook_data_entity import SettlementWebhookDataEntity +from pydantic import field_validator class SettlementWebhook(BaseModel): """ @@ -32,10 +32,12 @@ class SettlementWebhook(BaseModel): type: Optional[StrictStr] = None __properties = ["data", "event_time", "type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/settlement_webhook_data_entity.py b/cashfree_pg/models/settlement_webhook_data_entity.py index aeb86384..3cb8de0f 100644 --- a/cashfree_pg/models/settlement_webhook_data_entity.py +++ b/cashfree_pg/models/settlement_webhook_data_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel + + from cashfree_pg.models.settlement_entity import SettlementEntity +from pydantic import field_validator class SettlementWebhookDataEntity(BaseModel): """ @@ -30,10 +30,12 @@ class SettlementWebhookDataEntity(BaseModel): settlement: Optional[SettlementEntity] = None __properties = ["settlement"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/shipment_details.py b/cashfree_pg/models/shipment_details.py index 7dc10de3..44694de9 100644 --- a/cashfree_pg/models/shipment_details.py +++ b/cashfree_pg/models/shipment_details.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist + + +from pydantic import field_validator class ShipmentDetails(BaseModel): """ Shipment details associated with shipping of order like tracking company, tracking number,tracking urls etc. """ - tracking_company: StrictStr = Field(..., description="Tracking company name associated with order.") - tracking_urls: conlist(StrictStr) = Field(..., description="Tracking Urls associated with order.") - tracking_numbers: conlist(StrictStr) = Field(..., description="Tracking Numbers associated with order.") + tracking_company: StrictStr = Field(description="Tracking company name associated with order.") + tracking_urls: List[StrictStr] = Field(description="Tracking Urls associated with order.") + tracking_numbers: List[StrictStr] = Field(description="Tracking Numbers associated with order.") __properties = ["tracking_company", "tracking_urls", "tracking_numbers"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/simulate_request.py b/cashfree_pg/models/simulate_request.py index 3b304ba1..f1894547 100644 --- a/cashfree_pg/models/simulate_request.py +++ b/cashfree_pg/models/simulate_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,29 +19,32 @@ -from pydantic import BaseModel, Field, StrictStr, validator + from cashfree_pg.models.entity_simulation_request import EntitySimulationRequest +from pydantic import field_validator class SimulateRequest(BaseModel): """ simulate payment request object """ - entity: StrictStr = Field(..., description="Entity type should be PAYMENTS or SUBS_PAYMENTS only.") - entity_id: StrictStr = Field(..., description="If the entity type is PAYMENTS, the entity_id will be the transactionId. If the entity type is SUBS_PAYMENTS, the entity_id will be the merchantTxnId") - entity_simulation: EntitySimulationRequest = Field(...) + entity: StrictStr = Field(description="Entity type should be PAYMENTS or SUBS_PAYMENTS only.") + entity_id: StrictStr = Field(description="If the entity type is PAYMENTS, the entity_id will be the transactionId. If the entity type is SUBS_PAYMENTS, the entity_id will be the merchantTxnId") + entity_simulation: EntitySimulationRequest __properties = ["entity", "entity_id", "entity_simulation"] - @validator('entity') + @field_validator('entity') def entity_validate_enum(cls, value): """Validates the enum""" if value not in ('PAYMENTS', 'SUBS_PAYMENTS'): raise ValueError("must be one of enum values ('PAYMENTS', 'SUBS_PAYMENTS')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/simulation_response.py b/cashfree_pg/models/simulation_response.py index 1da72a89..208700e9 100644 --- a/cashfree_pg/models/simulation_response.py +++ b/cashfree_pg/models/simulation_response.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + from cashfree_pg.models.entity_simulation_response import EntitySimulationResponse +from pydantic import field_validator class SimulationResponse(BaseModel): """ @@ -33,10 +33,12 @@ class SimulationResponse(BaseModel): entity_simulation: Optional[EntitySimulationResponse] = None __properties = ["simulation_id", "entity", "entity_id", "entity_simulation"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/soundbox_vpa_entity.py b/cashfree_pg/models/soundbox_vpa_entity.py index 333f2400..abef90ec 100644 --- a/cashfree_pg/models/soundbox_vpa_entity.py +++ b/cashfree_pg/models/soundbox_vpa_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class SoundboxVpaEntity(BaseModel): """ @@ -33,10 +33,12 @@ class SoundboxVpaEntity(BaseModel): language: Optional[StrictStr] = None __properties = ["vpa", "cf_terminal_id", "device_serial_no", "merchant_name", "language"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/split_after_payment_request.py b/cashfree_pg/models/split_after_payment_request.py index 64f1c271..dcbd4839 100644 --- a/cashfree_pg/models/split_after_payment_request.py +++ b/cashfree_pg/models/split_after_payment_request.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, conlist + + from cashfree_pg.models.split_after_payment_request_split_inner import SplitAfterPaymentRequestSplitInner +from pydantic import field_validator class SplitAfterPaymentRequest(BaseModel): """ Split After Payment Request """ - split: conlist(SplitAfterPaymentRequestSplitInner) = Field(..., description="Specify the vendors order split details.") - disable_split: Optional[StrictBool] = Field(None, description="Specify if you want to end the split or continue creating further splits in future.") + split: List[SplitAfterPaymentRequestSplitInner] = Field(description="Specify the vendors order split details.") + disable_split: Optional[StrictBool] = Field(default=None, description="Specify if you want to end the split or continue creating further splits in future.") __properties = ["split", "disable_split"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/split_after_payment_request_split_inner.py b/cashfree_pg/models/split_after_payment_request_split_inner.py index 273d8bf8..f5f0dc66 100644 --- a/cashfree_pg/models/split_after_payment_request_split_inner.py +++ b/cashfree_pg/models/split_after_payment_request_split_inner.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Dict, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr + + +from pydantic import field_validator class SplitAfterPaymentRequestSplitInner(BaseModel): """ SplitAfterPaymentRequestSplitInner """ - vendor_id: Optional[StrictStr] = Field(None, description="Specify the merchant vendor ID to split the payment.") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Specify the amount to be split to the vendor.") - percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Specify the percentage of amount to be split.") - tags: Optional[Dict[str, constr(strict=True, max_length=255, min_length=1)]] = Field(None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") + vendor_id: Optional[StrictStr] = Field(default=None, description="Specify the merchant vendor ID to split the payment.") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Specify the amount to be split to the vendor.") + percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Specify the percentage of amount to be split.") + tags: Optional[Dict[str, Annotated[str, Field(min_length=1, strict=True, max_length=255)]]] = Field(default=None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") __properties = ["vendor_id", "amount", "percentage", "tags"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/split_after_payment_response.py b/cashfree_pg/models/split_after_payment_response.py index 0f40ae07..acd90049 100644 --- a/cashfree_pg/models/split_after_payment_response.py +++ b/cashfree_pg/models/split_after_payment_response.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class SplitAfterPaymentResponse(BaseModel): """ @@ -30,10 +30,12 @@ class SplitAfterPaymentResponse(BaseModel): message: Optional[StrictStr] = None __properties = ["status", "message"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/split_order_recon_success_response.py b/cashfree_pg/models/split_order_recon_success_response.py index 8b24a2d4..30a9f989 100644 --- a/cashfree_pg/models/split_order_recon_success_response.py +++ b/cashfree_pg/models/split_order_recon_success_response.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, List, Optional -from pydantic import BaseModel, Field, conlist + + from cashfree_pg.models.split_order_recon_success_response_settlement import SplitOrderReconSuccessResponseSettlement from cashfree_pg.models.split_order_recon_success_response_vendors_inner import SplitOrderReconSuccessResponseVendorsInner +from pydantic import field_validator class SplitOrderReconSuccessResponse(BaseModel): """ Split Order Reconciliation Request Body """ settlement: Optional[SplitOrderReconSuccessResponseSettlement] = None - refunds: Optional[conlist(Dict[str, Any])] = Field(None, description="List of refunds associated with the order, if any.") - vendors: Optional[conlist(SplitOrderReconSuccessResponseVendorsInner)] = Field(None, description="List of vendor settlements associated with the split settlement.") + refunds: Optional[List[Dict[str, Any]]] = Field(default=None, description="List of refunds associated with the order, if any.") + vendors: Optional[List[SplitOrderReconSuccessResponseVendorsInner]] = Field(default=None, description="List of vendor settlements associated with the split settlement.") __properties = ["settlement", "refunds", "vendors"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/split_order_recon_success_response_settlement.py b/cashfree_pg/models/split_order_recon_success_response_settlement.py index b5ab5b83..36878105 100644 --- a/cashfree_pg/models/split_order_recon_success_response_settlement.py +++ b/cashfree_pg/models/split_order_recon_success_response_settlement.py @@ -1,51 +1,53 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class SplitOrderReconSuccessResponseSettlement(BaseModel): """ Details of the settlement information. """ - entity: Optional[StrictStr] = Field(None, description="Type of entity. Example: \"settlement\".") - cf_settlement_id: Optional[StrictInt] = Field(None, description="Unique Cashfree settlement ID.") - cf_payment_id: Optional[StrictInt] = Field(None, description="Unique Cashfree payment ID associated with the order.") - order_id: Optional[StrictStr] = Field(None, description="Unique identifier for the order.") - order_currency: Optional[StrictStr] = Field(None, description="Currency of the order. Example: \"INR\".") - transfer_id: Optional[StrictStr] = Field(None, description="Unique transfer ID if available, otherwise null.") - order_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Total amount of the order.") - service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service charge for the order.") - service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Service tax for the order.") - settlement_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Amount to be settled after charges and tax.") - settlement_currency: Optional[StrictStr] = Field(None, description="Currency of the settlement. Example: \"INR\".") - transfer_utr: Optional[StrictStr] = Field(None, description="UTR (Unique Transaction Reference) for the transfer if available, otherwise null.") - transfer_time: Optional[StrictStr] = Field(None, description="Time of transfer if available, otherwise null.") - payment_time: Optional[StrictStr] = Field(None, description="Timestamp when payment was made.") + entity: Optional[StrictStr] = Field(default=None, description="Type of entity. Example: \"settlement\".") + cf_settlement_id: Optional[StrictInt] = Field(default=None, description="Unique Cashfree settlement ID.") + cf_payment_id: Optional[StrictInt] = Field(default=None, description="Unique Cashfree payment ID associated with the order.") + order_id: Optional[StrictStr] = Field(default=None, description="Unique identifier for the order.") + order_currency: Optional[StrictStr] = Field(default=None, description="Currency of the order. Example: \"INR\".") + transfer_id: Optional[StrictStr] = Field(default=None, description="Unique transfer ID if available, otherwise null.") + order_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total amount of the order.") + service_charge: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service charge for the order.") + service_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Service tax for the order.") + settlement_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount to be settled after charges and tax.") + settlement_currency: Optional[StrictStr] = Field(default=None, description="Currency of the settlement. Example: \"INR\".") + transfer_utr: Optional[StrictStr] = Field(default=None, description="UTR (Unique Transaction Reference) for the transfer if available, otherwise null.") + transfer_time: Optional[StrictStr] = Field(default=None, description="Time of transfer if available, otherwise null.") + payment_time: Optional[StrictStr] = Field(default=None, description="Timestamp when payment was made.") __properties = ["entity", "cf_settlement_id", "cf_payment_id", "order_id", "order_currency", "transfer_id", "order_amount", "service_charge", "service_tax", "settlement_amount", "settlement_currency", "transfer_utr", "transfer_time", "payment_time"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/split_order_recon_success_response_vendors_inner.py b/cashfree_pg/models/split_order_recon_success_response_vendors_inner.py index 82c0eb98..06eaaf15 100644 --- a/cashfree_pg/models/split_order_recon_success_response_vendors_inner.py +++ b/cashfree_pg/models/split_order_recon_success_response_vendors_inner.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from datetime import datetime -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + + +from pydantic import field_validator class SplitOrderReconSuccessResponseVendorsInner(BaseModel): """ SplitOrderReconSuccessResponseVendorsInner """ - vendor_id: Optional[StrictStr] = Field(None, description="Unique identifier for the vendor.") - settlement_id: Optional[StrictInt] = Field(None, description="Settlement ID associated with the vendor.") - settlement_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Settlement amount allocated to the vendor.") - settlement_eligibility_date: Optional[datetime] = Field(None, description="Date and time when the vendor is eligible for the settlement.") + vendor_id: Optional[StrictStr] = Field(default=None, description="Unique identifier for the vendor.") + settlement_id: Optional[StrictInt] = Field(default=None, description="Settlement ID associated with the vendor.") + settlement_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Settlement amount allocated to the vendor.") + settlement_eligibility_date: Optional[datetime] = Field(default=None, description="Date and time when the vendor is eligible for the settlement.") __properties = ["vendor_id", "settlement_id", "settlement_amount", "settlement_eligibility_date"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/static_qr_response_entity.py b/cashfree_pg/models/static_qr_response_entity.py index 69da7c45..d597b4e9 100644 --- a/cashfree_pg/models/static_qr_response_entity.py +++ b/cashfree_pg/models/static_qr_response_entity.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr + + +from pydantic import field_validator class StaticQrResponseEntity(BaseModel): """ StaticQrResponseEntity """ - cf_terminal_id: Optional[StrictInt] = Field(None, description="cashfree terminal id") - vpa: Optional[StrictStr] = Field(None, description="Virtual Address") - status: Optional[StrictStr] = Field(None, description="Status of vpa") - qr_code: Optional[StrictStr] = Field(None, alias="qrCode", description="qrcode") + cf_terminal_id: Optional[StrictInt] = Field(default=None, description="cashfree terminal id") + vpa: Optional[StrictStr] = Field(default=None, description="Virtual Address") + status: Optional[StrictStr] = Field(default=None, description="Status of vpa") + qr_code: Optional[StrictStr] = Field(default=None, description="qrcode", alias="qrCode") __properties = ["cf_terminal_id", "vpa", "status", "qrCode"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/static_split_request.py b/cashfree_pg/models/static_split_request.py index d59c6a57..ddb67b5f 100644 --- a/cashfree_pg/models/static_split_request.py +++ b/cashfree_pg/models/static_split_request.py @@ -1,43 +1,45 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist + + from cashfree_pg.models.static_split_request_scheme_inner import StaticSplitRequestSchemeInner +from pydantic import field_validator class StaticSplitRequest(BaseModel): """ Static Split Request """ - active: StrictBool = Field(..., description="Specify if the split is to be active or not. Possible values: true/false") - terminal_id: Optional[StrictStr] = Field(None, description="For Subscription payments, the subscription reference ID is to be shared as the terminal ID. Incase for Payment Gateway terminal ID is non-mandatory. Mention as 0 if not applicable.") - terminal_reference_id: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="You can share additional information using the reference ID.") - product_type: StrictStr = Field(..., description="Specify the product for which the split should be created. If you want split to be created for Payment Gateway pass value as \"PG\". If you want split to be created for Subscription, pass value as \"SBC\". Accepted values - \"STATIC_QR\", \"SBC\", \"PG\", \"EPOS\".") - scheme: conlist(StaticSplitRequestSchemeInner) = Field(..., description="Provide the split scheme details.") + active: StrictBool = Field(description="Specify if the split is to be active or not. Possible values: true/false") + terminal_id: Optional[StrictStr] = Field(default=None, description="For Subscription payments, the subscription reference ID is to be shared as the terminal ID. Incase for Payment Gateway terminal ID is non-mandatory. Mention as 0 if not applicable.") + terminal_reference_id: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="You can share additional information using the reference ID.") + product_type: StrictStr = Field(description="Specify the product for which the split should be created. If you want split to be created for Payment Gateway pass value as \"PG\". If you want split to be created for Subscription, pass value as \"SBC\". Accepted values - \"STATIC_QR\", \"SBC\", \"PG\", \"EPOS\".") + scheme: List[StaticSplitRequestSchemeInner] = Field(description="Provide the split scheme details.") __properties = ["active", "terminal_id", "terminal_reference_id", "product_type", "scheme"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/static_split_request_scheme_inner.py b/cashfree_pg/models/static_split_request_scheme_inner.py index df89ab42..c5f289c0 100644 --- a/cashfree_pg/models/static_split_request_scheme_inner.py +++ b/cashfree_pg/models/static_split_request_scheme_inner.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class StaticSplitRequestSchemeInner(BaseModel): """ StaticSplitRequestSchemeInner """ - merchant_vendor_id: Optional[StrictStr] = Field(None, alias="merchantVendorId", description="Specify the merchant vendor ID to create the split scheme for the payment.") - percentage: Optional[StrictStr] = Field(None, description="Specify the percentage of amount to be split.") + merchant_vendor_id: Optional[StrictStr] = Field(default=None, description="Specify the merchant vendor ID to create the split scheme for the payment.", alias="merchantVendorId") + percentage: Optional[StrictStr] = Field(default=None, description="Specify the percentage of amount to be split.") __properties = ["merchantVendorId", "percentage"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/static_split_response.py b/cashfree_pg/models/static_split_response.py index fbb1053f..358aebc7 100644 --- a/cashfree_pg/models/static_split_response.py +++ b/cashfree_pg/models/static_split_response.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr, conlist + + from cashfree_pg.models.static_split_response_scheme_inner import StaticSplitResponseSchemeInner +from pydantic import field_validator class StaticSplitResponse(BaseModel): """ @@ -31,14 +31,16 @@ class StaticSplitResponse(BaseModel): terminal_id: Optional[StrictStr] = None terminal_reference_id: Optional[Union[StrictFloat, StrictInt]] = None product_type: Optional[StrictStr] = None - scheme: Optional[conlist(StaticSplitResponseSchemeInner)] = None + scheme: Optional[List[StaticSplitResponseSchemeInner]] = None added_on: Optional[StrictStr] = None __properties = ["active", "terminal_id", "terminal_reference_id", "product_type", "scheme", "added_on"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/static_split_response_scheme_inner.py b/cashfree_pg/models/static_split_response_scheme_inner.py index ac878c20..9392c829 100644 --- a/cashfree_pg/models/static_split_response_scheme_inner.py +++ b/cashfree_pg/models/static_split_response_scheme_inner.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class StaticSplitResponseSchemeInner(BaseModel): """ StaticSplitResponseSchemeInner """ - merchant_vendor_id: Optional[StrictStr] = Field(None, alias="merchantVendorId") + merchant_vendor_id: Optional[StrictStr] = Field(default=None, alias="merchantVendorId") percentage: Optional[StrictStr] = None __properties = ["merchantVendorId", "percentage"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_bank_details.py b/cashfree_pg/models/subscription_bank_details.py index 3588703c..662d8d54 100644 --- a/cashfree_pg/models/subscription_bank_details.py +++ b/cashfree_pg/models/subscription_bank_details.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist + + +from pydantic import field_validator class SubscriptionBankDetails(BaseModel): """ Bank details object """ - bank_id: Optional[StrictStr] = Field(None, description="ID of the bank.") - bank_name: Optional[StrictStr] = Field(None, description="Name of the bank.") - account_auth_modes: Optional[conlist(StrictStr)] = Field(None, description="List of account authentication modes supported by the bank. (e.g. DEBIT_CARD, NET_BANKING, AADHAAR)") + bank_id: Optional[StrictStr] = Field(default=None, description="ID of the bank.") + bank_name: Optional[StrictStr] = Field(default=None, description="Name of the bank.") + account_auth_modes: Optional[List[StrictStr]] = Field(default=None, description="List of account authentication modes supported by the bank. (e.g. DEBIT_CARD, NET_BANKING, AADHAAR)") __properties = ["bank_id", "bank_name", "account_auth_modes"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_customer_details.py b/cashfree_pg/models/subscription_customer_details.py index 8f8525fd..e2e89cb2 100644 --- a/cashfree_pg/models/subscription_customer_details.py +++ b/cashfree_pg/models/subscription_customer_details.py @@ -1,45 +1,47 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class SubscriptionCustomerDetails(BaseModel): """ Subscription customer details. """ - customer_name: Optional[StrictStr] = Field(None, description="Name of the customer.") - customer_email: StrictStr = Field(..., description="Email of the customer.") - customer_phone: StrictStr = Field(..., description="Phone number of the customer.") - customer_bank_account_holder_name: Optional[StrictStr] = Field(None, description="Bank holder name of the customer.") - customer_bank_account_number: Optional[StrictStr] = Field(None, description="Bank account number of the customer.") - customer_bank_ifsc: Optional[StrictStr] = Field(None, description="IFSC code of the customer.") - customer_bank_code: Optional[StrictStr] = Field(None, description="Bank code of the customer. Refer to https://www.npci.org.in/PDF/nach/live-members-e-mandates/Live-Banks-in-API-E-Mandate.pdf") - customer_bank_account_type: Optional[StrictStr] = Field(None, description="Bank account type of the customer.") + customer_name: Optional[StrictStr] = Field(default=None, description="Name of the customer.") + customer_email: StrictStr = Field(description="Email of the customer.") + customer_phone: StrictStr = Field(description="Phone number of the customer.") + customer_bank_account_holder_name: Optional[StrictStr] = Field(default=None, description="Bank holder name of the customer.") + customer_bank_account_number: Optional[StrictStr] = Field(default=None, description="Bank account number of the customer.") + customer_bank_ifsc: Optional[StrictStr] = Field(default=None, description="IFSC code of the customer.") + customer_bank_code: Optional[StrictStr] = Field(default=None, description="Bank code of the customer. Refer to https://www.npci.org.in/PDF/nach/live-members-e-mandates/Live-Banks-in-API-E-Mandate.pdf") + customer_bank_account_type: Optional[StrictStr] = Field(default=None, description="Bank account type of the customer.") __properties = ["customer_name", "customer_email", "customer_phone", "customer_bank_account_holder_name", "customer_bank_account_number", "customer_bank_ifsc", "customer_bank_code", "customer_bank_account_type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_eligibility_request.py b/cashfree_pg/models/subscription_eligibility_request.py index 617f24eb..a014a814 100644 --- a/cashfree_pg/models/subscription_eligibility_request.py +++ b/cashfree_pg/models/subscription_eligibility_request.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field + + from cashfree_pg.models.subscription_eligibility_request_filters import SubscriptionEligibilityRequestFilters from cashfree_pg.models.subscription_eligibility_request_queries import SubscriptionEligibilityRequestQueries +from pydantic import field_validator class SubscriptionEligibilityRequest(BaseModel): """ Request body to fetch subscription eligibile payment method details. """ - queries: SubscriptionEligibilityRequestQueries = Field(...) + queries: SubscriptionEligibilityRequestQueries filters: Optional[SubscriptionEligibilityRequestFilters] = None __properties = ["queries", "filters"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_eligibility_request_filters.py b/cashfree_pg/models/subscription_eligibility_request_filters.py index 0f994916..7d847a45 100644 --- a/cashfree_pg/models/subscription_eligibility_request_filters.py +++ b/cashfree_pg/models/subscription_eligibility_request_filters.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist + + +from pydantic import field_validator class SubscriptionEligibilityRequestFilters(BaseModel): """ Filters to refine eligible payment method selection. """ - payment_methods: Optional[conlist(StrictStr)] = Field(None, description="Possbile values in array - enach, pnach, upi, card.") + payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Possbile values in array - enach, pnach, upi, card.") __properties = ["payment_methods"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_eligibility_request_queries.py b/cashfree_pg/models/subscription_eligibility_request_queries.py index 7c85fe10..9fcfb29c 100644 --- a/cashfree_pg/models/subscription_eligibility_request_queries.py +++ b/cashfree_pg/models/subscription_eligibility_request_queries.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,19 +19,22 @@ -from pydantic import BaseModel, Field, StrictStr + +from pydantic import field_validator class SubscriptionEligibilityRequestQueries(BaseModel): """ Necessary parameters to fetch eligible payment methods. """ - subscription_id: StrictStr = Field(..., description="A unique ID passed by merchant for identifying the subscription") + subscription_id: StrictStr = Field(description="A unique ID passed by merchant for identifying the subscription") __properties = ["subscription_id"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_eligibility_response.py b/cashfree_pg/models/subscription_eligibility_response.py index 8150e055..5e13602c 100644 --- a/cashfree_pg/models/subscription_eligibility_response.py +++ b/cashfree_pg/models/subscription_eligibility_response.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, conlist + + from cashfree_pg.models.eligibility_method_item import EligibilityMethodItem +from pydantic import field_validator class SubscriptionEligibilityResponse(BaseModel): """ Subscrition eligibility API response """ - type: Optional[conlist(EligibilityMethodItem)] = Field(None, description="List of eligibile payment methods for the subscription.") + type: Optional[List[EligibilityMethodItem]] = Field(default=None, description="List of eligibile payment methods for the subscription.") __properties = ["type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_entity.py b/cashfree_pg/models/subscription_entity.py index 54d2338d..f97cb1f4 100644 --- a/cashfree_pg/models/subscription_entity.py +++ b/cashfree_pg/models/subscription_entity.py @@ -1,55 +1,57 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist + + from cashfree_pg.models.authorization_details import AuthorizationDetails from cashfree_pg.models.plan_entity import PlanEntity from cashfree_pg.models.subscription_customer_details import SubscriptionCustomerDetails from cashfree_pg.models.subscription_entity_subscription_meta import SubscriptionEntitySubscriptionMeta from cashfree_pg.models.subscription_payment_split_item import SubscriptionPaymentSplitItem +from pydantic import field_validator class SubscriptionEntity(BaseModel): """ The response returned for Get, Create or Manage Subscription APIs. """ authorisation_details: Optional[AuthorizationDetails] = None - cf_subscription_id: Optional[StrictStr] = Field(None, description="Cashfree subscription reference number") + cf_subscription_id: Optional[StrictStr] = Field(default=None, description="Cashfree subscription reference number") customer_details: Optional[SubscriptionCustomerDetails] = None plan_details: Optional[PlanEntity] = None - subscription_expiry_time: Optional[StrictStr] = Field(None, description="Time at which the subscription will expire.") - subscription_first_charge_time: Optional[StrictStr] = Field(None, description="Time at which the first charge will be made for the subscription. Applicable only for PERIODIC plans.") - subscription_id: Optional[StrictStr] = Field(None, description="A unique ID passed by merchant for identifying the subscription.") + subscription_expiry_time: Optional[StrictStr] = Field(default=None, description="Time at which the subscription will expire.") + subscription_first_charge_time: Optional[StrictStr] = Field(default=None, description="Time at which the first charge will be made for the subscription. Applicable only for PERIODIC plans.") + subscription_id: Optional[StrictStr] = Field(default=None, description="A unique ID passed by merchant for identifying the subscription.") subscription_meta: Optional[SubscriptionEntitySubscriptionMeta] = None - subscription_note: Optional[StrictStr] = Field(None, description="Note for the subscription.") - subscription_session_id: Optional[StrictStr] = Field(None, description="Subscription Session Id.") - subscription_payment_splits: Optional[conlist(SubscriptionPaymentSplitItem)] = Field(None, description="Payment splits for the subscription.") - subscription_status: Optional[StrictStr] = Field(None, description="Status of the subscription.") - subscription_tags: Optional[Dict[str, Any]] = Field(None, description="Tags for the subscription.") + subscription_note: Optional[StrictStr] = Field(default=None, description="Note for the subscription.") + subscription_session_id: Optional[StrictStr] = Field(default=None, description="Subscription Session Id.") + subscription_payment_splits: Optional[List[SubscriptionPaymentSplitItem]] = Field(default=None, description="Payment splits for the subscription.") + subscription_status: Optional[StrictStr] = Field(default=None, description="Status of the subscription.") + subscription_tags: Optional[Dict[str, Any]] = Field(default=None, description="Tags for the subscription.") __properties = ["authorisation_details", "cf_subscription_id", "customer_details", "plan_details", "subscription_expiry_time", "subscription_first_charge_time", "subscription_id", "subscription_meta", "subscription_note", "subscription_session_id", "subscription_payment_splits", "subscription_status", "subscription_tags"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_entity_subscription_meta.py b/cashfree_pg/models/subscription_entity_subscription_meta.py index 0751e1a2..c9823c17 100644 --- a/cashfree_pg/models/subscription_entity_subscription_meta.py +++ b/cashfree_pg/models/subscription_entity_subscription_meta.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class SubscriptionEntitySubscriptionMeta(BaseModel): """ Subscription metadata. """ - return_url: Optional[StrictStr] = Field(None, description="Return URL for the subscription.") + return_url: Optional[StrictStr] = Field(default=None, description="Return URL for the subscription.") __properties = ["return_url"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_payment_entity.py b/cashfree_pg/models/subscription_payment_entity.py index 28eabdfb..cd4645cc 100644 --- a/cashfree_pg/models/subscription_payment_entity.py +++ b/cashfree_pg/models/subscription_payment_entity.py @@ -1,54 +1,56 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + from cashfree_pg.models.authorization_details import AuthorizationDetails from cashfree_pg.models.subscription_payment_entity_failure_details import SubscriptionPaymentEntityFailureDetails +from pydantic import field_validator class SubscriptionPaymentEntity(BaseModel): """ The response returned in Get, Create or Manage Subscription Payment APIs. """ authorization_details: Optional[AuthorizationDetails] = None - cf_payment_id: Optional[StrictStr] = Field(None, description="Cashfree subscription payment reference number") - cf_subscription_id: Optional[StrictStr] = Field(None, description="Cashfree subscription reference number") - cf_txn_id: Optional[StrictStr] = Field(None, description="Cashfree subscription payment transaction ID") - cf_order_id: Optional[StrictStr] = Field(None, description="Cashfree subscription payment order ID") + cf_payment_id: Optional[StrictStr] = Field(default=None, description="Cashfree subscription payment reference number") + cf_subscription_id: Optional[StrictStr] = Field(default=None, description="Cashfree subscription reference number") + cf_txn_id: Optional[StrictStr] = Field(default=None, description="Cashfree subscription payment transaction ID") + cf_order_id: Optional[StrictStr] = Field(default=None, description="Cashfree subscription payment order ID") failure_details: Optional[SubscriptionPaymentEntityFailureDetails] = None - payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The charge amount of the payment.") - payment_id: Optional[StrictStr] = Field(None, description="A unique ID passed by merchant for identifying the transaction.") - payment_initiated_date: Optional[StrictStr] = Field(None, description="The date on which the payment was initiated.") - payment_remarks: Optional[StrictStr] = Field(None, description="Payment remarks.") - payment_schedule_date: Optional[StrictStr] = Field(None, description="The date on which the payment is scheduled to be processed.") - payment_status: Optional[StrictStr] = Field(None, description="Status of the payment.") - payment_type: Optional[StrictStr] = Field(None, description="Payment type. Can be AUTH or CHARGE.") - retry_attempts: Optional[StrictInt] = Field(None, description="Retry attempts.") - subscription_id: Optional[StrictStr] = Field(None, description="A unique ID passed by merchant for identifying the subscription.") + payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The charge amount of the payment.") + payment_id: Optional[StrictStr] = Field(default=None, description="A unique ID passed by merchant for identifying the transaction.") + payment_initiated_date: Optional[StrictStr] = Field(default=None, description="The date on which the payment was initiated.") + payment_remarks: Optional[StrictStr] = Field(default=None, description="Payment remarks.") + payment_schedule_date: Optional[StrictStr] = Field(default=None, description="The date on which the payment is scheduled to be processed.") + payment_status: Optional[StrictStr] = Field(default=None, description="Status of the payment.") + payment_type: Optional[StrictStr] = Field(default=None, description="Payment type. Can be AUTH or CHARGE.") + retry_attempts: Optional[StrictInt] = Field(default=None, description="Retry attempts.") + subscription_id: Optional[StrictStr] = Field(default=None, description="A unique ID passed by merchant for identifying the subscription.") __properties = ["authorization_details", "cf_payment_id", "cf_subscription_id", "cf_txn_id", "cf_order_id", "failure_details", "payment_amount", "payment_id", "payment_initiated_date", "payment_remarks", "payment_schedule_date", "payment_status", "payment_type", "retry_attempts", "subscription_id"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_payment_entity_failure_details.py b/cashfree_pg/models/subscription_payment_entity_failure_details.py index a112d1b7..ac50827a 100644 --- a/cashfree_pg/models/subscription_payment_entity_failure_details.py +++ b/cashfree_pg/models/subscription_payment_entity_failure_details.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class SubscriptionPaymentEntityFailureDetails(BaseModel): """ SubscriptionPaymentEntityFailureDetails """ - failure_reason: Optional[StrictStr] = Field(None, description="Failure reason of the payment if the payment_status is failed.") + failure_reason: Optional[StrictStr] = Field(default=None, description="Failure reason of the payment if the payment_status is failed.") __properties = ["failure_reason"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_payment_refund_entity.py b/cashfree_pg/models/subscription_payment_refund_entity.py index 127b5497..0651aa62 100644 --- a/cashfree_pg/models/subscription_payment_refund_entity.py +++ b/cashfree_pg/models/subscription_payment_refund_entity.py @@ -1,45 +1,47 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class SubscriptionPaymentRefundEntity(BaseModel): """ Get/Create Subscription Payment Refund Response """ - payment_id: Optional[StrictStr] = Field(None, description="A unique ID passed by merchant for identifying the transaction.") - cf_payment_id: Optional[StrictStr] = Field(None, description="Cashfree subscription payment reference number.") - refund_id: Optional[StrictStr] = Field(None, description="A unique ID passed by merchant for identifying the refund.") - cf_refund_id: Optional[StrictStr] = Field(None, description="Cashfree subscription payment refund reference number.") - refund_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The refund amount.") - refund_note: Optional[StrictStr] = Field(None, description="Refund note.") - refund_speed: Optional[StrictStr] = Field(None, description="Refund speed. Can be INSTANT or NORMAL.") - refund_status: Optional[StrictStr] = Field(None, description="Status of the refund.") + payment_id: Optional[StrictStr] = Field(default=None, description="A unique ID passed by merchant for identifying the transaction.") + cf_payment_id: Optional[StrictStr] = Field(default=None, description="Cashfree subscription payment reference number.") + refund_id: Optional[StrictStr] = Field(default=None, description="A unique ID passed by merchant for identifying the refund.") + cf_refund_id: Optional[StrictStr] = Field(default=None, description="Cashfree subscription payment refund reference number.") + refund_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The refund amount.") + refund_note: Optional[StrictStr] = Field(default=None, description="Refund note.") + refund_speed: Optional[StrictStr] = Field(default=None, description="Refund speed. Can be INSTANT or NORMAL.") + refund_status: Optional[StrictStr] = Field(default=None, description="Status of the refund.") __properties = ["payment_id", "cf_payment_id", "refund_id", "cf_refund_id", "refund_amount", "refund_note", "refund_speed", "refund_status"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/subscription_payment_split_item.py b/cashfree_pg/models/subscription_payment_split_item.py index bc4417cf..6ef8f4eb 100644 --- a/cashfree_pg/models/subscription_payment_split_item.py +++ b/cashfree_pg/models/subscription_payment_split_item.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class SubscriptionPaymentSplitItem(BaseModel): """ Subscription Payment Split Item """ - vendor_id: Optional[StrictStr] = Field(None, description="Vendor ID") - percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Percentage of the payment to be split to vendor") + vendor_id: Optional[StrictStr] = Field(default=None, description="Vendor ID") + percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Percentage of the payment to be split to vendor") __properties = ["vendor_id", "percentage"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/terminal_details.py b/cashfree_pg/models/terminal_details.py index f3828e12..9e0787f8 100644 --- a/cashfree_pg/models/terminal_details.py +++ b/cashfree_pg/models/terminal_details.py @@ -1,47 +1,49 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr + + +from pydantic import field_validator class TerminalDetails(BaseModel): """ Use this if you are creating an order for cashfree's softPOS """ - added_on: Optional[StrictStr] = Field(None, description="date time at which terminal is added") - cf_terminal_id: Optional[StrictStr] = Field(None, description="cashfree terminal id") - last_updated_on: Optional[StrictStr] = Field(None, description="last instant when this terminal was updated") - terminal_address: Optional[StrictStr] = Field(None, description="location of terminal") - terminal_id: Optional[constr(strict=True, max_length=100, min_length=3)] = Field(None, description="terminal id for merchant reference") - terminal_name: Optional[StrictStr] = Field(None, description="name of terminal/agent/storefront") - terminal_note: Optional[StrictStr] = Field(None, description="note given by merchant while creating the terminal") - terminal_phone_no: StrictStr = Field(..., description="mobile num of the terminal/agent/storefront,This is a required parameter when you do not provide the cf_terminal_id.") - terminal_status: Optional[StrictStr] = Field(None, description="status of terminal active/inactive") - terminal_type: constr(strict=True, max_length=10, min_length=4) = Field(..., description="To identify the type of terminal product in use, in this case it is SPOS.") + added_on: Optional[StrictStr] = Field(default=None, description="date time at which terminal is added") + cf_terminal_id: Optional[StrictStr] = Field(default=None, description="cashfree terminal id") + last_updated_on: Optional[StrictStr] = Field(default=None, description="last instant when this terminal was updated") + terminal_address: Optional[StrictStr] = Field(default=None, description="location of terminal") + terminal_id: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=100)]] = Field(default=None, description="terminal id for merchant reference") + terminal_name: Optional[StrictStr] = Field(default=None, description="name of terminal/agent/storefront") + terminal_note: Optional[StrictStr] = Field(default=None, description="note given by merchant while creating the terminal") + terminal_phone_no: StrictStr = Field(description="mobile num of the terminal/agent/storefront,This is a required parameter when you do not provide the cf_terminal_id.") + terminal_status: Optional[StrictStr] = Field(default=None, description="status of terminal active/inactive") + terminal_type: Annotated[str, Field(min_length=4, strict=True, max_length=10)] = Field(description="To identify the type of terminal product in use, in this case it is SPOS.") __properties = ["added_on", "cf_terminal_id", "last_updated_on", "terminal_address", "terminal_id", "terminal_name", "terminal_note", "terminal_phone_no", "terminal_status", "terminal_type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/terminal_entity.py b/cashfree_pg/models/terminal_entity.py index 9a073264..c197f2b8 100644 --- a/cashfree_pg/models/terminal_entity.py +++ b/cashfree_pg/models/terminal_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictInt, StrictStr + + from cashfree_pg.models.create_terminal_request_terminal_meta import CreateTerminalRequestTerminalMeta +from pydantic import field_validator class TerminalEntity(BaseModel): """ @@ -41,10 +41,12 @@ class TerminalEntity(BaseModel): terminal_meta: Optional[CreateTerminalRequestTerminalMeta] = None __properties = ["added_on", "cf_terminal_id", "last_updated_on", "terminal_address", "terminal_email", "terminal_type", "teminal_id", "terminal_name", "terminal_note", "terminal_phone_no", "terminal_status", "terminal_meta"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/terminal_payment_entity.py b/cashfree_pg/models/terminal_payment_entity.py index 33f87303..83aa7a4a 100644 --- a/cashfree_pg/models/terminal_payment_entity.py +++ b/cashfree_pg/models/terminal_payment_entity.py @@ -1,30 +1,30 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, validator + + from cashfree_pg.models.authorization_in_payments_entity import AuthorizationInPaymentsEntity from cashfree_pg.models.customer_details import CustomerDetails from cashfree_pg.models.error_details_in_payments_entity import ErrorDetailsInPaymentsEntity from cashfree_pg.models.terminal_payment_entity_payment_method import TerminalPaymentEntityPaymentMethod +from pydantic import field_validator class TerminalPaymentEntity(BaseModel): """ @@ -35,13 +35,13 @@ class TerminalPaymentEntity(BaseModel): entity: Optional[StrictStr] = None error_details: Optional[ErrorDetailsInPaymentsEntity] = None is_captured: Optional[StrictBool] = None - order_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Order amount can be different from payment amount if you collect service fee from the customer") - payment_group: Optional[StrictStr] = Field(None, description="Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi']") + order_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Order amount can be different from payment amount if you collect service fee from the customer") + payment_group: Optional[StrictStr] = Field(default=None, description="Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi']") payment_currency: Optional[StrictStr] = None payment_amount: Optional[Union[StrictFloat, StrictInt]] = None - payment_time: Optional[StrictStr] = Field(None, description="This is the time when the payment was initiated") - payment_completion_time: Optional[StrictStr] = Field(None, description="This is the time when the payment reaches its terminal state") - payment_status: Optional[StrictStr] = Field(None, description="The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"]") + payment_time: Optional[StrictStr] = Field(default=None, description="This is the time when the payment was initiated") + payment_completion_time: Optional[StrictStr] = Field(default=None, description="This is the time when the payment reaches its terminal state") + payment_status: Optional[StrictStr] = Field(default=None, description="The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"]") payment_message: Optional[StrictStr] = None bank_reference: Optional[StrictStr] = None auth_id: Optional[StrictStr] = None @@ -50,7 +50,7 @@ class TerminalPaymentEntity(BaseModel): payment_method: Optional[TerminalPaymentEntityPaymentMethod] = None __properties = ["cf_payment_id", "order_id", "entity", "error_details", "is_captured", "order_amount", "payment_group", "payment_currency", "payment_amount", "payment_time", "payment_completion_time", "payment_status", "payment_message", "bank_reference", "auth_id", "authorization", "customer_details", "payment_method"] - @validator('payment_status') + @field_validator('payment_status') def payment_status_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -60,10 +60,12 @@ def payment_status_validate_enum(cls, value): raise ValueError("must be one of enum values ('SUCCESS', 'NOT_ATTEMPTED', 'FAILED', 'USER_DROPPED', 'VOID', 'CANCELLED', 'PENDING')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/terminal_payment_entity_payment_method.py b/cashfree_pg/models/terminal_payment_entity_payment_method.py index e06493d3..0bc5cbf2 100644 --- a/cashfree_pg/models/terminal_payment_entity_payment_method.py +++ b/cashfree_pg/models/terminal_payment_entity_payment_method.py @@ -1,26 +1,25 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations from inspect import getfullargspec import json import pprint import re # noqa: F401 -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator + + from cashfree_pg.models.payment_method_app_in_payments_entity import PaymentMethodAppInPaymentsEntity from cashfree_pg.models.payment_method_bank_transfer_in_payments_entity import PaymentMethodBankTransferInPaymentsEntity from cashfree_pg.models.payment_method_card_emiin_payments_entity import PaymentMethodCardEMIInPaymentsEntity @@ -29,7 +28,7 @@ from cashfree_pg.models.payment_method_net_banking_in_payments_entity import PaymentMethodNetBankingInPaymentsEntity from cashfree_pg.models.payment_method_paylater_in_payments_entity import PaymentMethodPaylaterInPaymentsEntity from cashfree_pg.models.payment_method_upiin_payments_entity import PaymentMethodUPIInPaymentsEntity -from typing import Union, Any, List, TYPE_CHECKING +from typing import Union, Any, List, TYPE_CHECKING, Literal from pydantic import StrictStr, Field TERMINALPAYMENTENTITYPAYMENTMETHOD_ONE_OF_SCHEMAS = ["PaymentMethodAppInPaymentsEntity", "PaymentMethodBankTransferInPaymentsEntity", "PaymentMethodCardEMIInPaymentsEntity", "PaymentMethodCardInPaymentsEntity", "PaymentMethodCardlessEMIInPaymentsEntity", "PaymentMethodNetBankingInPaymentsEntity", "PaymentMethodPaylaterInPaymentsEntity", "PaymentMethodUPIInPaymentsEntity"] @@ -58,10 +57,12 @@ class TerminalPaymentEntityPaymentMethod(BaseModel): actual_instance: Union[PaymentMethodAppInPaymentsEntity, PaymentMethodBankTransferInPaymentsEntity, PaymentMethodCardEMIInPaymentsEntity, PaymentMethodCardInPaymentsEntity, PaymentMethodCardlessEMIInPaymentsEntity, PaymentMethodNetBankingInPaymentsEntity, PaymentMethodPaylaterInPaymentsEntity, PaymentMethodUPIInPaymentsEntity] else: actual_instance: Any - one_of_schemas: List[str] = Field(TERMINALPAYMENTENTITYPAYMENTMETHOD_ONE_OF_SCHEMAS, const=True) + one_of_schemas: List[str] = Literal[TERMINALPAYMENTENTITYPAYMENTMETHOD_ONE_OF_SCHEMAS] - class Config: - validate_assignment = True + # Updated to Pydantic v2 + model_config = { + "validate_assignment": True + } def __init__(self, *args, **kwargs): if args: diff --git a/cashfree_pg/models/terminal_transaction_entity.py b/cashfree_pg/models/terminal_transaction_entity.py index bea3b37e..c05909a2 100644 --- a/cashfree_pg/models/terminal_transaction_entity.py +++ b/cashfree_pg/models/terminal_transaction_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictInt, StrictStr + + +from pydantic import field_validator class TerminalTransactionEntity(BaseModel): """ @@ -34,10 +34,12 @@ class TerminalTransactionEntity(BaseModel): timeout: Optional[StrictStr] = None __properties = ["cf_payment_id", "payment_amount", "payment_method", "payment_url", "qrcode", "timeout"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/terminate_order_request.py b/cashfree_pg/models/terminate_order_request.py index 1ff0f460..6a13f783 100644 --- a/cashfree_pg/models/terminate_order_request.py +++ b/cashfree_pg/models/terminate_order_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,19 +19,22 @@ -from pydantic import BaseModel, Field, StrictStr + +from pydantic import field_validator class TerminateOrderRequest(BaseModel): """ Request to terminate an active order at Cashfree """ - order_status: StrictStr = Field(..., description="To terminate an order, pass order_status as \"TERMINATED\". Please note, order might not be terminated - confirm with the order_status in response. \"TERMINATION_REQUESTED\" states that the request is recieved and we are working on it. If the order terminates successfully, status will change to \"TERMINATED\". Incase there's any active transaction which moved to success - order might not get terminated.") + order_status: StrictStr = Field(description="To terminate an order, pass order_status as \"TERMINATED\". Please note, order might not be terminated - confirm with the order_status in response. \"TERMINATION_REQUESTED\" states that the request is recieved and we are working on it. If the order terminates successfully, status will change to \"TERMINATED\". Incase there's any active transaction which moved to success - order might not get terminated.") __properties = ["order_status"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/transfer_details.py b/cashfree_pg/models/transfer_details.py index 80ce8920..23f0df5e 100644 --- a/cashfree_pg/models/transfer_details.py +++ b/cashfree_pg/models/transfer_details.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr, conlist + + from cashfree_pg.models.transfer_details_tags_inner import TransferDetailsTagsInner +from pydantic import field_validator class TransferDetails(BaseModel): """ @@ -32,13 +32,15 @@ class TransferDetails(BaseModel): transfer_type: Optional[StrictStr] = None transfer_amount: Optional[Union[StrictFloat, StrictInt]] = None remark: Optional[StrictStr] = None - tags: Optional[conlist(TransferDetailsTagsInner)] = None + tags: Optional[List[TransferDetailsTagsInner]] = None __properties = ["vendor_id", "transfer_from", "transfer_type", "transfer_amount", "remark", "tags"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/transfer_details_tags_inner.py b/cashfree_pg/models/transfer_details_tags_inner.py index 6a403c12..7eac6334 100644 --- a/cashfree_pg/models/transfer_details_tags_inner.py +++ b/cashfree_pg/models/transfer_details_tags_inner.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class TransferDetailsTagsInner(BaseModel): """ @@ -30,10 +30,12 @@ class TransferDetailsTagsInner(BaseModel): size: Optional[Union[StrictFloat, StrictInt]] = None __properties = ["product", "size"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/update_order_extended_data_entity.py b/cashfree_pg/models/update_order_extended_data_entity.py index 3a127bef..18437da3 100644 --- a/cashfree_pg/models/update_order_extended_data_entity.py +++ b/cashfree_pg/models/update_order_extended_data_entity.py @@ -1,43 +1,45 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist + + from cashfree_pg.models.order_delivery_status import OrderDeliveryStatus from cashfree_pg.models.shipment_details import ShipmentDetails +from pydantic import field_validator class UpdateOrderExtendedDataEntity(BaseModel): """ The complete update order extended data entity """ - cf_order_id: Optional[StrictStr] = Field(None, description="unique id generated by cashfree for your order") - order_id: Optional[StrictStr] = Field(None, description="order_id sent during the api request") - shipment_details: Optional[conlist(ShipmentDetails)] = None + cf_order_id: Optional[StrictStr] = Field(default=None, description="unique id generated by cashfree for your order") + order_id: Optional[StrictStr] = Field(default=None, description="order_id sent during the api request") + shipment_details: Optional[List[ShipmentDetails]] = None order_delivery_status: Optional[OrderDeliveryStatus] = None __properties = ["cf_order_id", "order_id", "shipment_details", "order_delivery_status"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/update_order_extended_request.py b/cashfree_pg/models/update_order_extended_request.py index af13af96..28d90ebb 100644 --- a/cashfree_pg/models/update_order_extended_request.py +++ b/cashfree_pg/models/update_order_extended_request.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, Field, conlist + + from cashfree_pg.models.order_delivery_status import OrderDeliveryStatus from cashfree_pg.models.shipment_details import ShipmentDetails +from pydantic import field_validator class UpdateOrderExtendedRequest(BaseModel): """ Request Body to Update extended data related to order """ - shipment_details: conlist(ShipmentDetails) = Field(..., description="Shipment details, such as the tracking company, tracking number, and tracking URLs, associated with the shipping of an order. Either `shipment_details` or `order_delivery_status` is required.") + shipment_details: List[ShipmentDetails] = Field(description="Shipment details, such as the tracking company, tracking number, and tracking URLs, associated with the shipping of an order. Either `shipment_details` or `order_delivery_status` is required.") order_delivery_status: Optional[OrderDeliveryStatus] = None __properties = ["shipment_details", "order_delivery_status"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/update_soundbox_vpa_request.py b/cashfree_pg/models/update_soundbox_vpa_request.py index 0e508e79..07363c32 100644 --- a/cashfree_pg/models/update_soundbox_vpa_request.py +++ b/cashfree_pg/models/update_soundbox_vpa_request.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class UpdateSoundboxVpaRequest(BaseModel): """ Request body to update soundbox vpa """ - vpa: StrictStr = Field(..., description="Terminal Vpa,for which we need to update details.") - cf_terminal_id: StrictStr = Field(..., description="cashfree terminal id.") - merchant_name: Optional[StrictStr] = Field(None, description="Merchant Name that need to updated on soundbox") - language: Optional[StrictStr] = Field(None, description="language of soundbox,currently English, Hindi, Tamil") + vpa: StrictStr = Field(description="Terminal Vpa,for which we need to update details.") + cf_terminal_id: StrictStr = Field(description="cashfree terminal id.") + merchant_name: Optional[StrictStr] = Field(default=None, description="Merchant Name that need to updated on soundbox") + language: Optional[StrictStr] = Field(default=None, description="language of soundbox,currently English, Hindi, Tamil") __properties = ["vpa", "cf_terminal_id", "merchant_name", "language"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/update_terminal_entity.py b/cashfree_pg/models/update_terminal_entity.py index f1f838f0..ff7e3f9b 100644 --- a/cashfree_pg/models/update_terminal_entity.py +++ b/cashfree_pg/models/update_terminal_entity.py @@ -1,27 +1,27 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictInt, StrictStr + + from cashfree_pg.models.create_terminal_request_terminal_meta import CreateTerminalRequestTerminalMeta +from pydantic import field_validator class UpdateTerminalEntity(BaseModel): """ @@ -41,10 +41,12 @@ class UpdateTerminalEntity(BaseModel): terminal_meta: Optional[CreateTerminalRequestTerminalMeta] = None __properties = ["added_on", "cf_terminal_id", "last_updated_on", "terminal_address", "terminal_email", "terminal_type", "teminal_id", "terminal_name", "terminal_note", "terminal_phone_no", "terminal_status", "terminal_meta"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/update_terminal_request.py b/cashfree_pg/models/update_terminal_request.py index 08fc0d0e..3916ccba 100644 --- a/cashfree_pg/models/update_terminal_request.py +++ b/cashfree_pg/models/update_terminal_request.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr + + from cashfree_pg.models.update_terminal_request_terminal_meta import UpdateTerminalRequestTerminalMeta +from pydantic import field_validator class UpdateTerminalRequest(BaseModel): """ Request body to update terminal details. """ - terminal_email: Optional[StrictStr] = Field(None, description="Mention the updated email ID of the terminal.") - terminal_phone_no: Optional[constr(strict=True, max_length=10, min_length=10)] = Field(None, description="Terminal phone number to be updated.") + terminal_email: Optional[StrictStr] = Field(default=None, description="Mention the updated email ID of the terminal.") + terminal_phone_no: Optional[Annotated[str, Field(min_length=10, strict=True, max_length=10)]] = Field(default=None, description="Terminal phone number to be updated.") terminal_meta: Optional[UpdateTerminalRequestTerminalMeta] = None - terminal_type: StrictStr = Field(..., description="Mention the terminal type to be updated. Possible values - AGENT, STOREFRONT.") + terminal_type: StrictStr = Field(description="Mention the terminal type to be updated. Possible values - AGENT, STOREFRONT.") __properties = ["terminal_email", "terminal_phone_no", "terminal_meta", "terminal_type"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/update_terminal_request_terminal_meta.py b/cashfree_pg/models/update_terminal_request_terminal_meta.py index 9fce63e9..69700f45 100644 --- a/cashfree_pg/models/update_terminal_request_terminal_meta.py +++ b/cashfree_pg/models/update_terminal_request_terminal_meta.py @@ -1,38 +1,40 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class UpdateTerminalRequestTerminalMeta(BaseModel): """ Terminal metadata. """ - terminal_operator: Optional[StrictStr] = Field(None, description="Name of the operator for the storefront.") + terminal_operator: Optional[StrictStr] = Field(default=None, description="Name of the operator for the storefront.") __properties = ["terminal_operator"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/update_terminal_status_request.py b/cashfree_pg/models/update_terminal_status_request.py index fd7d2879..f3d4a4e7 100644 --- a/cashfree_pg/models/update_terminal_status_request.py +++ b/cashfree_pg/models/update_terminal_status_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,19 +19,22 @@ -from pydantic import BaseModel, Field, StrictStr + +from pydantic import field_validator class UpdateTerminalStatusRequest(BaseModel): """ Request body to update terminal status. """ - terminal_status: StrictStr = Field(..., description="Status of the terminal to be updated. possible values - ACTIVE, INACTIVE.") + terminal_status: StrictStr = Field(description="Status of the terminal to be updated. possible values - ACTIVE, INACTIVE.") __properties = ["terminal_status"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/update_vendor_request.py b/cashfree_pg/models/update_vendor_request.py index 68c2f59a..1b1592df 100644 --- a/cashfree_pg/models/update_vendor_request.py +++ b/cashfree_pg/models/update_vendor_request.py @@ -1,50 +1,52 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist + + from cashfree_pg.models.bank_details import BankDetails from cashfree_pg.models.kyc_details import KycDetails from cashfree_pg.models.upi_details import UpiDetails +from pydantic import field_validator class UpdateVendorRequest(BaseModel): """ Update Vendor Request """ - status: StrictStr = Field(..., description="Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED") - name: StrictStr = Field(..., description="Specify the name of the vendor to be updated. Name should not have any special character except . / - &") - email: StrictStr = Field(..., description="Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.)") - phone: StrictStr = Field(..., description="Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91).") - verify_account: Optional[StrictBool] = Field(None, description="Specify if the vendor bank account details should be verified. Possible values: true or false") - dashboard_access: Optional[StrictBool] = Field(None, description="Update if the vendor will have dashboard access or not. Possible values are: true or false") - schedule_option: Union[StrictFloat, StrictInt] = Field(..., description="Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements.") - bank: Optional[conlist(BankDetails)] = Field(None, description="Specify the vendor bank account details to be updated.") - upi: Optional[conlist(UpiDetails)] = Field(None, description="Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign.") - kyc_details: conlist(KycDetails) = Field(..., description="Specify the kyc details that should be updated.") + status: StrictStr = Field(description="Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED") + name: StrictStr = Field(description="Specify the name of the vendor to be updated. Name should not have any special character except . / - &") + email: StrictStr = Field(description="Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.)") + phone: StrictStr = Field(description="Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91).") + verify_account: Optional[StrictBool] = Field(default=None, description="Specify if the vendor bank account details should be verified. Possible values: true or false") + dashboard_access: Optional[StrictBool] = Field(default=None, description="Update if the vendor will have dashboard access or not. Possible values are: true or false") + schedule_option: Union[StrictFloat, StrictInt] = Field(description="Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements.") + bank: Optional[List[BankDetails]] = Field(default=None, description="Specify the vendor bank account details to be updated.") + upi: Optional[List[UpiDetails]] = Field(default=None, description="Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign.") + kyc_details: List[KycDetails] = Field(description="Specify the kyc details that should be updated.") __properties = ["status", "name", "email", "phone", "verify_account", "dashboard_access", "schedule_option", "bank", "upi", "kyc_details"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/update_vendor_response.py b/cashfree_pg/models/update_vendor_response.py index 04f37d11..5a2c9fa8 100644 --- a/cashfree_pg/models/update_vendor_response.py +++ b/cashfree_pg/models/update_vendor_response.py @@ -1,30 +1,30 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr, conlist + + from cashfree_pg.models.bank_details import BankDetails from cashfree_pg.models.kyc_details import KycDetails from cashfree_pg.models.schedule_option import ScheduleOption from cashfree_pg.models.vendor_entity_related_docs_inner import VendorEntityRelatedDocsInner +from pydantic import field_validator class UpdateVendorResponse(BaseModel): """ @@ -32,7 +32,7 @@ class UpdateVendorResponse(BaseModel): """ email: Optional[StrictStr] = None status: Optional[StrictStr] = None - bank: Optional[conlist(BankDetails)] = None + bank: Optional[List[BankDetails]] = None upi: Optional[StrictStr] = None added_on: Optional[StrictStr] = None updated_on: Optional[StrictStr] = None @@ -42,17 +42,19 @@ class UpdateVendorResponse(BaseModel): phone: Optional[Union[StrictFloat, StrictInt]] = None name: Optional[StrictStr] = None vendor_id: Optional[StrictStr] = None - schedule_option: Optional[conlist(ScheduleOption)] = None - kyc_details: Optional[conlist(KycDetails)] = None + schedule_option: Optional[List[ScheduleOption]] = None + kyc_details: Optional[List[KycDetails]] = None dashboard_access: Optional[StrictBool] = None bank_details: Optional[StrictStr] = None - related_docs: Optional[conlist(VendorEntityRelatedDocsInner)] = None + related_docs: Optional[List[VendorEntityRelatedDocsInner]] = None __properties = ["email", "status", "bank", "upi", "added_on", "updated_on", "vendor_type", "account_type", "business_type", "phone", "name", "vendor_id", "schedule_option", "kyc_details", "dashboard_access", "bank_details", "related_docs"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/upi.py b/cashfree_pg/models/upi.py index 497aa862..7114bde6 100644 --- a/cashfree_pg/models/upi.py +++ b/cashfree_pg/models/upi.py @@ -1,51 +1,53 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, validator + + from cashfree_pg.models.upi_authorize_details import UPIAuthorizeDetails +from pydantic import field_validator class Upi(BaseModel): """ UPI collect payment method object """ - channel: StrictStr = Field(..., description="Specify the channel through which the payment must be processed. Can be one of [\"link\", \"collect\", \"qrcode\"]") - upi_id: Optional[StrictStr] = Field(None, description="Customer UPI VPA to process payment. ### Important This is a required parameter for channel = `collect` ") - upi_redirect_url: Optional[StrictBool] = Field(None, description="use this if you want cashfree to show a loader. Sample response below. It is only supported for collect `action:collect` will be returned with `data.url` having the link for redirection ") - upi_expiry_minutes: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The UPI request will be valid for this expiry minutes. This parameter is only applicable for a UPI collect payment. The default value is 5 minutes. You should keep the minimum as 5 minutes, and maximum as 15 minutes") - authorize_only: Optional[StrictBool] = Field(None, description="For one time mandate on UPI. Set this as authorize_only = true. Please note that you can only use the \"collect\" channel if you are sending a one time mandate request") + channel: StrictStr = Field(description="Specify the channel through which the payment must be processed. Can be one of [\"link\", \"collect\", \"qrcode\"]") + upi_id: Optional[StrictStr] = Field(default=None, description="Customer UPI VPA to process payment. ### Important This is a required parameter for channel = `collect` ") + upi_redirect_url: Optional[StrictBool] = Field(default=None, description="use this if you want cashfree to show a loader. Sample response below. It is only supported for collect `action:collect` will be returned with `data.url` having the link for redirection ") + upi_expiry_minutes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The UPI request will be valid for this expiry minutes. This parameter is only applicable for a UPI collect payment. The default value is 5 minutes. You should keep the minimum as 5 minutes, and maximum as 15 minutes") + authorize_only: Optional[StrictBool] = Field(default=None, description="For one time mandate on UPI. Set this as authorize_only = true. Please note that you can only use the \"collect\" channel if you are sending a one time mandate request") authorization: Optional[UPIAuthorizeDetails] = None __properties = ["channel", "upi_id", "upi_redirect_url", "upi_expiry_minutes", "authorize_only", "authorization"] - @validator('channel') + @field_validator('channel') def channel_validate_enum(cls, value): """Validates the enum""" if value not in ('link', 'collect', 'qrcode'): raise ValueError("must be one of enum values ('link', 'collect', 'qrcode')") return value - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/upi_authorize_details.py b/cashfree_pg/models/upi_authorize_details.py index 7062ad64..103606c2 100644 --- a/cashfree_pg/models/upi_authorize_details.py +++ b/cashfree_pg/models/upi_authorize_details.py @@ -1,40 +1,42 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class UPIAuthorizeDetails(BaseModel): """ object when you are using preauth in UPI in order pay """ - approve_by: Optional[StrictStr] = Field(None, description="Time by which this authorization should be approved by the customer.") - start_time: Optional[StrictStr] = Field(None, description="This is the time when the UPI one time mandate will start") - end_time: Optional[StrictStr] = Field(None, description="This is the time when the UPI mandate will be over. If the mandate has not been executed by this time, the funds will be returned back to the customer after this time.") + approve_by: Optional[StrictStr] = Field(default=None, description="Time by which this authorization should be approved by the customer.") + start_time: Optional[StrictStr] = Field(default=None, description="This is the time when the UPI one time mandate will start") + end_time: Optional[StrictStr] = Field(default=None, description="This is the time when the UPI mandate will be over. If the mandate has not been executed by this time, the funds will be returned back to the customer after this time.") __properties = ["approve_by", "start_time", "end_time"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/upi_details.py b/cashfree_pg/models/upi_details.py index 0b25b507..9c1c3e53 100644 --- a/cashfree_pg/models/upi_details.py +++ b/cashfree_pg/models/upi_details.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class UpiDetails(BaseModel): """ @@ -30,10 +30,12 @@ class UpiDetails(BaseModel): account_holder: Optional[StrictStr] = None __properties = ["vpa", "account_holder"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/upi_payment_method.py b/cashfree_pg/models/upi_payment_method.py index 0e6ffe5e..434d6232 100644 --- a/cashfree_pg/models/upi_payment_method.py +++ b/cashfree_pg/models/upi_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,20 +19,23 @@ -from pydantic import BaseModel, Field + from cashfree_pg.models.upi import Upi +from pydantic import field_validator class UPIPaymentMethod(BaseModel): """ Complete payment method for UPI collect """ - upi: Upi = Field(...) + upi: Upi __properties = ["upi"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/upload_pnach_image_response.py b/cashfree_pg/models/upload_pnach_image_response.py index c00c9aed..1e3e6b7a 100644 --- a/cashfree_pg/models/upload_pnach_image_response.py +++ b/cashfree_pg/models/upload_pnach_image_response.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, Field, StrictStr + + +from pydantic import field_validator class UploadPnachImageResponse(BaseModel): """ Response of pnach image upload API. """ - payment_id: Optional[StrictStr] = Field(None, description="The payment_id against which the pnach image is uploaded.") - authorization_status: Optional[StrictStr] = Field(None, description="Authorization status of the subscription.") - action: Optional[StrictStr] = Field(None, description="Action performed on the file.") - payment_message: Optional[StrictStr] = Field(None, description="Message of the API.") + payment_id: Optional[StrictStr] = Field(default=None, description="The payment_id against which the pnach image is uploaded.") + authorization_status: Optional[StrictStr] = Field(default=None, description="Authorization status of the subscription.") + action: Optional[StrictStr] = Field(default=None, description="Action performed on the file.") + payment_message: Optional[StrictStr] = Field(default=None, description="Message of the API.") __properties = ["payment_id", "authorization_status", "action", "payment_message"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/upload_terminal_docs.py b/cashfree_pg/models/upload_terminal_docs.py index fa46211a..3dae1f37 100644 --- a/cashfree_pg/models/upload_terminal_docs.py +++ b/cashfree_pg/models/upload_terminal_docs.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,21 +19,24 @@ -from pydantic import BaseModel, Field, StrictStr + +from pydantic import field_validator class UploadTerminalDocs(BaseModel): """ Request body to upload terminal documents. """ - doc_type: StrictStr = Field(..., description="Mention the document type you are uploading. Possible values - ADDRESSPROOF, PHOTOGRAPH.") - doc_value: StrictStr = Field(..., description="Enter the display name of the uploaded file.") - file: StrictStr = Field(..., description="Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size.") + doc_type: StrictStr = Field(description="Mention the document type you are uploading. Possible values - ADDRESSPROOF, PHOTOGRAPH.") + doc_value: StrictStr = Field(description="Enter the display name of the uploaded file.") + file: StrictStr = Field(description="Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size.") __properties = ["doc_type", "doc_value", "file"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/upload_terminal_docs_entity.py b/cashfree_pg/models/upload_terminal_docs_entity.py index 15b45dcb..d4cb88f1 100644 --- a/cashfree_pg/models/upload_terminal_docs_entity.py +++ b/cashfree_pg/models/upload_terminal_docs_entity.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictInt, StrictStr + + +from pydantic import field_validator class UploadTerminalDocsEntity(BaseModel): """ @@ -32,10 +32,12 @@ class UploadTerminalDocsEntity(BaseModel): status: Optional[StrictStr] = None __properties = ["cf_terminal_id", "doc_type", "doc_value", "status"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/upload_vendor_documents_response.py b/cashfree_pg/models/upload_vendor_documents_response.py index 1bbc633c..921cd5fa 100644 --- a/cashfree_pg/models/upload_vendor_documents_response.py +++ b/cashfree_pg/models/upload_vendor_documents_response.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class UploadVendorDocumentsResponse(BaseModel): """ @@ -33,10 +33,12 @@ class UploadVendorDocumentsResponse(BaseModel): remarks: Optional[StrictStr] = None __properties = ["vendor_id", "doc_type", "doc_value", "status", "remarks"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/vendor_adjustment_request.py b/cashfree_pg/models/vendor_adjustment_request.py index abcaaf34..537f9688 100644 --- a/cashfree_pg/models/vendor_adjustment_request.py +++ b/cashfree_pg/models/vendor_adjustment_request.py @@ -1,42 +1,44 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class VendorAdjustmentRequest(BaseModel): """ Vendor Adjustment Request Body """ - vendor_id: StrictStr = Field(..., description="The unique identifier of the vendor to whom the adjustment is applied") - adjustment_id: StrictInt = Field(..., description="The unique identifier for the adjustment transaction.") - amount: Union[StrictFloat, StrictInt] = Field(..., description="The adjustment amount to be applied.") - type: StrictStr = Field(..., description="The type of adjustment. Possible values: CREDIT, DEBIT.") - remarks: Optional[StrictStr] = Field(None, description="Remarks for the adjustment transaction, if any.") + vendor_id: StrictStr = Field(description="The unique identifier of the vendor to whom the adjustment is applied") + adjustment_id: StrictInt = Field(description="The unique identifier for the adjustment transaction.") + amount: Union[StrictFloat, StrictInt] = Field(description="The adjustment amount to be applied.") + type: StrictStr = Field(description="The type of adjustment. Possible values: CREDIT, DEBIT.") + remarks: Optional[StrictStr] = Field(default=None, description="Remarks for the adjustment transaction, if any.") __properties = ["vendor_id", "adjustment_id", "amount", "type", "remarks"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/vendor_adjustment_success_response.py b/cashfree_pg/models/vendor_adjustment_success_response.py index 37167297..903b0583 100644 --- a/cashfree_pg/models/vendor_adjustment_success_response.py +++ b/cashfree_pg/models/vendor_adjustment_success_response.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class VendorAdjustmentSuccessResponse(BaseModel): """ @@ -30,10 +30,12 @@ class VendorAdjustmentSuccessResponse(BaseModel): status: Optional[StrictStr] = None __properties = ["message", "status"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/vendor_balance.py b/cashfree_pg/models/vendor_balance.py index f077d936..b5bd18f4 100644 --- a/cashfree_pg/models/vendor_balance.py +++ b/cashfree_pg/models/vendor_balance.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class VendorBalance(BaseModel): """ @@ -32,10 +32,12 @@ class VendorBalance(BaseModel): vendor_unsettled: Optional[Union[StrictFloat, StrictInt]] = None __properties = ["merchant_id", "vendor_id", "merchant_unsettled", "vendor_unsettled"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/vendor_balance_transfer_charges.py b/cashfree_pg/models/vendor_balance_transfer_charges.py index 2cd0a9f5..2ec7b97c 100644 --- a/cashfree_pg/models/vendor_balance_transfer_charges.py +++ b/cashfree_pg/models/vendor_balance_transfer_charges.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class VendorBalanceTransferCharges(BaseModel): """ @@ -33,10 +33,12 @@ class VendorBalanceTransferCharges(BaseModel): is_postpaid: Optional[StrictBool] = None __properties = ["service_charges", "service_tax", "amount", "billed_to", "is_postpaid"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/vendor_document_download_response.py b/cashfree_pg/models/vendor_document_download_response.py index f6d78681..fcd6da11 100644 --- a/cashfree_pg/models/vendor_document_download_response.py +++ b/cashfree_pg/models/vendor_document_download_response.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class VendorDocumentDownloadResponse(BaseModel): """ @@ -29,10 +29,12 @@ class VendorDocumentDownloadResponse(BaseModel): download_url: Optional[StrictStr] = None __properties = ["download_url"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/vendor_documents_response.py b/cashfree_pg/models/vendor_documents_response.py index b88c0668..582c35ff 100644 --- a/cashfree_pg/models/vendor_documents_response.py +++ b/cashfree_pg/models/vendor_documents_response.py @@ -1,39 +1,41 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, conlist + + from cashfree_pg.models.vendor_entity_related_docs_inner import VendorEntityRelatedDocsInner +from pydantic import field_validator class VendorDocumentsResponse(BaseModel): """ Get Vendor Documents """ - documents: Optional[conlist(VendorEntityRelatedDocsInner)] = None + documents: Optional[List[VendorEntityRelatedDocsInner]] = None __properties = ["documents"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/vendor_entity.py b/cashfree_pg/models/vendor_entity.py index 36a7bd60..6c3a0d08 100644 --- a/cashfree_pg/models/vendor_entity.py +++ b/cashfree_pg/models/vendor_entity.py @@ -1,29 +1,29 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import List, Optional -from pydantic import BaseModel, StrictStr, conlist + + from cashfree_pg.models.bank_details import BankDetails from cashfree_pg.models.schedule_option import ScheduleOption from cashfree_pg.models.vendor_entity_related_docs_inner import VendorEntityRelatedDocsInner +from pydantic import field_validator class VendorEntity(BaseModel): """ @@ -36,20 +36,22 @@ class VendorEntity(BaseModel): vendor_id: Optional[StrictStr] = None added_on: Optional[StrictStr] = None updated_on: Optional[StrictStr] = None - bank: Optional[conlist(BankDetails)] = None + bank: Optional[List[BankDetails]] = None upi: Optional[StrictStr] = None - schedule_option: Optional[conlist(ScheduleOption)] = None + schedule_option: Optional[List[ScheduleOption]] = None vendor_type: Optional[StrictStr] = None account_type: Optional[StrictStr] = None business_type: Optional[StrictStr] = None remarks: Optional[StrictStr] = None - related_docs: Optional[conlist(VendorEntityRelatedDocsInner)] = None + related_docs: Optional[List[VendorEntityRelatedDocsInner]] = None __properties = ["email", "status", "phone", "name", "vendor_id", "added_on", "updated_on", "bank", "upi", "schedule_option", "vendor_type", "account_type", "business_type", "remarks", "related_docs"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/vendor_entity_related_docs_inner.py b/cashfree_pg/models/vendor_entity_related_docs_inner.py index 97f2afa3..6c8bf0e6 100644 --- a/cashfree_pg/models/vendor_entity_related_docs_inner.py +++ b/cashfree_pg/models/vendor_entity_related_docs_inner.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class VendorEntityRelatedDocsInner(BaseModel): """ @@ -33,10 +33,12 @@ class VendorEntityRelatedDocsInner(BaseModel): remarks: Optional[StrictStr] = None __properties = ["vendor_id", "doc_type", "doc_value", "status", "remarks"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/vendor_split.py b/cashfree_pg/models/vendor_split.py index 31e277c2..967962d7 100644 --- a/cashfree_pg/models/vendor_split.py +++ b/cashfree_pg/models/vendor_split.py @@ -1,41 +1,43 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Any, Dict, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + + +from pydantic import field_validator class VendorSplit(BaseModel): """ Use to split order when cashfree's Easy Split is enabled for your account. """ - vendor_id: StrictStr = Field(..., description="Vendor id created in Cashfree system") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Amount which will be associated with this vendor") - percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Percentage of order amount which shall get added to vendor account") - tags: Optional[Dict[str, Dict[str, Any]]] = Field(None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") + vendor_id: StrictStr = Field(description="Vendor id created in Cashfree system") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount which will be associated with this vendor") + percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Percentage of order amount which shall get added to vendor account") + tags: Optional[Dict[str, Dict[str, Any]]] = Field(default=None, description="Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added") __properties = ["vendor_id", "amount", "percentage", "tags"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/models/wallet_offer.py b/cashfree_pg/models/wallet_offer.py index f08d15ae..824748a2 100644 --- a/cashfree_pg/models/wallet_offer.py +++ b/cashfree_pg/models/wallet_offer.py @@ -1,26 +1,26 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json -from typing import Optional -from pydantic import BaseModel, StrictStr + + +from pydantic import field_validator class WalletOffer(BaseModel): """ @@ -29,10 +29,12 @@ class WalletOffer(BaseModel): provider: Optional[StrictStr] = None __properties = ["provider"] - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + # Updated to Pydantic v2 + """Pydantic configuration""" + model_config = { + "populate_by_name": True, + "validate_assignment": True + } def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/cashfree_pg/rest.py b/cashfree_pg/rest.py index 309f1f5a..e77a9f8a 100644 --- a/cashfree_pg/rest.py +++ b/cashfree_pg/rest.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import io import json import logging diff --git a/configuration.py b/configuration.py index 5aa108b1..7d008ca2 100644 --- a/configuration.py +++ b/configuration.py @@ -434,7 +434,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-08-01\n"\ - "SDK Package Version: 4.3.10".\ + "SDK Package Version: 4.5.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/pyproject.toml b/pyproject.toml index ac739655..59fba188 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cashfree_pg" -version = "4.5.1" +version = "1.0.0" description = "Cashfree Payment Gateway APIs" authors = ["API Support "] license = "Apache 2.0" @@ -14,7 +14,7 @@ python = "^3.7" urllib3 = ">= 1.25.3" python-dateutil = ">=2.8.2" -pydantic = "^1.10.5, <2" +pydantic = "2.11.7" aenum = ">=3.1.11" [tool.poetry.dev-dependencies] diff --git a/requirements.txt b/requirements.txt index 6dc71199..25aa4c91 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ python_dateutil >= 2.5.3 setuptools >= 21.0.0 urllib3 >= 1.25.3, < 2.1.0 sentry-sdk >= 1.32.0 -pydantic >= 1.10.5, < 2 +pydantic >= 2.11.7 aenum >= 3.1.11 diff --git a/setup.py b/setup.py index 463a9d6e..fe27dfb9 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from setuptools import setup, find_packages # noqa: H301 # To install the library, run the following @@ -21,8 +20,8 @@ # # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -NAME = "cashfree_pg" -VERSION = "4.5.1" +NAME = "cashfree-pg" +VERSION = "1.0.0" with open("README.md", "r", encoding="utf-8") as fh: readme = fh.read() PYTHON_REQUIRES = ">=3.7" @@ -30,7 +29,7 @@ "urllib3 >= 1.25.3, < 2.1.0", "python-dateutil", "sentry-sdk >= 1.32.0, < 1.33.0", - "pydantic >= 1.10.24, < 2", + "pydantic >= 2.11.7", "aenum" ] @@ -40,7 +39,7 @@ description="Cashfree Payment Gateway APIs", author="Cashfree Payments", author_email="developers@cashfree.com", - url="https://cashfree.com", + url="", keywords=["Payment Gateway", "Cashfree", "SDK", "Payments", "Cashfree Payment Gateway APIs"], install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), diff --git a/test/test_address_details.py b/test/test_address_details.py index d9accb29..8de90cdc 100644 --- a/test/test_address_details.py +++ b/test/test_address_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_adjust_vendor_balance_request.py b/test/test_adjust_vendor_balance_request.py index 9cd0b2c4..f68e6755 100644 --- a/test/test_adjust_vendor_balance_request.py +++ b/test/test_adjust_vendor_balance_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_adjust_vendor_balance_response.py b/test/test_adjust_vendor_balance_response.py index 209f3aad..6933bc76 100644 --- a/test/test_adjust_vendor_balance_response.py +++ b/test/test_adjust_vendor_balance_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_api_error.py b/test/test_api_error.py index 37214e10..2d5f39da 100644 --- a/test/test_api_error.py +++ b/test/test_api_error.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_api_error404.py b/test/test_api_error404.py index ec76ce13..720cfbdc 100644 --- a/test/test_api_error404.py +++ b/test/test_api_error404.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_api_error409.py b/test/test_api_error409.py index 22b757ba..54b42e27 100644 --- a/test/test_api_error409.py +++ b/test/test_api_error409.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_api_error502.py b/test/test_api_error502.py index 8b290647..74014bab 100644 --- a/test/test_api_error502.py +++ b/test/test_api_error502.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_app.py b/test/test_app.py index 7638f4cc..afde6c82 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_app_payment_method.py b/test/test_app_payment_method.py index 1c578020..a04f024b 100644 --- a/test/test_app_payment_method.py +++ b/test/test_app_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_authentication_error.py b/test/test_authentication_error.py index 5a21bf5a..d9cf7468 100644 --- a/test/test_authentication_error.py +++ b/test/test_authentication_error.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_authorization_details.py b/test/test_authorization_details.py index 4e2aca7d..23449ba1 100644 --- a/test/test_authorization_details.py +++ b/test/test_authorization_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_authorization_in_payments_entity.py b/test/test_authorization_in_payments_entity.py index 89ef1107..474ee96c 100644 --- a/test/test_authorization_in_payments_entity.py +++ b/test/test_authorization_in_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_authorize_order_request.py b/test/test_authorize_order_request.py index b1ae69e9..961e9a6e 100644 --- a/test/test_authorize_order_request.py +++ b/test/test_authorize_order_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_bad_request_error.py b/test/test_bad_request_error.py index d66c5aa7..034bbfa5 100644 --- a/test/test_bad_request_error.py +++ b/test/test_bad_request_error.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_balance_details.py b/test/test_balance_details.py index a67b8fdb..03808d3f 100644 --- a/test/test_balance_details.py +++ b/test/test_balance_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_bank_details.py b/test/test_bank_details.py index 2164e656..e925f4fa 100644 --- a/test/test_bank_details.py +++ b/test/test_bank_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_banktransfer.py b/test/test_banktransfer.py index 1f008afe..a2fc1f93 100644 --- a/test/test_banktransfer.py +++ b/test/test_banktransfer.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_banktransfer_payment_method.py b/test/test_banktransfer_payment_method.py index 061ff81a..06894b06 100644 --- a/test/test_banktransfer_payment_method.py +++ b/test/test_banktransfer_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_card.py b/test/test_card.py index 5c4e231f..baf98f39 100644 --- a/test/test_card.py +++ b/test/test_card.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_card_emi.py b/test/test_card_emi.py index 999052d3..a952d95e 100644 --- a/test/test_card_emi.py +++ b/test/test_card_emi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_card_emi_payment_method.py b/test/test_card_emi_payment_method.py index e9e6c2dc..1137e308 100644 --- a/test/test_card_emi_payment_method.py +++ b/test/test_card_emi_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_card_offer.py b/test/test_card_offer.py index 3ba332e8..bc7dcde5 100644 --- a/test/test_card_offer.py +++ b/test/test_card_offer.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_card_payment_method.py b/test/test_card_payment_method.py index 3cd67599..5fb98812 100644 --- a/test/test_card_payment_method.py +++ b/test/test_card_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_cardless_emi.py b/test/test_cardless_emi.py index 14fa1b9c..41ec0436 100644 --- a/test/test_cardless_emi.py +++ b/test/test_cardless_emi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_cardless_emi_entity.py b/test/test_cardless_emi_entity.py index a8e301ab..e7f67fa6 100644 --- a/test/test_cardless_emi_entity.py +++ b/test/test_cardless_emi_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_cardless_emi_payment_method.py b/test/test_cardless_emi_payment_method.py index 2839676f..74746ff4 100644 --- a/test/test_cardless_emi_payment_method.py +++ b/test/test_cardless_emi_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_cardless_emi_queries.py b/test/test_cardless_emi_queries.py index e63c2a8b..85f94596 100644 --- a/test/test_cardless_emi_queries.py +++ b/test/test_cardless_emi_queries.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_cart_details.py b/test/test_cart_details.py index 47d42ac1..48243279 100644 --- a/test/test_cart_details.py +++ b/test/test_cart_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_cart_details_entity.py b/test/test_cart_details_entity.py index 718ac48b..3d644ae2 100644 --- a/test/test_cart_details_entity.py +++ b/test/test_cart_details_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_cart_item.py b/test/test_cart_item.py index 01f50ec0..6ab823ad 100644 --- a/test/test_cart_item.py +++ b/test/test_cart_item.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_cashback_details.py b/test/test_cashback_details.py index 4f43dc74..08afa18c 100644 --- a/test/test_cashback_details.py +++ b/test/test_cashback_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_charges_details.py b/test/test_charges_details.py index e7e1a9ad..ed76d2c9 100644 --- a/test/test_charges_details.py +++ b/test/test_charges_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_charges_entity.py b/test/test_charges_entity.py index 14e683e3..17ee1250 100644 --- a/test/test_charges_entity.py +++ b/test/test_charges_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_customer_request.py b/test/test_create_customer_request.py index dd63e0c9..6f06100d 100644 --- a/test/test_create_customer_request.py +++ b/test/test_create_customer_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_link_request.py b/test/test_create_link_request.py index fb9249e1..1d710d42 100644 --- a/test/test_create_link_request.py +++ b/test/test_create_link_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_offer_request.py b/test/test_create_offer_request.py index 637a1ed1..514ef073 100644 --- a/test/test_create_offer_request.py +++ b/test/test_create_offer_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_order_request.py b/test/test_create_order_request.py index 534ba0d1..67bc61af 100644 --- a/test/test_create_order_request.py +++ b/test/test_create_order_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_order_settlement_request_body.py b/test/test_create_order_settlement_request_body.py index 5e0eb564..e129d0f6 100644 --- a/test/test_create_order_settlement_request_body.py +++ b/test/test_create_order_settlement_request_body.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_order_settlement_request_body_meta_data.py b/test/test_create_order_settlement_request_body_meta_data.py index b7a3b6f7..32899bce 100644 --- a/test/test_create_order_settlement_request_body_meta_data.py +++ b/test/test_create_order_settlement_request_body_meta_data.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_partner_vpa_request.py b/test/test_create_partner_vpa_request.py index f63fa3ac..ddcbda9d 100644 --- a/test/test_create_partner_vpa_request.py +++ b/test/test_create_partner_vpa_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_plan_request.py b/test/test_create_plan_request.py index 8b90fa6c..085aeceb 100644 --- a/test/test_create_plan_request.py +++ b/test/test_create_plan_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_payment_request.py b/test/test_create_subscription_payment_request.py index e755efd1..47d70e68 100644 --- a/test/test_create_subscription_payment_request.py +++ b/test/test_create_subscription_payment_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_payment_request_card.py b/test/test_create_subscription_payment_request_card.py index 57a74588..80102e70 100644 --- a/test/test_create_subscription_payment_request_card.py +++ b/test/test_create_subscription_payment_request_card.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_payment_request_enack.py b/test/test_create_subscription_payment_request_enack.py index af3a7324..90958657 100644 --- a/test/test_create_subscription_payment_request_enack.py +++ b/test/test_create_subscription_payment_request_enack.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_payment_request_payment_method.py b/test/test_create_subscription_payment_request_payment_method.py index de359283..d270c5bb 100644 --- a/test/test_create_subscription_payment_request_payment_method.py +++ b/test/test_create_subscription_payment_request_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_payment_request_pnach.py b/test/test_create_subscription_payment_request_pnach.py index 02b1b9a6..aaa67a67 100644 --- a/test/test_create_subscription_payment_request_pnach.py +++ b/test/test_create_subscription_payment_request_pnach.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_payment_response.py b/test/test_create_subscription_payment_response.py index b46c62ce..f90965a4 100644 --- a/test/test_create_subscription_payment_response.py +++ b/test/test_create_subscription_payment_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_refund_request.py b/test/test_create_subscription_refund_request.py index 73b38acc..7dab28c4 100644 --- a/test/test_create_subscription_refund_request.py +++ b/test/test_create_subscription_refund_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_request.py b/test/test_create_subscription_request.py index c6049314..2d79a45e 100644 --- a/test/test_create_subscription_request.py +++ b/test/test_create_subscription_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_request_authorization_details.py b/test/test_create_subscription_request_authorization_details.py index b5bbd59d..78821c90 100644 --- a/test/test_create_subscription_request_authorization_details.py +++ b/test/test_create_subscription_request_authorization_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_request_plan_details.py b/test/test_create_subscription_request_plan_details.py index 593522c1..0f916ca1 100644 --- a/test/test_create_subscription_request_plan_details.py +++ b/test/test_create_subscription_request_plan_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscription_request_subscription_meta.py b/test/test_create_subscription_request_subscription_meta.py index 7f1cbf00..db5452d3 100644 --- a/test/test_create_subscription_request_subscription_meta.py +++ b/test/test_create_subscription_request_subscription_meta.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_subscripton_payment_request_upi.py b/test/test_create_subscripton_payment_request_upi.py index 08206d7a..d8a59d4d 100644 --- a/test/test_create_subscripton_payment_request_upi.py +++ b/test/test_create_subscripton_payment_request_upi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_terminal_request.py b/test/test_create_terminal_request.py index d1ff419d..4c195716 100644 --- a/test/test_create_terminal_request.py +++ b/test/test_create_terminal_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_terminal_request_terminal_meta.py b/test/test_create_terminal_request_terminal_meta.py index f6aab2c6..5a4bd599 100644 --- a/test/test_create_terminal_request_terminal_meta.py +++ b/test/test_create_terminal_request_terminal_meta.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_terminal_transaction_request.py b/test/test_create_terminal_transaction_request.py index 4fc067f8..04ca06ae 100644 --- a/test/test_create_terminal_transaction_request.py +++ b/test/test_create_terminal_transaction_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_vendor_request.py b/test/test_create_vendor_request.py index 76677fbc..63d9f62f 100644 --- a/test/test_create_vendor_request.py +++ b/test/test_create_vendor_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_create_vendor_response.py b/test/test_create_vendor_response.py index 3573f33e..3652611a 100644 --- a/test/test_create_vendor_response.py +++ b/test/test_create_vendor_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_cryptogram_entity.py b/test/test_cryptogram_entity.py index ad8a5b59..f5da213c 100644 --- a/test/test_cryptogram_entity.py +++ b/test/test_cryptogram_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_customer_details.py b/test/test_customer_details.py index f06e0fcc..31a8e23d 100644 --- a/test/test_customer_details.py +++ b/test/test_customer_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_customer_details_cardless_emi.py b/test/test_customer_details_cardless_emi.py index c7d63230..d567fc26 100644 --- a/test/test_customer_details_cardless_emi.py +++ b/test/test_customer_details_cardless_emi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_customer_details_in_disputes_entity.py b/test/test_customer_details_in_disputes_entity.py index 0cf43c67..3c2ff7c1 100644 --- a/test/test_customer_details_in_disputes_entity.py +++ b/test/test_customer_details_in_disputes_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_customer_details_response.py b/test/test_customer_details_response.py index 65c18312..59ea5151 100644 --- a/test/test_customer_details_response.py +++ b/test/test_customer_details_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_customer_entity.py b/test/test_customer_entity.py index 3ba52991..c68c00a9 100644 --- a/test/test_customer_entity.py +++ b/test/test_customer_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_customers_api.py b/test/test_customers_api.py index 87fd0181..906d78eb 100644 --- a/test/test_customers_api.py +++ b/test/test_customers_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_default_api.py b/test/test_default_api.py index f346fbf5..be5bd860 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_demap_soundbox_vpa_request.py b/test/test_demap_soundbox_vpa_request.py index c8b9aeb0..a04bc56e 100644 --- a/test/test_demap_soundbox_vpa_request.py +++ b/test/test_demap_soundbox_vpa_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_discount_details.py b/test/test_discount_details.py index 95f55c04..b50cf8d1 100644 --- a/test/test_discount_details.py +++ b/test/test_discount_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_disputes_api.py b/test/test_disputes_api.py index 54f224cc..58490427 100644 --- a/test/test_disputes_api.py +++ b/test/test_disputes_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_disputes_entity.py b/test/test_disputes_entity.py index 5594a093..66261e9c 100644 --- a/test/test_disputes_entity.py +++ b/test/test_disputes_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_disputes_entity_merchant_accepted.py b/test/test_disputes_entity_merchant_accepted.py index e91ed63c..b9bf5003 100644 --- a/test/test_disputes_entity_merchant_accepted.py +++ b/test/test_disputes_entity_merchant_accepted.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_easy_split_api.py b/test/test_easy_split_api.py index 357a91e9..6d03ae99 100644 --- a/test/test_easy_split_api.py +++ b/test/test_easy_split_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_eligibility_api.py b/test/test_eligibility_api.py index e7419268..b231beaf 100644 --- a/test/test_eligibility_api.py +++ b/test/test_eligibility_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_eligibility_cardless_emi_entity.py b/test/test_eligibility_cardless_emi_entity.py index 535bb524..3e8304ee 100644 --- a/test/test_eligibility_cardless_emi_entity.py +++ b/test/test_eligibility_cardless_emi_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_fetch_cardless_emi_request.py b/test/test_eligibility_fetch_cardless_emi_request.py index d0aab467..6d92eae3 100644 --- a/test/test_eligibility_fetch_cardless_emi_request.py +++ b/test/test_eligibility_fetch_cardless_emi_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_fetch_offers_request.py b/test/test_eligibility_fetch_offers_request.py index 4d243e4c..969b356d 100644 --- a/test/test_eligibility_fetch_offers_request.py +++ b/test/test_eligibility_fetch_offers_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_fetch_paylater_request.py b/test/test_eligibility_fetch_paylater_request.py index 321dc024..fa684262 100644 --- a/test/test_eligibility_fetch_paylater_request.py +++ b/test/test_eligibility_fetch_paylater_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_fetch_payment_methods_request.py b/test/test_eligibility_fetch_payment_methods_request.py index 687b1619..f299dd3d 100644 --- a/test/test_eligibility_fetch_payment_methods_request.py +++ b/test/test_eligibility_fetch_payment_methods_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_method_item.py b/test/test_eligibility_method_item.py index 7948ce5f..9cbcfd97 100644 --- a/test/test_eligibility_method_item.py +++ b/test/test_eligibility_method_item.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_method_item_entity_details.py b/test/test_eligibility_method_item_entity_details.py index c456ea09..affa11cf 100644 --- a/test/test_eligibility_method_item_entity_details.py +++ b/test/test_eligibility_method_item_entity_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_method_item_entity_details_available_handles_inner.py b/test/test_eligibility_method_item_entity_details_available_handles_inner.py index 1e52a004..f9dd4243 100644 --- a/test/test_eligibility_method_item_entity_details_available_handles_inner.py +++ b/test/test_eligibility_method_item_entity_details_available_handles_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_offer_entity.py b/test/test_eligibility_offer_entity.py index cdaa4937..6a3f632f 100644 --- a/test/test_eligibility_offer_entity.py +++ b/test/test_eligibility_offer_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_paylater_entity.py b/test/test_eligibility_paylater_entity.py index 722ca771..75f605f9 100644 --- a/test/test_eligibility_paylater_entity.py +++ b/test/test_eligibility_paylater_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_payment_methods_entity.py b/test/test_eligibility_payment_methods_entity.py index 7cb99781..d1a909c9 100644 --- a/test/test_eligibility_payment_methods_entity.py +++ b/test/test_eligibility_payment_methods_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_eligibility_payment_methods_entity_entity_details.py b/test/test_eligibility_payment_methods_entity_entity_details.py index 735e58fd..a957e431 100644 --- a/test/test_eligibility_payment_methods_entity_entity_details.py +++ b/test/test_eligibility_payment_methods_entity_entity_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_emi_offer.py b/test/test_emi_offer.py index ba8230a9..4ab5abef 100644 --- a/test/test_emi_offer.py +++ b/test/test_emi_offer.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_emi_plans_array.py b/test/test_emi_plans_array.py index 78b27f18..51b2425e 100644 --- a/test/test_emi_plans_array.py +++ b/test/test_emi_plans_array.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_entity_simulation_request.py b/test/test_entity_simulation_request.py index 27d40856..36058095 100644 --- a/test/test_entity_simulation_request.py +++ b/test/test_entity_simulation_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_entity_simulation_response.py b/test/test_entity_simulation_response.py index 5897371a..a9c7520e 100644 --- a/test/test_entity_simulation_response.py +++ b/test/test_entity_simulation_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_error_details_in_payments_entity.py b/test/test_error_details_in_payments_entity.py index 6fe51522..73b1afd6 100644 --- a/test/test_error_details_in_payments_entity.py +++ b/test/test_error_details_in_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_es_order_recon_request.py b/test/test_es_order_recon_request.py index d5210b99..76f0b186 100644 --- a/test/test_es_order_recon_request.py +++ b/test/test_es_order_recon_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_es_order_recon_request_filters.py b/test/test_es_order_recon_request_filters.py index 05c1ef83..cce0efc9 100644 --- a/test/test_es_order_recon_request_filters.py +++ b/test/test_es_order_recon_request_filters.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_es_order_recon_request_pagination.py b/test/test_es_order_recon_request_pagination.py index 71dfa5d0..0c526d19 100644 --- a/test/test_es_order_recon_request_pagination.py +++ b/test/test_es_order_recon_request_pagination.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_es_order_recon_response.py b/test/test_es_order_recon_response.py index 8163ce72..d43ac33f 100644 --- a/test/test_es_order_recon_response.py +++ b/test/test_es_order_recon_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_es_order_recon_response_data_inner.py b/test/test_es_order_recon_response_data_inner.py index 1a31cc79..589107ec 100644 --- a/test/test_es_order_recon_response_data_inner.py +++ b/test/test_es_order_recon_response_data_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_es_order_recon_response_data_inner_order_splits_inner.py b/test/test_es_order_recon_response_data_inner_order_splits_inner.py index 4afb9e34..29de716c 100644 --- a/test/test_es_order_recon_response_data_inner_order_splits_inner.py +++ b/test/test_es_order_recon_response_data_inner_order_splits_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_es_order_recon_response_data_inner_order_splits_inner_split_inner.py b/test/test_es_order_recon_response_data_inner_order_splits_inner_split_inner.py index db6ecc71..38ddb60b 100644 --- a/test/test_es_order_recon_response_data_inner_order_splits_inner_split_inner.py +++ b/test/test_es_order_recon_response_data_inner_order_splits_inner_split_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_evidence.py b/test/test_evidence.py index 7f2e77e2..68ab7554 100644 --- a/test/test_evidence.py +++ b/test/test_evidence.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_evidence_submitted_to_contest_dispute.py b/test/test_evidence_submitted_to_contest_dispute.py index 26fa0a2d..bc9a68cc 100644 --- a/test/test_evidence_submitted_to_contest_dispute.py +++ b/test/test_evidence_submitted_to_contest_dispute.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_evidences_to_contest_dispute.py b/test/test_evidences_to_contest_dispute.py index a55647f2..fc8b50a5 100644 --- a/test/test_evidences_to_contest_dispute.py +++ b/test/test_evidences_to_contest_dispute.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_extended_cart_details.py b/test/test_extended_cart_details.py index 0b4c8e1a..69b50d2a 100644 --- a/test/test_extended_cart_details.py +++ b/test/test_extended_cart_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_extended_customer_details.py b/test/test_extended_customer_details.py index 08b1c4ef..d47af92e 100644 --- a/test/test_extended_customer_details.py +++ b/test/test_extended_customer_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_fetch_recon_request.py b/test/test_fetch_recon_request.py index 46783128..f921538e 100644 --- a/test/test_fetch_recon_request.py +++ b/test/test_fetch_recon_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_fetch_recon_request_filters.py b/test/test_fetch_recon_request_filters.py index a25aa7cc..b6a38df3 100644 --- a/test/test_fetch_recon_request_filters.py +++ b/test/test_fetch_recon_request_filters.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_fetch_recon_request_pagination.py b/test/test_fetch_recon_request_pagination.py index 05d7ff5c..67965949 100644 --- a/test/test_fetch_recon_request_pagination.py +++ b/test/test_fetch_recon_request_pagination.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_fetch_settlements_request.py b/test/test_fetch_settlements_request.py index f888432f..aa0eb6c7 100644 --- a/test/test_fetch_settlements_request.py +++ b/test/test_fetch_settlements_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_fetch_settlements_request_filters.py b/test/test_fetch_settlements_request_filters.py index cab1fa03..39b78031 100644 --- a/test/test_fetch_settlements_request_filters.py +++ b/test/test_fetch_settlements_request_filters.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_fetch_settlements_request_pagination.py b/test/test_fetch_settlements_request_pagination.py index 956397e0..d5c8c6e0 100644 --- a/test/test_fetch_settlements_request_pagination.py +++ b/test/test_fetch_settlements_request_pagination.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_fetch_terminal_qr_codes_entity.py b/test/test_fetch_terminal_qr_codes_entity.py index 265dd015..87658948 100644 --- a/test/test_fetch_terminal_qr_codes_entity.py +++ b/test/test_fetch_terminal_qr_codes_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_idempotency_error.py b/test/test_idempotency_error.py index 9c7dca43..fa5de601 100644 --- a/test/test_idempotency_error.py +++ b/test/test_idempotency_error.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_instrument_entity.py b/test/test_instrument_entity.py index 5565f9f9..58cc0085 100644 --- a/test/test_instrument_entity.py +++ b/test/test_instrument_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_instrument_webhook.py b/test/test_instrument_webhook.py index 94a1c387..f8941424 100644 --- a/test/test_instrument_webhook.py +++ b/test/test_instrument_webhook.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_instrument_webhook_data.py b/test/test_instrument_webhook_data.py index 62d4c377..8171faf1 100644 --- a/test/test_instrument_webhook_data.py +++ b/test/test_instrument_webhook_data.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_instrument_webhook_data_entity.py b/test/test_instrument_webhook_data_entity.py index 8b1d3f10..47939340 100644 --- a/test/test_instrument_webhook_data_entity.py +++ b/test/test_instrument_webhook_data_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_kyc_details.py b/test/test_kyc_details.py index fcf844e5..2d49bfd9 100644 --- a/test/test_kyc_details.py +++ b/test/test_kyc_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_link_customer_details_entity.py b/test/test_link_customer_details_entity.py index 06df396b..7e9deed9 100644 --- a/test/test_link_customer_details_entity.py +++ b/test/test_link_customer_details_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_link_entity.py b/test/test_link_entity.py index 219aab2d..e0b27a53 100644 --- a/test/test_link_entity.py +++ b/test/test_link_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_link_meta_response_entity.py b/test/test_link_meta_response_entity.py index 39e88a3f..7d3a7885 100644 --- a/test/test_link_meta_response_entity.py +++ b/test/test_link_meta_response_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_link_notify_entity.py b/test/test_link_notify_entity.py index 4e75c8f2..4803bb91 100644 --- a/test/test_link_notify_entity.py +++ b/test/test_link_notify_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_manage_subscription_payment_request.py b/test/test_manage_subscription_payment_request.py index f60f9be2..128662b5 100644 --- a/test/test_manage_subscription_payment_request.py +++ b/test/test_manage_subscription_payment_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_manage_subscription_payment_request_action_details.py b/test/test_manage_subscription_payment_request_action_details.py index fa1bfd54..a79ec98f 100644 --- a/test/test_manage_subscription_payment_request_action_details.py +++ b/test/test_manage_subscription_payment_request_action_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_manage_subscription_request.py b/test/test_manage_subscription_request.py index 6e6098f0..a5308d2c 100644 --- a/test/test_manage_subscription_request.py +++ b/test/test_manage_subscription_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_manage_subscription_request_action_details.py b/test/test_manage_subscription_request_action_details.py index f8d6da3a..b9a7d93f 100644 --- a/test/test_manage_subscription_request_action_details.py +++ b/test/test_manage_subscription_request_action_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_net_banking_payment_method.py b/test/test_net_banking_payment_method.py index f9437a41..527054a1 100644 --- a/test/test_net_banking_payment_method.py +++ b/test/test_net_banking_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_netbanking.py b/test/test_netbanking.py index c4999703..e56ef6c1 100644 --- a/test/test_netbanking.py +++ b/test/test_netbanking.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_all.py b/test/test_offer_all.py index 8cb79c0e..37b33288 100644 --- a/test/test_offer_all.py +++ b/test/test_offer_all.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_card.py b/test/test_offer_card.py index fc5dac93..d91797c3 100644 --- a/test/test_offer_card.py +++ b/test/test_offer_card.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_details.py b/test/test_offer_details.py index 085ff56e..548bf260 100644 --- a/test/test_offer_details.py +++ b/test/test_offer_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_emi.py b/test/test_offer_emi.py index 0232ec2c..792232ec 100644 --- a/test/test_offer_emi.py +++ b/test/test_offer_emi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_entity.py b/test/test_offer_entity.py index 4b78e82c..e9c977ee 100644 --- a/test/test_offer_entity.py +++ b/test/test_offer_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_extended_details.py b/test/test_offer_extended_details.py index 813a31a9..0a66b96e 100644 --- a/test/test_offer_extended_details.py +++ b/test/test_offer_extended_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_filters.py b/test/test_offer_filters.py index d7e9b66f..6579a1e4 100644 --- a/test/test_offer_filters.py +++ b/test/test_offer_filters.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_meta.py b/test/test_offer_meta.py index 4f4a69e5..e3b32722 100644 --- a/test/test_offer_meta.py +++ b/test/test_offer_meta.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_nb.py b/test/test_offer_nb.py index 42ab6256..e89500a2 100644 --- a/test/test_offer_nb.py +++ b/test/test_offer_nb.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_nb_netbanking.py b/test/test_offer_nb_netbanking.py index d69dd4bf..c05c6fd0 100644 --- a/test/test_offer_nb_netbanking.py +++ b/test/test_offer_nb_netbanking.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_paylater.py b/test/test_offer_paylater.py index f5cfb780..9dc7368e 100644 --- a/test/test_offer_paylater.py +++ b/test/test_offer_paylater.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_queries.py b/test/test_offer_queries.py index 3a609eb4..88aea634 100644 --- a/test/test_offer_queries.py +++ b/test/test_offer_queries.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_tnc.py b/test/test_offer_tnc.py index 2127b2ff..ced27337 100644 --- a/test/test_offer_tnc.py +++ b/test/test_offer_tnc.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_type.py b/test/test_offer_type.py index 64b73d13..0b5d43b5 100644 --- a/test/test_offer_type.py +++ b/test/test_offer_type.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_upi.py b/test/test_offer_upi.py index 4a2f2bfb..a8fede6a 100644 --- a/test/test_offer_upi.py +++ b/test/test_offer_upi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_validations.py b/test/test_offer_validations.py index 821d991f..30741fb9 100644 --- a/test/test_offer_validations.py +++ b/test/test_offer_validations.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_validations_payment_method.py b/test/test_offer_validations_payment_method.py index 31c9f13a..352d0668 100644 --- a/test/test_offer_validations_payment_method.py +++ b/test/test_offer_validations_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offer_wallet.py b/test/test_offer_wallet.py index ae53bad8..383db2c4 100644 --- a/test/test_offer_wallet.py +++ b/test/test_offer_wallet.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_offers_api.py b/test/test_offers_api.py index cd08ac21..a6644e52 100644 --- a/test/test_offers_api.py +++ b/test/test_offers_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_onboard_soundbox_vpa_request.py b/test/test_onboard_soundbox_vpa_request.py index 0106c818..02cafdb5 100644 --- a/test/test_onboard_soundbox_vpa_request.py +++ b/test/test_onboard_soundbox_vpa_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_order_authenticate_entity.py b/test/test_order_authenticate_entity.py index 5b25ffbb..2efc8b07 100644 --- a/test/test_order_authenticate_entity.py +++ b/test/test_order_authenticate_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_order_authenticate_payment_request.py b/test/test_order_authenticate_payment_request.py index c339281d..bd6247c6 100644 --- a/test/test_order_authenticate_payment_request.py +++ b/test/test_order_authenticate_payment_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_order_create_refund_request.py b/test/test_order_create_refund_request.py index df9182eb..5c845ea0 100644 --- a/test/test_order_create_refund_request.py +++ b/test/test_order_create_refund_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_order_delivery_status.py b/test/test_order_delivery_status.py index 841cf810..976b978c 100644 --- a/test/test_order_delivery_status.py +++ b/test/test_order_delivery_status.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_order_details_in_disputes_entity.py b/test/test_order_details_in_disputes_entity.py index 990f7db7..91ea0493 100644 --- a/test/test_order_details_in_disputes_entity.py +++ b/test/test_order_details_in_disputes_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_order_entity.py b/test/test_order_entity.py index eb9c7dfc..3f046047 100644 --- a/test/test_order_entity.py +++ b/test/test_order_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_order_extended_data_entity.py b/test/test_order_extended_data_entity.py index cb0ef125..4ecbc587 100644 --- a/test/test_order_extended_data_entity.py +++ b/test/test_order_extended_data_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_order_meta.py b/test/test_order_meta.py index 16b77729..a647f640 100644 --- a/test/test_order_meta.py +++ b/test/test_order_meta.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_order_pay_data.py b/test/test_order_pay_data.py index 221975a3..35ee1a3f 100644 --- a/test/test_order_pay_data.py +++ b/test/test_order_pay_data.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_orders_api.py b/test/test_orders_api.py index d661f117..097b237e 100644 --- a/test/test_orders_api.py +++ b/test/test_orders_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_pay_order_entity.py b/test/test_pay_order_entity.py index 557323bf..f352e201 100644 --- a/test/test_pay_order_entity.py +++ b/test/test_pay_order_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_pay_order_request.py b/test/test_pay_order_request.py index a2c4d633..b4c127e5 100644 --- a/test/test_pay_order_request.py +++ b/test/test_pay_order_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_pay_order_request_payment_method.py b/test/test_pay_order_request_payment_method.py index 93288c50..be7ed8c1 100644 --- a/test/test_pay_order_request_payment_method.py +++ b/test/test_pay_order_request_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_paylater.py b/test/test_paylater.py index b3ea4ca6..9e3277d3 100644 --- a/test/test_paylater.py +++ b/test/test_paylater.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_paylater_entity.py b/test/test_paylater_entity.py index 6214a1c3..8a7da196 100644 --- a/test/test_paylater_entity.py +++ b/test/test_paylater_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_paylater_offer.py b/test/test_paylater_offer.py index 854b0c4f..85655b11 100644 --- a/test/test_paylater_offer.py +++ b/test/test_paylater_offer.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_paylater_payment_method.py b/test/test_paylater_payment_method.py index d26161c2..dcc18bd4 100644 --- a/test/test_paylater_payment_method.py +++ b/test/test_paylater_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_entity.py b/test/test_payment_entity.py index 4488a3d4..90054903 100644 --- a/test/test_payment_entity.py +++ b/test/test_payment_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_link_customer_details.py b/test/test_payment_link_customer_details.py index fa1591fe..fd90a99c 100644 --- a/test/test_payment_link_customer_details.py +++ b/test/test_payment_link_customer_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_link_order_entity.py b/test/test_payment_link_order_entity.py index e1e9a352..f486c563 100644 --- a/test/test_payment_link_order_entity.py +++ b/test/test_payment_link_order_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_links_api.py b/test/test_payment_links_api.py index 365ac82e..4b1c9c1e 100644 --- a/test/test_payment_links_api.py +++ b/test/test_payment_links_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_payment_method_app_in_payments_entity.py b/test/test_payment_method_app_in_payments_entity.py index e48421a9..a0e4ef32 100644 --- a/test/test_payment_method_app_in_payments_entity.py +++ b/test/test_payment_method_app_in_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_app_in_payments_entity_app.py b/test/test_payment_method_app_in_payments_entity_app.py index 83f5e0c4..6c51decc 100644 --- a/test/test_payment_method_app_in_payments_entity_app.py +++ b/test/test_payment_method_app_in_payments_entity_app.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_bank_transfer_in_payments_entity.py b/test/test_payment_method_bank_transfer_in_payments_entity.py index 25cdb419..f17bda77 100644 --- a/test/test_payment_method_bank_transfer_in_payments_entity.py +++ b/test/test_payment_method_bank_transfer_in_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_bank_transfer_in_payments_entity_banktransfer.py b/test/test_payment_method_bank_transfer_in_payments_entity_banktransfer.py index d4d5d716..38fb11e4 100644 --- a/test/test_payment_method_bank_transfer_in_payments_entity_banktransfer.py +++ b/test/test_payment_method_bank_transfer_in_payments_entity_banktransfer.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_card_emiin_payments_entity.py b/test/test_payment_method_card_emiin_payments_entity.py index d84289f0..a285b687 100644 --- a/test/test_payment_method_card_emiin_payments_entity.py +++ b/test/test_payment_method_card_emiin_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_card_emiin_payments_entity_emi.py b/test/test_payment_method_card_emiin_payments_entity_emi.py index 819a9451..e5a40d9a 100644 --- a/test/test_payment_method_card_emiin_payments_entity_emi.py +++ b/test/test_payment_method_card_emiin_payments_entity_emi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_card_emiin_payments_entity_emi_emi_details.py b/test/test_payment_method_card_emiin_payments_entity_emi_emi_details.py index ea4838e0..413f54d4 100644 --- a/test/test_payment_method_card_emiin_payments_entity_emi_emi_details.py +++ b/test/test_payment_method_card_emiin_payments_entity_emi_emi_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_card_in_payments_entity.py b/test/test_payment_method_card_in_payments_entity.py index c5d3646c..fb1f05d6 100644 --- a/test/test_payment_method_card_in_payments_entity.py +++ b/test/test_payment_method_card_in_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_card_in_payments_entity_card.py b/test/test_payment_method_card_in_payments_entity_card.py index 2c170908..969c568e 100644 --- a/test/test_payment_method_card_in_payments_entity_card.py +++ b/test/test_payment_method_card_in_payments_entity_card.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_cardless_emiin_payments_entity.py b/test/test_payment_method_cardless_emiin_payments_entity.py index c532d51e..518d351c 100644 --- a/test/test_payment_method_cardless_emiin_payments_entity.py +++ b/test/test_payment_method_cardless_emiin_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_net_banking_in_payments_entity.py b/test/test_payment_method_net_banking_in_payments_entity.py index 9403e2af..f47a12e4 100644 --- a/test/test_payment_method_net_banking_in_payments_entity.py +++ b/test/test_payment_method_net_banking_in_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_net_banking_in_payments_entity_netbanking.py b/test/test_payment_method_net_banking_in_payments_entity_netbanking.py index 402b5848..a2518136 100644 --- a/test/test_payment_method_net_banking_in_payments_entity_netbanking.py +++ b/test/test_payment_method_net_banking_in_payments_entity_netbanking.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_others_in_payments_entity.py b/test/test_payment_method_others_in_payments_entity.py index a526f13e..230918ef 100644 --- a/test/test_payment_method_others_in_payments_entity.py +++ b/test/test_payment_method_others_in_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_paylater_in_payments_entity.py b/test/test_payment_method_paylater_in_payments_entity.py index 1bea0b49..db2b4414 100644 --- a/test/test_payment_method_paylater_in_payments_entity.py +++ b/test/test_payment_method_paylater_in_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_upiin_payments_entity.py b/test/test_payment_method_upiin_payments_entity.py index 9be9c1e8..71b25dbd 100644 --- a/test/test_payment_method_upiin_payments_entity.py +++ b/test/test_payment_method_upiin_payments_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_method_upiin_payments_entity_upi.py b/test/test_payment_method_upiin_payments_entity_upi.py index 57df2700..82b2e843 100644 --- a/test/test_payment_method_upiin_payments_entity_upi.py +++ b/test/test_payment_method_upiin_payments_entity_upi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_methods_filters.py b/test/test_payment_methods_filters.py index c0448b09..fc1fe9f7 100644 --- a/test/test_payment_methods_filters.py +++ b/test/test_payment_methods_filters.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_methods_queries.py b/test/test_payment_methods_queries.py index 6543de14..5e7488e6 100644 --- a/test/test_payment_methods_queries.py +++ b/test/test_payment_methods_queries.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_mode_details.py b/test/test_payment_mode_details.py index 7af59b48..b070feac 100644 --- a/test/test_payment_mode_details.py +++ b/test/test_payment_mode_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_webhook.py b/test/test_payment_webhook.py index 5753f901..7cd79c0c 100644 --- a/test/test_payment_webhook.py +++ b/test/test_payment_webhook.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_webhook_customer_entity.py b/test/test_payment_webhook_customer_entity.py index d3efaa64..d62659bc 100644 --- a/test/test_payment_webhook_customer_entity.py +++ b/test/test_payment_webhook_customer_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_webhook_data_entity.py b/test/test_payment_webhook_data_entity.py index 863493df..f6ae72d5 100644 --- a/test/test_payment_webhook_data_entity.py +++ b/test/test_payment_webhook_data_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_webhook_error_entity.py b/test/test_payment_webhook_error_entity.py index 832cd70d..421c026d 100644 --- a/test/test_payment_webhook_error_entity.py +++ b/test/test_payment_webhook_error_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_webhook_gateway_details_entity.py b/test/test_payment_webhook_gateway_details_entity.py index 2a39f254..f96407ea 100644 --- a/test/test_payment_webhook_gateway_details_entity.py +++ b/test/test_payment_webhook_gateway_details_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payment_webhook_order_entity.py b/test/test_payment_webhook_order_entity.py index d96adfc1..da7ea783 100644 --- a/test/test_payment_webhook_order_entity.py +++ b/test/test_payment_webhook_order_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_payments_api.py b/test/test_payments_api.py index 672b5fc6..492c2290 100644 --- a/test/test_payments_api.py +++ b/test/test_payments_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_pg_reconciliation_api.py b/test/test_pg_reconciliation_api.py index 57c03899..871ffe8e 100644 --- a/test/test_pg_reconciliation_api.py +++ b/test/test_pg_reconciliation_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_plan_entity.py b/test/test_plan_entity.py index 3590700a..2500ecc2 100644 --- a/test/test_plan_entity.py +++ b/test/test_plan_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_rate_limit_error.py b/test/test_rate_limit_error.py index b63bc100..fc8bdd34 100644 --- a/test/test_rate_limit_error.py +++ b/test/test_rate_limit_error.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_recon_entity.py b/test/test_recon_entity.py index 37ae963a..660455c6 100644 --- a/test/test_recon_entity.py +++ b/test/test_recon_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_recon_entity_data_inner.py b/test/test_recon_entity_data_inner.py index d2a3853b..c862bdbb 100644 --- a/test/test_recon_entity_data_inner.py +++ b/test/test_recon_entity_data_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_refund_entity.py b/test/test_refund_entity.py index 47d59667..5c3c5e19 100644 --- a/test/test_refund_entity.py +++ b/test/test_refund_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_refund_speed.py b/test/test_refund_speed.py index 2c2d0e0c..60fc514c 100644 --- a/test/test_refund_speed.py +++ b/test/test_refund_speed.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_refund_webhook.py b/test/test_refund_webhook.py index 92c60c5d..252294ae 100644 --- a/test/test_refund_webhook.py +++ b/test/test_refund_webhook.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_refund_webhook_data_entity.py b/test/test_refund_webhook_data_entity.py index 97ca2575..219315b4 100644 --- a/test/test_refund_webhook_data_entity.py +++ b/test/test_refund_webhook_data_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_refunds_api.py b/test/test_refunds_api.py index b2d6f4c1..a16fe050 100644 --- a/test/test_refunds_api.py +++ b/test/test_refunds_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_saved_instrument_meta.py b/test/test_saved_instrument_meta.py index c8864e2d..233dd8a1 100644 --- a/test/test_saved_instrument_meta.py +++ b/test/test_saved_instrument_meta.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_schedule_option.py b/test/test_schedule_option.py index fe6a7fdf..e528ab04 100644 --- a/test/test_schedule_option.py +++ b/test/test_schedule_option.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_settlement_entity.py b/test/test_settlement_entity.py index 8582c231..b1d121b4 100644 --- a/test/test_settlement_entity.py +++ b/test/test_settlement_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_settlement_fetch_recon_request.py b/test/test_settlement_fetch_recon_request.py index e43b2a8f..b43dada9 100644 --- a/test/test_settlement_fetch_recon_request.py +++ b/test/test_settlement_fetch_recon_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_settlement_recon_entity.py b/test/test_settlement_recon_entity.py index 4c55f513..4b2a6c95 100644 --- a/test/test_settlement_recon_entity.py +++ b/test/test_settlement_recon_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_settlement_recon_entity_data_inner.py b/test/test_settlement_recon_entity_data_inner.py index 97e5b0bc..77507a0a 100644 --- a/test/test_settlement_recon_entity_data_inner.py +++ b/test/test_settlement_recon_entity_data_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_settlement_reconciliation_api.py b/test/test_settlement_reconciliation_api.py index c9e451b4..38df97ee 100644 --- a/test/test_settlement_reconciliation_api.py +++ b/test/test_settlement_reconciliation_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_settlement_webhook.py b/test/test_settlement_webhook.py index 11eae3ab..039908dc 100644 --- a/test/test_settlement_webhook.py +++ b/test/test_settlement_webhook.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_settlement_webhook_data_entity.py b/test/test_settlement_webhook_data_entity.py index 77eb2323..dd2b642c 100644 --- a/test/test_settlement_webhook_data_entity.py +++ b/test/test_settlement_webhook_data_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_settlements_api.py b/test/test_settlements_api.py index 29ca7d7b..9aa336d1 100644 --- a/test/test_settlements_api.py +++ b/test/test_settlements_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_shipment_details.py b/test/test_shipment_details.py index 1e7eb8e4..480d0de0 100644 --- a/test/test_shipment_details.py +++ b/test/test_shipment_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_simulate_request.py b/test/test_simulate_request.py index 6f50a807..b40f01b0 100644 --- a/test/test_simulate_request.py +++ b/test/test_simulate_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_simulation_api.py b/test/test_simulation_api.py index cb820aa7..2b78347e 100644 --- a/test/test_simulation_api.py +++ b/test/test_simulation_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_simulation_response.py b/test/test_simulation_response.py index cc85da61..6342e355 100644 --- a/test/test_simulation_response.py +++ b/test/test_simulation_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_soft_pos_api.py b/test/test_soft_pos_api.py index 5806b0aa..e6d4024a 100644 --- a/test/test_soft_pos_api.py +++ b/test/test_soft_pos_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_soundbox_vpa_entity.py b/test/test_soundbox_vpa_entity.py index 5cebcc25..31b7d4ce 100644 --- a/test/test_soundbox_vpa_entity.py +++ b/test/test_soundbox_vpa_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_split_after_payment_request.py b/test/test_split_after_payment_request.py index f7ceaa4a..b4f5bf05 100644 --- a/test/test_split_after_payment_request.py +++ b/test/test_split_after_payment_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_split_after_payment_request_split_inner.py b/test/test_split_after_payment_request_split_inner.py index fef729d3..9c3fc11d 100644 --- a/test/test_split_after_payment_request_split_inner.py +++ b/test/test_split_after_payment_request_split_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_split_after_payment_response.py b/test/test_split_after_payment_response.py index a4dbd8d8..3c71a7e1 100644 --- a/test/test_split_after_payment_response.py +++ b/test/test_split_after_payment_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_split_order_recon_success_response.py b/test/test_split_order_recon_success_response.py index 0a5e20f7..286c29f7 100644 --- a/test/test_split_order_recon_success_response.py +++ b/test/test_split_order_recon_success_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_split_order_recon_success_response_settlement.py b/test/test_split_order_recon_success_response_settlement.py index 5fb0ac37..1a255b0d 100644 --- a/test/test_split_order_recon_success_response_settlement.py +++ b/test/test_split_order_recon_success_response_settlement.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_split_order_recon_success_response_vendors_inner.py b/test/test_split_order_recon_success_response_vendors_inner.py index c841bc0f..a07d0c23 100644 --- a/test/test_split_order_recon_success_response_vendors_inner.py +++ b/test/test_split_order_recon_success_response_vendors_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_static_qr_response_entity.py b/test/test_static_qr_response_entity.py index 70c7f616..d869cb6f 100644 --- a/test/test_static_qr_response_entity.py +++ b/test/test_static_qr_response_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_static_split_request.py b/test/test_static_split_request.py index 9372dc87..e07c42ea 100644 --- a/test/test_static_split_request.py +++ b/test/test_static_split_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_static_split_request_scheme_inner.py b/test/test_static_split_request_scheme_inner.py index 8fba3fc5..10f80aef 100644 --- a/test/test_static_split_request_scheme_inner.py +++ b/test/test_static_split_request_scheme_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_static_split_response.py b/test/test_static_split_response.py index b2c00fde..aeb8dbab 100644 --- a/test/test_static_split_response.py +++ b/test/test_static_split_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_static_split_response_scheme_inner.py b/test/test_static_split_response_scheme_inner.py index 68641d87..fd12ff87 100644 --- a/test/test_static_split_response_scheme_inner.py +++ b/test/test_static_split_response_scheme_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_api.py b/test/test_subscription_api.py index 057949ce..d683fb80 100644 --- a/test/test_subscription_api.py +++ b/test/test_subscription_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_subscription_bank_details.py b/test/test_subscription_bank_details.py index 4a907fb8..a45302fa 100644 --- a/test/test_subscription_bank_details.py +++ b/test/test_subscription_bank_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_customer_details.py b/test/test_subscription_customer_details.py index c50f9f0a..a7713532 100644 --- a/test/test_subscription_customer_details.py +++ b/test/test_subscription_customer_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_eligibility_request.py b/test/test_subscription_eligibility_request.py index 1b597452..3d0a6dc1 100644 --- a/test/test_subscription_eligibility_request.py +++ b/test/test_subscription_eligibility_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_eligibility_request_filters.py b/test/test_subscription_eligibility_request_filters.py index de2cfe01..1275d3c1 100644 --- a/test/test_subscription_eligibility_request_filters.py +++ b/test/test_subscription_eligibility_request_filters.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_eligibility_request_queries.py b/test/test_subscription_eligibility_request_queries.py index 9cda8176..30507afc 100644 --- a/test/test_subscription_eligibility_request_queries.py +++ b/test/test_subscription_eligibility_request_queries.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_eligibility_response.py b/test/test_subscription_eligibility_response.py index 98d77dcb..46036501 100644 --- a/test/test_subscription_eligibility_response.py +++ b/test/test_subscription_eligibility_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_entity.py b/test/test_subscription_entity.py index 23d294e6..9382b867 100644 --- a/test/test_subscription_entity.py +++ b/test/test_subscription_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_entity_subscription_meta.py b/test/test_subscription_entity_subscription_meta.py index 85424883..2aeab660 100644 --- a/test/test_subscription_entity_subscription_meta.py +++ b/test/test_subscription_entity_subscription_meta.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_payment_entity.py b/test/test_subscription_payment_entity.py index 7b287f44..4c007d8d 100644 --- a/test/test_subscription_payment_entity.py +++ b/test/test_subscription_payment_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_payment_entity_failure_details.py b/test/test_subscription_payment_entity_failure_details.py index b4e4624e..eda7c104 100644 --- a/test/test_subscription_payment_entity_failure_details.py +++ b/test/test_subscription_payment_entity_failure_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_payment_refund_entity.py b/test/test_subscription_payment_refund_entity.py index c6bfbc97..38203c2e 100644 --- a/test/test_subscription_payment_refund_entity.py +++ b/test/test_subscription_payment_refund_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_subscription_payment_split_item.py b/test/test_subscription_payment_split_item.py index 53c099ac..7eeaca26 100644 --- a/test/test_subscription_payment_split_item.py +++ b/test/test_subscription_payment_split_item.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_terminal_details.py b/test/test_terminal_details.py index 40c2d720..18516c94 100644 --- a/test/test_terminal_details.py +++ b/test/test_terminal_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_terminal_entity.py b/test/test_terminal_entity.py index 5a69d8a4..04e8f7d1 100644 --- a/test/test_terminal_entity.py +++ b/test/test_terminal_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_terminal_payment_entity.py b/test/test_terminal_payment_entity.py index eae2a0b2..9070acee 100644 --- a/test/test_terminal_payment_entity.py +++ b/test/test_terminal_payment_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_terminal_payment_entity_payment_method.py b/test/test_terminal_payment_entity_payment_method.py index 3c02beab..0ea37dab 100644 --- a/test/test_terminal_payment_entity_payment_method.py +++ b/test/test_terminal_payment_entity_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_terminal_transaction_entity.py b/test/test_terminal_transaction_entity.py index ca0d8cf2..b25c94cd 100644 --- a/test/test_terminal_transaction_entity.py +++ b/test/test_terminal_transaction_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_terminate_order_request.py b/test/test_terminate_order_request.py index 5eea86eb..aae81813 100644 --- a/test/test_terminate_order_request.py +++ b/test/test_terminate_order_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_token_vault_api.py b/test/test_token_vault_api.py index 778bee47..93c349f6 100644 --- a/test/test_token_vault_api.py +++ b/test/test_token_vault_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import cashfree_pg diff --git a/test/test_transfer_details.py b/test/test_transfer_details.py index cd257492..88e46609 100644 --- a/test/test_transfer_details.py +++ b/test/test_transfer_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_transfer_details_tags_inner.py b/test/test_transfer_details_tags_inner.py index e62088ac..e94f850a 100644 --- a/test/test_transfer_details_tags_inner.py +++ b/test/test_transfer_details_tags_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_update_order_extended_data_entity.py b/test/test_update_order_extended_data_entity.py index 20a42920..a404d1bd 100644 --- a/test/test_update_order_extended_data_entity.py +++ b/test/test_update_order_extended_data_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_update_order_extended_request.py b/test/test_update_order_extended_request.py index de274866..281eb21a 100644 --- a/test/test_update_order_extended_request.py +++ b/test/test_update_order_extended_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_update_soundbox_vpa_request.py b/test/test_update_soundbox_vpa_request.py index b1e2185f..707bc30e 100644 --- a/test/test_update_soundbox_vpa_request.py +++ b/test/test_update_soundbox_vpa_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_update_terminal_entity.py b/test/test_update_terminal_entity.py index 5fb8c8bd..0925274d 100644 --- a/test/test_update_terminal_entity.py +++ b/test/test_update_terminal_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_update_terminal_request.py b/test/test_update_terminal_request.py index 8c7627fc..c930cfa5 100644 --- a/test/test_update_terminal_request.py +++ b/test/test_update_terminal_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_update_terminal_request_terminal_meta.py b/test/test_update_terminal_request_terminal_meta.py index a24dd0e0..94db436e 100644 --- a/test/test_update_terminal_request_terminal_meta.py +++ b/test/test_update_terminal_request_terminal_meta.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_update_terminal_status_request.py b/test/test_update_terminal_status_request.py index e145ad7c..f0895be6 100644 --- a/test/test_update_terminal_status_request.py +++ b/test/test_update_terminal_status_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_update_vendor_request.py b/test/test_update_vendor_request.py index 9b5bb759..8d9b7479 100644 --- a/test/test_update_vendor_request.py +++ b/test/test_update_vendor_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_update_vendor_response.py b/test/test_update_vendor_response.py index c0a0ed02..42da07ab 100644 --- a/test/test_update_vendor_response.py +++ b/test/test_update_vendor_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_upi.py b/test/test_upi.py index 0f80348d..338d40f2 100644 --- a/test/test_upi.py +++ b/test/test_upi.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_upi_authorize_details.py b/test/test_upi_authorize_details.py index 1ab456a9..0c8ead99 100644 --- a/test/test_upi_authorize_details.py +++ b/test/test_upi_authorize_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_upi_details.py b/test/test_upi_details.py index 5a5fa14c..527f1064 100644 --- a/test/test_upi_details.py +++ b/test/test_upi_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_upi_payment_method.py b/test/test_upi_payment_method.py index a409737a..520e9270 100644 --- a/test/test_upi_payment_method.py +++ b/test/test_upi_payment_method.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_upload_pnach_image_response.py b/test/test_upload_pnach_image_response.py index fc5190d6..34fda178 100644 --- a/test/test_upload_pnach_image_response.py +++ b/test/test_upload_pnach_image_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_upload_terminal_docs.py b/test/test_upload_terminal_docs.py index 78497ca1..3f7b02b4 100644 --- a/test/test_upload_terminal_docs.py +++ b/test/test_upload_terminal_docs.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_upload_terminal_docs_entity.py b/test/test_upload_terminal_docs_entity.py index b507fe47..d76e33ed 100644 --- a/test/test_upload_terminal_docs_entity.py +++ b/test/test_upload_terminal_docs_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_upload_vendor_documents_response.py b/test/test_upload_vendor_documents_response.py index e7481969..4125a886 100644 --- a/test/test_upload_vendor_documents_response.py +++ b/test/test_upload_vendor_documents_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_vendor_adjustment_request.py b/test/test_vendor_adjustment_request.py index bd6704a5..72eed46a 100644 --- a/test/test_vendor_adjustment_request.py +++ b/test/test_vendor_adjustment_request.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_vendor_adjustment_success_response.py b/test/test_vendor_adjustment_success_response.py index b6596621..ae438db6 100644 --- a/test/test_vendor_adjustment_success_response.py +++ b/test/test_vendor_adjustment_success_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_vendor_balance.py b/test/test_vendor_balance.py index 9e84a59d..54911a61 100644 --- a/test/test_vendor_balance.py +++ b/test/test_vendor_balance.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_vendor_balance_transfer_charges.py b/test/test_vendor_balance_transfer_charges.py index 4a835f4e..328fb782 100644 --- a/test/test_vendor_balance_transfer_charges.py +++ b/test/test_vendor_balance_transfer_charges.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_vendor_document_download_response.py b/test/test_vendor_document_download_response.py index dc89aa6d..37aba47f 100644 --- a/test/test_vendor_document_download_response.py +++ b/test/test_vendor_document_download_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_vendor_documents_response.py b/test/test_vendor_documents_response.py index 1eb5d6d9..bb0636a5 100644 --- a/test/test_vendor_documents_response.py +++ b/test/test_vendor_documents_response.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_vendor_entity.py b/test/test_vendor_entity.py index f36c3b5f..a272d2c7 100644 --- a/test/test_vendor_entity.py +++ b/test/test_vendor_entity.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_vendor_entity_related_docs_inner.py b/test/test_vendor_entity_related_docs_inner.py index 31157ad1..bff1df8e 100644 --- a/test/test_vendor_entity_related_docs_inner.py +++ b/test/test_vendor_entity_related_docs_inner.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_vendor_split.py b/test/test_vendor_split.py index f265c5e7..032c55f3 100644 --- a/test/test_vendor_split.py +++ b/test/test_vendor_split.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime diff --git a/test/test_wallet_offer.py b/test/test_wallet_offer.py index 1e3d9215..11201cc9 100644 --- a/test/test_wallet_offer.py +++ b/test/test_wallet_offer.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - Cashfree Payment Gateway APIs +Cashfree Payment Gateway APIs - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 2023-08-01 +Contact: developers@cashfree.com +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest import datetime