Skip to content

Commit

Permalink
Merge pull request #45 from cashfree/3.2.11
Browse files Browse the repository at this point in the history
3.2.11
  • Loading branch information
suhas-cashfree authored Jan 29, 2024
2 parents c3f705b + 16f4302 commit ad39053
Show file tree
Hide file tree
Showing 144 changed files with 590 additions and 452 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.10"
__version__ = "3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10"
_header_params["x-sdk-platform"] = "pythonsdk-3.2.11"

# 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.10/python'
self.user_agent = 'OpenAPI-Generator/3.2.11/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.10".\
"SDK Package Version: 3.2.11".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
7 changes: 4 additions & 3 deletions cashfree_pg/models/api_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ def from_json(cls, json_str: str) -> ApiError:
@classmethod
def from_json_for_one_of(cls, json_str: str) -> ApiError:
"""Create an instance of ApiError from a JSON string"""
if "message, code, type" not in json_str:
return None
return cls.from_dict(json.loads(json_str))
temp_dict = json.loads(json_str)
if temp_dict["message, code, type"] 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"""
Expand Down
7 changes: 4 additions & 3 deletions cashfree_pg/models/api_error404.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ def from_json(cls, json_str: str) -> ApiError404:
@classmethod
def from_json_for_one_of(cls, json_str: str) -> ApiError404:
"""Create an instance of ApiError404 from a JSON string"""
if "message, code, type" not in json_str:
return None
return cls.from_dict(json.loads(json_str))
temp_dict = json.loads(json_str)
if temp_dict["message, code, type"] 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"""
Expand Down
7 changes: 4 additions & 3 deletions cashfree_pg/models/api_error409.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ def from_json(cls, json_str: str) -> ApiError409:
@classmethod
def from_json_for_one_of(cls, json_str: str) -> ApiError409:
"""Create an instance of ApiError409 from a JSON string"""
if "message, code, type" not in json_str:
return None
return cls.from_dict(json.loads(json_str))
temp_dict = json.loads(json_str)
if temp_dict["message, code, type"] 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"""
Expand Down
7 changes: 4 additions & 3 deletions cashfree_pg/models/api_error502.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ def from_json(cls, json_str: str) -> ApiError502:
@classmethod
def from_json_for_one_of(cls, json_str: str) -> ApiError502:
"""Create an instance of ApiError502 from a JSON string"""
if "message, code, type" not in json_str:
return None
return cls.from_dict(json.loads(json_str))
temp_dict = json.loads(json_str)
if temp_dict["message, code, type"] 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"""
Expand Down
7 changes: 4 additions & 3 deletions cashfree_pg/models/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ def from_json(cls, json_str: str) -> App:
@classmethod
def from_json_for_one_of(cls, json_str: str) -> App:
"""Create an instance of App from a JSON string"""
if "channel, provider, phone" not in json_str:
return None
return cls.from_dict(json.loads(json_str))
temp_dict = json.loads(json_str)
if temp_dict["channel, provider, phone"] 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"""
Expand Down
7 changes: 4 additions & 3 deletions cashfree_pg/models/app_payment_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ def from_json(cls, json_str: str) -> AppPaymentMethod:
@classmethod
def from_json_for_one_of(cls, json_str: str) -> AppPaymentMethod:
"""Create an instance of AppPaymentMethod from a JSON string"""
if "app" not in json_str:
return None
return cls.from_dict(json.loads(json_str))
temp_dict = json.loads(json_str)
if temp_dict["app"] 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"""
Expand Down
Loading

0 comments on commit ad39053

Please sign in to comment.