etsy-python 1.1.5__tar.gz → 1.1.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {etsy_python-1.1.5/etsy_python.egg-info → etsy_python-1.1.7}/PKG-INFO +1 -1
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/_version.py +1 -1
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/enums/Listing.py +1 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/enums/ListingInventory.py +5 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/Listing.py +10 -6
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/Listing.py +8 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ListingInventory.py +9 -1
- {etsy_python-1.1.5 → etsy_python-1.1.7/etsy_python.egg-info}/PKG-INFO +1 -1
- {etsy_python-1.1.5 → etsy_python-1.1.7}/LICENSE +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/MANIFEST.in +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/README.md +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/__init__.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/__init__.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/auth/OAuth.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/auth/__init__.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/common/Env.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/common/Request.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/common/Utils.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/common/__init__.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/enums/HolidayPreferences.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/enums/Language.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/enums/ProcessingProfile.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/enums/ShippingProfile.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/enums/ShopReceipt.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/enums/__init__.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/exceptions/BaseAPIException.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/exceptions/RequestException.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/exceptions/__init__.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/FileRequest.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/HolidayPreferences.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/Miscellaneous.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/ProcessingProfile.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/Product.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/Receipt.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/Request.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/ShippingProfile.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/Shop.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/ShopReturnPolicy.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/Utils.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/models/__init__.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/HolidayPreferences.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ListingFile.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ListingImage.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ListingOffering.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ListingProduct.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ListingTranslation.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ListingVariationImages.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ListingVideo.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/Miscellaneous.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/Payment.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/PaymentLedgerEntry.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ProcessingProfile.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/Receipt.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ReceiptTransactions.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/Response.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/Review.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/Session.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ShippingProfile.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/Shop.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ShopProductionPartner.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ShopReturnPolicy.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/ShopSection.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/Taxonomy.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/User.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/UserAddress.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/__init__.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/enums/RateLimit.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/enums/Request.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python/v3/resources/enums/__init__.py +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python.egg-info/SOURCES.txt +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python.egg-info/dependency_links.txt +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python.egg-info/requires.txt +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/etsy_python.egg-info/top_level.txt +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/setup.cfg +0 -0
- {etsy_python-1.1.5 → etsy_python-1.1.7}/setup.py +0 -0
|
@@ -111,9 +111,11 @@ class CreateDraftListingRequest(Request):
|
|
|
111
111
|
]):
|
|
112
112
|
warnings.warn(
|
|
113
113
|
"personalization_is_required, personalization_char_count_max, and "
|
|
114
|
-
"personalization_instructions are deprecated
|
|
115
|
-
"
|
|
116
|
-
"
|
|
114
|
+
"personalization_instructions are deprecated by the Etsy API and "
|
|
115
|
+
"scheduled for removal. Use the personalization endpoint "
|
|
116
|
+
"(update_listing_personalization) instead. See "
|
|
117
|
+
"https://developers.etsy.com/documentation/tutorials/personalization-migration "
|
|
118
|
+
"for migration details.",
|
|
117
119
|
DeprecationWarning,
|
|
118
120
|
stacklevel=2,
|
|
119
121
|
)
|
|
@@ -212,9 +214,11 @@ class UpdateListingRequest(Request):
|
|
|
212
214
|
]):
|
|
213
215
|
warnings.warn(
|
|
214
216
|
"personalization_is_required, personalization_char_count_max, and "
|
|
215
|
-
"personalization_instructions are deprecated
|
|
216
|
-
"
|
|
217
|
-
"
|
|
217
|
+
"personalization_instructions are deprecated by the Etsy API and "
|
|
218
|
+
"scheduled for removal. Use the personalization endpoint "
|
|
219
|
+
"(update_listing_personalization) instead. See "
|
|
220
|
+
"https://developers.etsy.com/documentation/tutorials/personalization-migration "
|
|
221
|
+
"for migration details.",
|
|
218
222
|
DeprecationWarning,
|
|
219
223
|
stacklevel=2,
|
|
220
224
|
)
|
|
@@ -92,6 +92,8 @@ class ListingResource:
|
|
|
92
92
|
shop_location: Optional[str] = None,
|
|
93
93
|
is_safe: Optional[bool] = None,
|
|
94
94
|
legacy: Optional[bool] = None,
|
|
95
|
+
buyer_country: Optional[str] = None,
|
|
96
|
+
currency: Optional[str] = None,
|
|
95
97
|
) -> Union[Response, RequestException]:
|
|
96
98
|
endpoint = "/listings/active"
|
|
97
99
|
query_params: Dict[str, Any] = {
|
|
@@ -106,6 +108,8 @@ class ListingResource:
|
|
|
106
108
|
"shop_location": shop_location,
|
|
107
109
|
"is_safe": is_safe,
|
|
108
110
|
"legacy": legacy,
|
|
111
|
+
"buyer_country": buyer_country,
|
|
112
|
+
"currency": currency,
|
|
109
113
|
}
|
|
110
114
|
return self.session.make_request(endpoint, query_params=query_params)
|
|
111
115
|
|
|
@@ -135,6 +139,8 @@ class ListingResource:
|
|
|
135
139
|
listing_ids: List[int],
|
|
136
140
|
includes: Optional[List[Includes]] = None,
|
|
137
141
|
legacy: Optional[bool] = None,
|
|
142
|
+
buyer_country: Optional[str] = None,
|
|
143
|
+
currency: Optional[str] = None,
|
|
138
144
|
) -> Union[Response, RequestException]:
|
|
139
145
|
endpoint = "/listings/batch"
|
|
140
146
|
query_params: Dict[str, Any] = {
|
|
@@ -143,6 +149,8 @@ class ListingResource:
|
|
|
143
149
|
if includes is not None
|
|
144
150
|
else None,
|
|
145
151
|
"legacy": legacy,
|
|
152
|
+
"buyer_country": buyer_country,
|
|
153
|
+
"currency": currency,
|
|
146
154
|
}
|
|
147
155
|
return self.session.make_request(endpoint, query_params=query_params)
|
|
148
156
|
|
|
@@ -3,6 +3,7 @@ from typing import Optional, Dict, Any, Union
|
|
|
3
3
|
|
|
4
4
|
from etsy_python.v3.exceptions.RequestException import RequestException
|
|
5
5
|
from etsy_python.v3.enums.Listing import InventoryIncludes
|
|
6
|
+
from etsy_python.v3.enums.ListingInventory import MaxVariationsSupported
|
|
6
7
|
from etsy_python.v3.models.Listing import UpdateListingInventoryRequest
|
|
7
8
|
from etsy_python.v3.resources.Session import EtsyClient
|
|
8
9
|
from etsy_python.v3.resources.enums.Request import Method
|
|
@@ -31,9 +32,16 @@ class ListingInventoryResource:
|
|
|
31
32
|
def update_listing_inventory(
|
|
32
33
|
self, listing_id: int, listing_inventory: UpdateListingInventoryRequest,
|
|
33
34
|
legacy: Optional[bool] = None,
|
|
35
|
+
max_variations_supported: Optional[MaxVariationsSupported] = None,
|
|
34
36
|
) -> Union[Response, RequestException]:
|
|
35
37
|
endpoint = f"/listings/{listing_id}/inventory"
|
|
38
|
+
query_params: Dict[str, Any] = {
|
|
39
|
+
"legacy": legacy,
|
|
40
|
+
"max_variations_supported": max_variations_supported.value
|
|
41
|
+
if max_variations_supported is not None
|
|
42
|
+
else None,
|
|
43
|
+
}
|
|
36
44
|
return self.session.make_request(
|
|
37
45
|
endpoint, method=Method.PUT, payload=listing_inventory,
|
|
38
|
-
query_params=
|
|
46
|
+
query_params=query_params,
|
|
39
47
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|