Skip to content

Commit

Permalink
Merge pull request #44 from cashfree/3.2.10
Browse files Browse the repository at this point in the history
3.2.10
  • Loading branch information
suhas-cashfree authored Jan 28, 2024
2 parents edd9fb9 + 7e99ead commit c3f705b
Show file tree
Hide file tree
Showing 105 changed files with 137 additions and 137 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.8"
__version__ = "3.2.10"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion cashfree_pg/models/api_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ 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:
if "message, code, type" not in json_str:
return None
return cls.from_dict(json.loads(json_str))

Expand Down
2 changes: 1 addition & 1 deletion cashfree_pg/models/api_error404.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ 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:
if "message, code, type" not in json_str:
return None
return cls.from_dict(json.loads(json_str))

Expand Down
2 changes: 1 addition & 1 deletion cashfree_pg/models/api_error409.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ 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:
if "message, code, type" not in json_str:
return None
return cls.from_dict(json.loads(json_str))

Expand Down
2 changes: 1 addition & 1 deletion cashfree_pg/models/api_error502.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ 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:
if "message, code, type" not in json_str:
return None
return cls.from_dict(json.loads(json_str))

Expand Down
2 changes: 1 addition & 1 deletion cashfree_pg/models/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ 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:
if "channel, provider, phone" not in json_str:
return None
return cls.from_dict(json.loads(json_str))

Expand Down
2 changes: 1 addition & 1 deletion cashfree_pg/models/authentication_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def from_json(cls, json_str: str) -> AuthenticationError:
@classmethod
def from_json_for_one_of(cls, json_str: str) -> AuthenticationError:
"""Create an instance of AuthenticationError from a JSON string"""
if "message", "code", "type" not in json_str:
if "message, code, type" not in json_str:
return None
return cls.from_dict(json.loads(json_str))

Expand Down
2 changes: 1 addition & 1 deletion cashfree_pg/models/authorization_in_payments_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def from_json(cls, json_str: str) -> AuthorizationInPaymentsEntity:
@classmethod
def from_json_for_one_of(cls, json_str: str) -> AuthorizationInPaymentsEntity:
"""Create an instance of AuthorizationInPaymentsEntity from a JSON string"""
if "action", "status", "captured_amount", "start_time", "end_time", "approve_by", "action_reference", "action_time" not in json_str:
if "action, status, captured_amount, start_time, end_time, approve_by, action_reference, action_time" not in json_str:
return None
return cls.from_dict(json.loads(json_str))

Expand Down
2 changes: 1 addition & 1 deletion cashfree_pg/models/authorize_order_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def from_json(cls, json_str: str) -> AuthorizeOrderRequest:
@classmethod
def from_json_for_one_of(cls, json_str: str) -> AuthorizeOrderRequest:
"""Create an instance of AuthorizeOrderRequest from a JSON string"""
if "action", "amount" not in json_str:
if "action, amount" not in json_str:
return None
return cls.from_dict(json.loads(json_str))

Expand Down
2 changes: 1 addition & 1 deletion cashfree_pg/models/bad_request_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def from_json(cls, json_str: str) -> BadRequestError:
@classmethod
def from_json_for_one_of(cls, json_str: str) -> BadRequestError:
"""Create an instance of BadRequestError from a JSON string"""
if "message", "code", "type" not in json_str:
if "message, code, type" not in json_str:
return None
return cls.from_dict(json.loads(json_str))

Expand Down
Loading

0 comments on commit c3f705b

Please sign in to comment.