Skip to content

Commit

Permalink
Merge pull request #37 from cashfree/3.2.7
Browse files Browse the repository at this point in the history
3.2.7
  • Loading branch information
suhas-cashfree authored Jan 25, 2024
2 parents f118635 + 9fb720b commit eca28bf
Show file tree
Hide file tree
Showing 17 changed files with 82 additions and 82 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.6"
__version__ = "3.2.7"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

def get_host_settings(self):
Expand Down
8 changes: 4 additions & 4 deletions cashfree_pg/models/cashback_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
import json



from pydantic import BaseModel, Field, constr, validator
from typing import Union
from pydantic import BaseModel, Field, StrictFloat, StrictInt, constr, 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: constr(strict=True, max_length=100, min_length=1) = Field(..., description="Value of Discount.")
max_cashback_amount: constr(strict=True, max_length=100, min_length=1) = Field(..., description="Maximum Value of Cashback allowed.")
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')
Expand Down
8 changes: 4 additions & 4 deletions cashfree_pg/models/discount_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
import json



from pydantic import BaseModel, Field, constr, validator
from typing import Union
from pydantic import BaseModel, Field, StrictFloat, StrictInt, constr, 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: constr(strict=True, max_length=100, min_length=1) = Field(..., description="Value of Discount.")
max_discount_amount: constr(strict=True, max_length=100, min_length=1) = Field(..., description="Maximum Value of Discount allowed.")
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')
Expand Down
Loading

0 comments on commit eca28bf

Please sign in to comment.