Skip to content

Commit ff504da

Browse files
committed
[Auto Generated] 3.15.0
1 parent 226119c commit ff504da

File tree

13 files changed

+719
-19
lines changed

13 files changed

+719
-19
lines changed

CHANGELOG.md

Lines changed: 665 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Get started with the python Development SDK for Fynd Platform
1414
### Usage
1515

1616
```bash
17-
pip install "git+https://github.com/gofynd/fdk-client-python.git@3.14.0#egg=fdk_client"
17+
pip install "git+https://github.com/gofynd/fdk-client-python.git@3.15.0#egg=fdk_client"
1818
```
1919

2020
Using this method, you can `import` fdk-client-python like so:

fdk_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.14.0"
1+
__version__ = "3.15.0"

fdk_client/application/content/enums.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class PageType(Enum):
6161

6262
PROFILE_COMPANY = "profile-company"
6363

64-
PROFILE_EMAILS = "profile-emails"
64+
PROFILE_EMAIL = "profile-email"
6565

66-
PROFILE_PHONES = "profile-phones"
66+
PROFILE_PHONE = "profile-phone"
6767

6868
RATE_US = "rate-us"
6969

@@ -103,6 +103,8 @@ class PageType(Enum):
103103

104104
SINGLE_PAGE_CHECKOUT = "single-page-checkout"
105105

106+
REQUEST_REATTEMPT = "request-reattempt"
107+
106108
@classmethod
107109
async def is_valid(cls, value):
108110
if value in cls._value2member_map_:

fdk_client/application/theme/enums.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class PageType(Enum):
6161

6262
PROFILE_COMPANY = "profile-company"
6363

64-
PROFILE_EMAILS = "profile-emails"
64+
PROFILE_EMAIL = "profile-email"
6565

66-
PROFILE_PHONES = "profile-phones"
66+
PROFILE_PHONE = "profile-phone"
6767

6868
RATE_US = "rate-us"
6969

@@ -103,6 +103,8 @@ class PageType(Enum):
103103

104104
SINGLE_PAGE_CHECKOUT = "single-page-checkout"
105105

106+
REQUEST_REATTEMPT = "request-reattempt"
107+
106108
@classmethod
107109
async def is_valid(cls, value):
108110
if value in cls._value2member_map_:

fdk_client/partner/theme/enums.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class PageType(Enum):
6161

6262
PROFILE_COMPANY = "profile-company"
6363

64-
PROFILE_EMAILS = "profile-emails"
64+
PROFILE_EMAIL = "profile-email"
6565

66-
PROFILE_PHONES = "profile-phones"
66+
PROFILE_PHONE = "profile-phone"
6767

6868
RATE_US = "rate-us"
6969

@@ -103,6 +103,8 @@ class PageType(Enum):
103103

104104
SINGLE_PAGE_CHECKOUT = "single-page-checkout"
105105

106+
REQUEST_REATTEMPT = "request-reattempt"
107+
106108
@classmethod
107109
async def is_valid(cls, value):
108110
if value in cls._value2member_map_:

fdk_client/platform/catalog/enums.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ class PageType(Enum):
8989

9090
PROFILE_COMPANY = "profile-company"
9191

92-
PROFILE_EMAILS = "profile-emails"
92+
PROFILE_EMAIL = "profile-email"
9393

94-
PROFILE_PHONES = "profile-phones"
94+
PROFILE_PHONE = "profile-phone"
9595

9696
RATE_US = "rate-us"
9797

@@ -131,6 +131,8 @@ class PageType(Enum):
131131

132132
SINGLE_PAGE_CHECKOUT = "single-page-checkout"
133133

134+
REQUEST_REATTEMPT = "request-reattempt"
135+
134136
@classmethod
135137
async def is_valid(cls, value):
136138
if value in cls._value2member_map_:

fdk_client/platform/content/enums.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ class PageType(Enum):
7474

7575
PROFILE_COMPANY = "profile-company"
7676

77-
PROFILE_EMAILS = "profile-emails"
77+
PROFILE_EMAIL = "profile-email"
7878

79-
PROFILE_PHONES = "profile-phones"
79+
PROFILE_PHONE = "profile-phone"
8080

8181
RATE_US = "rate-us"
8282

@@ -116,6 +116,8 @@ class PageType(Enum):
116116

117117
SINGLE_PAGE_CHECKOUT = "single-page-checkout"
118118

119+
REQUEST_REATTEMPT = "request-reattempt"
120+
119121
@classmethod
120122
async def is_valid(cls, value):
121123
if value in cls._value2member_map_:

fdk_client/platform/theme/enums.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class PageType(Enum):
6161

6262
PROFILE_COMPANY = "profile-company"
6363

64-
PROFILE_EMAILS = "profile-emails"
64+
PROFILE_EMAIL = "profile-email"
6565

66-
PROFILE_PHONES = "profile-phones"
66+
PROFILE_PHONE = "profile-phone"
6767

6868
RATE_US = "rate-us"
6969

@@ -103,6 +103,8 @@ class PageType(Enum):
103103

104104
SINGLE_PAGE_CHECKOUT = "single-page-checkout"
105105

106+
REQUEST_REATTEMPT = "request-reattempt"
107+
106108
@classmethod
107109
async def is_valid(cls, value):
108110
if value in cls._value2member_map_:

fdk_client/platform/user/applicationClient.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,15 @@ async def getUserAttributeDefinitions(self, excluding_ids=None, slug=None, type=
10061006

10071007
response = await AiohttpHelper().aiohttp_request("GET", url_with_params, headers=get_headers_with_signature(self._conf.domain, "get", await create_url_without_domain(f"/service/platform/user/v1.0/company/{self._conf.companyId}/application/{self.applicationId}/user_attribute/definition", excluding_ids=excluding_ids, slug=slug, type=type, customer_editable=customer_editable, encrypted=encrypted, pinned=pinned, pin_order=pin_order, is_locked=is_locked, name=name, page_size=page_size, page_no=page_no), query_string, headers, "", exclude_headers=exclude_headers), data="", debug=(self._conf.logLevel=="DEBUG"))
10081008

1009+
if 200 <= int(response['status_code']) < 300:
1010+
from .models import UserAttributeDefinitionList
1011+
schema = UserAttributeDefinitionList()
1012+
try:
1013+
schema.load(response["json"])
1014+
except Exception as e:
1015+
print("Response Validation failed for getUserAttributeDefinitions")
1016+
print(e)
1017+
10091018
return response
10101019

10111020
async def updateUserAttributeDefinition(self, attribute_def_id=None, body="", request_headers:Dict={}):

0 commit comments

Comments
 (0)