diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 71dede9..7e99d73 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -178,7 +178,6 @@ cashfree_pg/models/settlement_webhook.py cashfree_pg/models/settlement_webhook_data_entity.py cashfree_pg/models/split_after_payment_request.py cashfree_pg/models/split_after_payment_request_split_inner.py -cashfree_pg/models/split_after_payment_request_split_inner_tags_inner.py cashfree_pg/models/split_after_payment_response.py cashfree_pg/models/static_split_request.py cashfree_pg/models/static_split_request_scheme_inner.py @@ -381,7 +380,6 @@ docs/SettlementsApi.md docs/SoftPOSApi.md docs/SplitAfterPaymentRequest.md docs/SplitAfterPaymentRequestSplitInner.md -docs/SplitAfterPaymentRequestSplitInnerTagsInner.md docs/SplitAfterPaymentResponse.md docs/StaticSplitRequest.md docs/StaticSplitRequestSchemeInner.md @@ -590,7 +588,6 @@ test/test_settlements_api.py test/test_soft_pos_api.py test/test_split_after_payment_request.py test/test_split_after_payment_request_split_inner.py -test/test_split_after_payment_request_split_inner_tags_inner.py test/test_split_after_payment_response.py test/test_static_split_request.py test/test_static_split_request_scheme_inner.py diff --git a/cashfree_pg/__init__.py b/cashfree_pg/__init__.py index d16ebc1..7383c4c 100644 --- a/cashfree_pg/__init__.py +++ b/cashfree_pg/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "4.0.9" +__version__ = "4.0.10" # import apis into sdk package # import ApiClient @@ -184,7 +184,6 @@ from cashfree_pg.models.settlement_webhook_data_entity import SettlementWebhookDataEntity from cashfree_pg.models.split_after_payment_request import SplitAfterPaymentRequest from cashfree_pg.models.split_after_payment_request_split_inner import SplitAfterPaymentRequestSplitInner -from cashfree_pg.models.split_after_payment_request_split_inner_tags_inner import SplitAfterPaymentRequestSplitInnerTagsInner from cashfree_pg.models.split_after_payment_response import SplitAfterPaymentResponse from cashfree_pg.models.static_split_request import StaticSplitRequest from cashfree_pg.models.static_split_request_scheme_inner import StaticSplitRequestSchemeInner diff --git a/cashfree_pg/api_client.py b/cashfree_pg/api_client.py index 5c07656..ac5df6e 100644 --- a/cashfree_pg/api_client.py +++ b/cashfree_pg/api_client.py @@ -211,7 +211,6 @@ from cashfree_pg.models.settlement_webhook_data_entity import * from cashfree_pg.models.split_after_payment_request import * from cashfree_pg.models.split_after_payment_request_split_inner import * -from cashfree_pg.models.split_after_payment_request_split_inner_tags_inner import * from cashfree_pg.models.split_after_payment_response import * from cashfree_pg.models.static_split_request import * from cashfree_pg.models.static_split_request_scheme_inner import * @@ -389,7 +388,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -551,7 +550,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -702,7 +701,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -857,7 +856,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -1006,7 +1005,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -1164,7 +1163,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -1305,7 +1304,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -1447,7 +1446,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -1595,7 +1594,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -1737,7 +1736,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -1876,7 +1875,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -2033,7 +2032,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -2183,7 +2182,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -2339,7 +2338,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -2494,7 +2493,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -2650,7 +2649,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -2807,7 +2806,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -2965,7 +2964,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -3111,7 +3110,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -3269,7 +3268,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -3420,7 +3419,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -3582,7 +3581,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -3741,7 +3740,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -3886,7 +3885,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -4044,7 +4043,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -4193,7 +4192,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -4345,7 +4344,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -4507,7 +4506,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -4672,7 +4671,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -4821,7 +4820,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -4967,7 +4966,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -5130,7 +5129,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -5295,7 +5294,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -5444,7 +5443,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -5596,7 +5595,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -5757,7 +5756,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -5916,7 +5915,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -6072,7 +6071,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -6227,7 +6226,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -6382,7 +6381,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -6536,7 +6535,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -6683,7 +6682,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -6838,7 +6837,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -6996,7 +6995,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -7150,7 +7149,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -7304,7 +7303,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -7455,7 +7454,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -7616,7 +7615,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -7777,7 +7776,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.0.9" + _header_params["x-sdk-platform"] = "pythonsdk-4.0.10" # process the form parameters _form_params = [] @@ -7876,7 +7875,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.0.9/python' + self.user_agent = 'OpenAPI-Generator/4.0.10/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cashfree_pg/configuration.py b/cashfree_pg/configuration.py index 9e381b3..0f46ebe 100644 --- a/cashfree_pg/configuration.py +++ b/cashfree_pg/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.0.9".\ + "SDK Package Version: 4.0.10".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/cashfree_pg/models/__init__.py b/cashfree_pg/models/__init__.py index 189f1b5..2f3e6b6 100644 --- a/cashfree_pg/models/__init__.py +++ b/cashfree_pg/models/__init__.py @@ -169,7 +169,6 @@ from cashfree_pg.models.settlement_webhook_data_entity import SettlementWebhookDataEntity from cashfree_pg.models.split_after_payment_request import SplitAfterPaymentRequest from cashfree_pg.models.split_after_payment_request_split_inner import SplitAfterPaymentRequestSplitInner -from cashfree_pg.models.split_after_payment_request_split_inner_tags_inner import SplitAfterPaymentRequestSplitInnerTagsInner from cashfree_pg.models.split_after_payment_response import SplitAfterPaymentResponse from cashfree_pg.models.static_split_request import StaticSplitRequest from cashfree_pg.models.static_split_request_scheme_inner import StaticSplitRequestSchemeInner 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 7ae8cdc..273d8bf 100644 --- a/cashfree_pg/models/split_after_payment_request_split_inner.py +++ b/cashfree_pg/models/split_after_payment_request_split_inner.py @@ -19,9 +19,8 @@ import json -from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist -from cashfree_pg.models.split_after_payment_request_split_inner_tags_inner import SplitAfterPaymentRequestSplitInnerTagsInner +from typing import Dict, Optional, Union +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr class SplitAfterPaymentRequestSplitInner(BaseModel): """ @@ -30,7 +29,7 @@ class SplitAfterPaymentRequestSplitInner(BaseModel): 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[conlist(SplitAfterPaymentRequestSplitInnerTagsInner)] = Field(None, description="Provide additional data fields using tags. Sample data fields are mentioned below.") + 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") __properties = ["vendor_id", "amount", "percentage", "tags"] class Config: @@ -65,13 +64,6 @@ def to_dict(self): exclude={ }, exclude_none=True) - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item in self.tags: - if _item: - _items.append(_item.to_dict()) - _dict['tags'] = _items return _dict @classmethod @@ -87,7 +79,7 @@ def from_dict(cls, obj: dict) -> SplitAfterPaymentRequestSplitInner: "vendor_id": obj.get("vendor_id"), "amount": obj.get("amount"), "percentage": obj.get("percentage"), - "tags": [SplitAfterPaymentRequestSplitInnerTagsInner.from_dict(_item) for _item in obj.get("tags")] if obj.get("tags") is not None else None + "tags": obj.get("tags") }) return _obj diff --git a/cashfree_pg/models/split_after_payment_request_split_inner_tags_inner.py b/cashfree_pg/models/split_after_payment_request_split_inner_tags_inner.py deleted file mode 100644 index 75e989c..0000000 --- a/cashfree_pg/models/split_after_payment_request_split_inner_tags_inner.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - Cashfree Payment Gateway APIs - - Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. - - The version of the OpenAPI document: 2023-08-01 - Contact: developers@cashfree.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - 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 - -class SplitAfterPaymentRequestSplitInnerTagsInner(BaseModel): - """ - SplitAfterPaymentRequestSplitInnerTagsInner - """ - key_value_1: Optional[StrictStr] = Field(None, alias="Key Value 1") - key_value_2: Optional[StrictStr] = Field(None, alias="Key Value 2") - __properties = ["Key Value 1", "Key Value 2"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.dict(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> SplitAfterPaymentRequestSplitInnerTagsInner: - """Create an instance of SplitAfterPaymentRequestSplitInnerTagsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - @classmethod - def from_json_for_one_of(cls, json_str: str) -> SplitAfterPaymentRequestSplitInnerTagsInner: - """Create an instance of SplitAfterPaymentRequestSplitInnerTagsInner from a JSON string""" - temp_dict = json.loads(json_str) - if "Key Value 1, Key Value 2" in temp_dict.keys(): - return cls.from_dict(json.loads(json_str)) - return None - - def to_dict(self): - """Returns the dictionary representation of the model using alias""" - _dict = self.dict(by_alias=True, - exclude={ - }, - exclude_none=True) - return _dict - - @classmethod - def from_dict(cls, obj: dict) -> SplitAfterPaymentRequestSplitInnerTagsInner: - """Create an instance of SplitAfterPaymentRequestSplitInnerTagsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return SplitAfterPaymentRequestSplitInnerTagsInner.parse_obj(obj) - - _obj = SplitAfterPaymentRequestSplitInnerTagsInner.parse_obj({ - "key_value_1": obj.get("Key Value 1"), - "key_value_2": obj.get("Key Value 2") - }) - return _obj - - diff --git a/configuration.py b/configuration.py index 5bb52ea..9e381b3 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.0.7".\ + "SDK Package Version: 4.0.9".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/pyproject.toml b/pyproject.toml index 2b5c043..240134d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cashfree_pg" -version = "4.0.9" +version = "4.0.10" description = "Cashfree Payment Gateway APIs" authors = ["API Support "] license = "Apache 2.0" diff --git a/setup.py b/setup.py index 13cacd6..a21fd76 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "cashfree_pg" -VERSION = "4.0.9" +VERSION = "4.0.10" with open("README.md", "r", encoding="utf-8") as fh: readme = fh.read() PYTHON_REQUIRES = ">=3.7" diff --git a/test/test_split_after_payment_request.py b/test/test_split_after_payment_request.py index 589f9da..f7ceaa4 100644 --- a/test/test_split_after_payment_request.py +++ b/test/test_split_after_payment_request.py @@ -44,11 +44,9 @@ def make_instance(self, include_optional): vendor_id = '', amount = 1.337, percentage = 1.337, - tags = [ - cashfree_pg.models.split_after_payment_request_split_inner_tags_inner.SplitAfterPaymentRequest_split_inner_tags_inner( - key_value_1 = '', - key_value_2 = '', ) - ], ) + tags = { + 'key' : '0' + }, ) ], disable_split = True ) @@ -59,11 +57,9 @@ def make_instance(self, include_optional): vendor_id = '', amount = 1.337, percentage = 1.337, - tags = [ - cashfree_pg.models.split_after_payment_request_split_inner_tags_inner.SplitAfterPaymentRequest_split_inner_tags_inner( - key_value_1 = '', - key_value_2 = '', ) - ], ) + tags = { + 'key' : '0' + }, ) ], ) """ diff --git a/test/test_split_after_payment_request_split_inner.py b/test/test_split_after_payment_request_split_inner.py index 5c617ed..fef729d 100644 --- a/test/test_split_after_payment_request_split_inner.py +++ b/test/test_split_after_payment_request_split_inner.py @@ -42,11 +42,9 @@ def make_instance(self, include_optional): vendor_id = '', amount = 1.337, percentage = 1.337, - tags = [ - cashfree_pg.models.split_after_payment_request_split_inner_tags_inner.SplitAfterPaymentRequest_split_inner_tags_inner( - key_value_1 = '', - key_value_2 = '', ) - ] + tags = { + 'key' : '0' + } ) else : return SplitAfterPaymentRequestSplitInner(