Skip to content

Commit

Permalink
Merge pull request #35 from cashfree/3.2.5
Browse files Browse the repository at this point in the history
3.2.5
  • Loading branch information
suhas-cashfree authored Jan 24, 2024
2 parents b901489 + 3f2aa62 commit 15de876
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 101 deletions.
2 changes: 1 addition & 1 deletion cashfree_pg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "3.2.4"
__version__ = "3.2.5"

# import apis into sdk package
# import ApiClient
Expand Down
66 changes: 33 additions & 33 deletions cashfree_pg/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -498,7 +498,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -653,7 +653,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -809,7 +809,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -966,7 +966,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -1124,7 +1124,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -1270,7 +1270,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -1428,7 +1428,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -1580,7 +1580,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -1739,7 +1739,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -1884,7 +1884,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -2042,7 +2042,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -2191,7 +2191,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -2343,7 +2343,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -2505,7 +2505,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -2670,7 +2670,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -2819,7 +2819,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -2965,7 +2965,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -3128,7 +3128,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -3293,7 +3293,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -3442,7 +3442,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -3594,7 +3594,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -3755,7 +3755,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -3914,7 +3914,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -4070,7 +4070,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -4225,7 +4225,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -4380,7 +4380,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -4534,7 +4534,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -4681,7 +4681,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -4836,7 +4836,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -4994,7 +4994,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -5148,7 +5148,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-3.2.4"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.5"

# process the form parameters
_form_params = []
Expand Down Expand Up @@ -5237,7 +5237,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/3.2.4/python'
self.user_agent = 'OpenAPI-Generator/3.2.5/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion cashfree_pg/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 2022-09-01\n"\
"SDK Package Version: 3.2.4".\
"SDK Package Version: 3.2.5".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
28 changes: 7 additions & 21 deletions cashfree_pg/models/offer_validations_payment_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,69 +134,55 @@ def from_json(cls, json_str: str) -> OfferValidationsPaymentMethod:
try:
instance.actual_instance = OfferAll.from_json(json_str)
match += 1
if (instance.actual_instance == None):
# do nothing
else:
if (instance.actual_instance is not None):
return instance
except (ValidationError, ValueError) as e:
error_messages.append(str(e))
# deserialize data into OfferCard
try:
instance.actual_instance = OfferCard.from_json(json_str)
match += 1
if (instance.actual_instance == None):
# do nothing
else:
if (instance.actual_instance is not None):
return instance
except (ValidationError, ValueError) as e:
error_messages.append(str(e))
# deserialize data into OfferNB
try:
instance.actual_instance = OfferNB.from_json(json_str)
match += 1
if (instance.actual_instance == None):
# do nothing
else:
if (instance.actual_instance is not None):
return instance
except (ValidationError, ValueError) as e:
error_messages.append(str(e))
# deserialize data into OfferWallet
try:
instance.actual_instance = OfferWallet.from_json(json_str)
match += 1
if (instance.actual_instance == None):
# do nothing
else:
if (instance.actual_instance is not None):
return instance
except (ValidationError, ValueError) as e:
error_messages.append(str(e))
# deserialize data into OfferUPI
try:
instance.actual_instance = OfferUPI.from_json(json_str)
match += 1
if (instance.actual_instance == None):
# do nothing
else:
if (instance.actual_instance is not None):
return instance
except (ValidationError, ValueError) as e:
error_messages.append(str(e))
# deserialize data into OfferPaylater
try:
instance.actual_instance = OfferPaylater.from_json(json_str)
match += 1
if (instance.actual_instance == None):
# do nothing
else:
if (instance.actual_instance is not None):
return instance
except (ValidationError, ValueError) as e:
error_messages.append(str(e))
# deserialize data into OfferEMI
try:
instance.actual_instance = OfferEMI.from_json(json_str)
match += 1
if (instance.actual_instance == None):
# do nothing
else:
if (instance.actual_instance is not None):
return instance
except (ValidationError, ValueError) as e:
error_messages.append(str(e))
Expand Down
Loading

0 comments on commit 15de876

Please sign in to comment.