Skip to content

Commit 683dc1a

Browse files
committed
[Auto Generated] 3.21.0
1 parent 8452717 commit 683dc1a

12 files changed

Lines changed: 46 additions & 163 deletions

File tree

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
1+
# CHANGE LOG (3.21.0) - 2.11.7
2+
3+
## Application Client
4+
5+
- [Breaking] [Removed] Webhook class from application client
6+
7+
8+
### Order
9+
10+
11+
12+
#### getOrders
13+
14+
- ##### What's New
15+
- [Added] property <code>items[].shipments[].affiliate_shipment_id</code> of schema <code>ShipmentInfo</code> in response with status code 200
16+
17+
18+
#### getOrderById
19+
20+
- ##### What's New
21+
- [Added] property <code>order.shipments[].affiliate_shipment_id</code> of schema <code>Shipments</code> in response with status code 200
22+
23+
24+
#### getPosOrderById
25+
26+
- ##### What's New
27+
- [Added] property <code>order.shipments[].affiliate_shipment_id</code> of schema <code>Shipments</code> in response with status code 200
28+
29+
30+
#### getShipmentById
31+
32+
- ##### What's New
33+
- [Added] property <code>shipment.affiliate_shipment_id</code> of schema <code>Shipments</code> in response with status code 200
34+
35+
136
# CHANGE LOG (3.20.0) - 2.11.6
237

338
## Application Client

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.20.0#egg=fdk_client"
17+
pip install "git+https://github.com/gofynd/fdk-client-python.git@3.21.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.20.0"
1+
__version__ = "3.21.0"

fdk_client/application/ApplicationClient.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636

3737
from .user.client import User
3838

39-
from .webhook.client import Webhook
40-
4139

4240
class ApplicationClient:
4341
def __init__(self, config):
@@ -60,7 +58,6 @@ def __init__(self, config):
6058
self.share = Share(self.config)
6159
self.theme = Theme(self.config)
6260
self.user = User(self.config)
63-
self.webhook = Webhook(self.config)
6461

6562

6663
def setCookie(self, cookie):

fdk_client/application/filestorage/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ async def startUpload(self, namespace=None, body="", request_headers:Dict={}):
3131
"""Starts the process of uploading a file to storage location, and returns a signed url in response.
3232
:param namespace : A classification value that categorizes files based on the namespace used to determine their storage location and validate their data before upload. The namespace also acts as a directory structure within the storage bucket and enforces file-specific rules.
3333
Available namespaces:
34-
- misc: Public namespace allowing all file types up to 100Mb
3534
- user-profile-pic: Public namespace allowing images up to 15Mb
3635
- feedback-media: Public namespace allowing images and videos up to 1Gb
3736
- users-vto-images: Private namespace allowing images up to 40Mb
@@ -51,7 +50,7 @@ async def startUpload(self, namespace=None, body="", request_headers:Dict={}):
5150
schema = FileUploadStart()
5251
schema.dump(schema.load(body))
5352

54-
url_with_params = await create_url_with_params(api_url=self._urls["startUpload"], proccessed_params="""{"required":[{"name":"namespace","in":"path","description":"A classification value that categorizes files based on the namespace used to determine their storage location and validate their data before upload. The namespace also acts as a directory structure within the storage bucket and enforces file-specific rules.\nAvailable namespaces:\n - misc: Public namespace allowing all file types up to 100Mb\n - user-profile-pic: Public namespace allowing images up to 15Mb\n - feedback-media: Public namespace allowing images and videos up to 1Gb\n - users-vto-images: Private namespace allowing images up to 40Mb\n - application-audience: Private namespace allowing images and PDFs up to 50Mb","required":true,"schema":{"type":"string","enum":["misc","user-profile-pic","feedback-media","users-vto-images","application-audience","test","test123"]}}],"optional":[],"query":[],"headers":[],"path":[{"name":"namespace","in":"path","description":"A classification value that categorizes files based on the namespace used to determine their storage location and validate their data before upload. The namespace also acts as a directory structure within the storage bucket and enforces file-specific rules.\nAvailable namespaces:\n - misc: Public namespace allowing all file types up to 100Mb\n - user-profile-pic: Public namespace allowing images up to 15Mb\n - feedback-media: Public namespace allowing images and videos up to 1Gb\n - users-vto-images: Private namespace allowing images up to 40Mb\n - application-audience: Private namespace allowing images and PDFs up to 50Mb","required":true,"schema":{"type":"string","enum":["misc","user-profile-pic","feedback-media","users-vto-images","application-audience","test","test123"]}}]}""", serverType="application", namespace=namespace)
53+
url_with_params = await create_url_with_params(api_url=self._urls["startUpload"], proccessed_params="""{"required":[{"name":"namespace","in":"path","description":"A classification value that categorizes files based on the namespace used to determine their storage location and validate their data before upload. The namespace also acts as a directory structure within the storage bucket and enforces file-specific rules.\nAvailable namespaces:\n - user-profile-pic: Public namespace allowing images up to 15Mb\n - feedback-media: Public namespace allowing images and videos up to 1Gb\n - users-vto-images: Private namespace allowing images up to 40Mb\n - application-audience: Private namespace allowing images and PDFs up to 50Mb","required":true,"schema":{"type":"string","enum":["user-profile-pic","feedback-media","users-vto-images","application-audience","test","test123"]}}],"optional":[],"query":[],"headers":[],"path":[{"name":"namespace","in":"path","description":"A classification value that categorizes files based on the namespace used to determine their storage location and validate their data before upload. The namespace also acts as a directory structure within the storage bucket and enforces file-specific rules.\nAvailable namespaces:\n - user-profile-pic: Public namespace allowing images up to 15Mb\n - feedback-media: Public namespace allowing images and videos up to 1Gb\n - users-vto-images: Private namespace allowing images up to 40Mb\n - application-audience: Private namespace allowing images and PDFs up to 50Mb","required":true,"schema":{"type":"string","enum":["user-profile-pic","feedback-media","users-vto-images","application-audience","test","test123"]}}]}""", serverType="application", namespace=namespace)
5554
query_string = await create_query_string()
5655
if query_string:
5756
url_with_params += "?" + query_string
@@ -88,7 +87,6 @@ async def completeUpload(self, namespace=None, body="", request_headers:Dict={})
8887
Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database.
8988
:param namespace : A classification value that categorizes files based on the namespace used to determine their storage location and validate their data before upload. The namespace also acts as a directory structure within the storage bucket and enforces file-specific rules.
9089
Available namespaces:
91-
- misc: Public namespace allowing all file types up to 100Mb
9290
- user-profile-pic: Public namespace allowing images up to 15Mb
9391
- feedback-media: Public namespace allowing images and videos up to 1Gb
9492
- users-vto-images: Private namespace allowing images up to 40Mb
@@ -108,7 +106,7 @@ async def completeUpload(self, namespace=None, body="", request_headers:Dict={})
108106
schema = FileUpload()
109107
schema.dump(schema.load(body))
110108

111-
url_with_params = await create_url_with_params(api_url=self._urls["completeUpload"], proccessed_params="""{"required":[{"name":"namespace","in":"path","description":"A classification value that categorizes files based on the namespace used to determine their storage location and validate their data before upload. The namespace also acts as a directory structure within the storage bucket and enforces file-specific rules.\nAvailable namespaces:\n - misc: Public namespace allowing all file types up to 100Mb\n - user-profile-pic: Public namespace allowing images up to 15Mb\n - feedback-media: Public namespace allowing images and videos up to 1Gb\n - users-vto-images: Private namespace allowing images up to 40Mb\n - application-audience: Private namespace allowing images and PDFs up to 50Mb","required":true,"schema":{"type":"string","enum":["misc","user-profile-pic","feedback-media","users-vto-images","application-audience","test","test123"]}}],"optional":[],"query":[],"headers":[],"path":[{"name":"namespace","in":"path","description":"A classification value that categorizes files based on the namespace used to determine their storage location and validate their data before upload. The namespace also acts as a directory structure within the storage bucket and enforces file-specific rules.\nAvailable namespaces:\n - misc: Public namespace allowing all file types up to 100Mb\n - user-profile-pic: Public namespace allowing images up to 15Mb\n - feedback-media: Public namespace allowing images and videos up to 1Gb\n - users-vto-images: Private namespace allowing images up to 40Mb\n - application-audience: Private namespace allowing images and PDFs up to 50Mb","required":true,"schema":{"type":"string","enum":["misc","user-profile-pic","feedback-media","users-vto-images","application-audience","test","test123"]}}]}""", serverType="application", namespace=namespace)
109+
url_with_params = await create_url_with_params(api_url=self._urls["completeUpload"], proccessed_params="""{"required":[{"name":"namespace","in":"path","description":"A classification value that categorizes files based on the namespace used to determine their storage location and validate their data before upload. The namespace also acts as a directory structure within the storage bucket and enforces file-specific rules.\nAvailable namespaces:\n - user-profile-pic: Public namespace allowing images up to 15Mb\n - feedback-media: Public namespace allowing images and videos up to 1Gb\n - users-vto-images: Private namespace allowing images up to 40Mb\n - application-audience: Private namespace allowing images and PDFs up to 50Mb","required":true,"schema":{"type":"string","enum":["user-profile-pic","feedback-media","users-vto-images","application-audience","test","test123"]}}],"optional":[],"query":[],"headers":[],"path":[{"name":"namespace","in":"path","description":"A classification value that categorizes files based on the namespace used to determine their storage location and validate their data before upload. The namespace also acts as a directory structure within the storage bucket and enforces file-specific rules.\nAvailable namespaces:\n - user-profile-pic: Public namespace allowing images up to 15Mb\n - feedback-media: Public namespace allowing images and videos up to 1Gb\n - users-vto-images: Private namespace allowing images up to 40Mb\n - application-audience: Private namespace allowing images and PDFs up to 50Mb","required":true,"schema":{"type":"string","enum":["user-profile-pic","feedback-media","users-vto-images","application-audience","test","test123"]}}]}""", serverType="application", namespace=namespace)
112110
query_string = await create_query_string()
113111
if query_string:
114112
url_with_params += "?" + query_string

fdk_client/application/order/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,6 +1299,8 @@ class Shipments(BaseSchema):
12991299

13001300
shipment_id = fields.Str(required=False)
13011301

1302+
affiliate_shipment_id = fields.Str(required=False)
1303+
13021304
fulfilling_store = fields.Nested(FulfillingStore, required=False)
13031305

13041306
custom_meta = fields.List(fields.Dict(required=False), required=False)
@@ -1511,6 +1513,8 @@ class ShipmentInfo(BaseSchema):
15111513

15121514
shipment_id = fields.Str(required=False)
15131515

1516+
affiliate_shipment_id = fields.Str(required=False)
1517+
15141518
shipment_status = fields.Nested(ShipmentStatus, required=False)
15151519

15161520
track_url = fields.Str(required=False)

fdk_client/application/webhook/__init__.py

Whitespace-only changes.

fdk_client/application/webhook/client.py

Lines changed: 0 additions & 74 deletions
This file was deleted.

fdk_client/application/webhook/models.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

fdk_client/application/webhook/validator.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)