Skip to content

Commit 59241f5

Browse files
authored
Merge pull request #82
Started adding report_headers as Enums
2 parents 3e1a67d + 9b8896f commit 59241f5

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

sp_api/base/report_headers.py

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
"""
2+
Enums for header row for report responses. See reportTypes.py for all available report requests.
3+
"""
4+
5+
class ReportHeaders(str, Enum):
6+
"""Headers will inherit from this class for optional type checking purposes."""
7+
pass
8+
9+
class MerchantListingsData(ReportHeaders):
10+
"""Headers for GET_MERCHANT_LISTINGS_DATA report."""
11+
ITEM_NAME = 'item-name'
12+
LISTING_ID = 'listing-id'
13+
SELLER_SKU = 'seller-sku'
14+
PRICE = 'price'
15+
QUANTITY = 'quantity'
16+
OPEN_DATE = 'open-date'
17+
PRODUCT_ID_TYPE = 'product-id-type'
18+
ITEM_NOTE = 'item-note'
19+
ITEM_CONDITION = 'item-condition'
20+
WILL_SHIP_INTERNATIONALLY = 'will-ship-internationally'
21+
EXPEDITED_SHIPPING = 'expedited-shipping'
22+
PRODUCT_ID = 'product-id'
23+
PENDING_QUANTITY = 'pending-quantity'
24+
FULFILLMENT_CHANNEL = 'fulfillment-channel'
25+
BUSINESS_PRICE = 'Business Price'
26+
QUANTITY_PRICE_TYPE = 'Quantity Price Type'
27+
QUANTITY_LOWER_BOUND_1 = 'Quantity Lower Bound 1'
28+
QUANTITY_PRICE_1 = 'Quantity Price 1'
29+
QUANTITY_LOWER_BOUND_2 = 'Quantity Lower Bound 2'
30+
QUANTITY_PRICE_2 = 'Quantity Price 2'
31+
QUANTITY_LOWER_BOUND_3 = 'Quantity Lower Bound 3'
32+
QUANTITY_PRICE_3 = 'Quantity Price 3'
33+
QUANTITY_LOWER_BOUND_4 = 'Quantity Lower Bound 4'
34+
QUANTITY_PRICE_4 = 'Quantity Price 4'
35+
QUANTITY_LOWER_BOUND_5 = 'Quantity Lower Bound 5'
36+
QUANTITY_PRICE_5 = 'Quantity Price 5'
37+
MERCHANT_SHIPPING_GROUP = 'merchant-shipping-group'
38+
PROGRESSIVE_PRICE_TYPE = 'Progressive Price Type'
39+
PROGRESSIVE_LOWER_BOUND_1 = 'Progressive Lower Bound 1'
40+
PROGRESSIVE_PRICE_1 = 'Progressive Price 1'
41+
PROGRESSIVE_LOWER_BOUND_2 = 'Progressive Lower Bound 2'
42+
PROGRESSIVE_PRICE_2 = 'Progressive Price 2'
43+
PROGRESSIVE_LOWER_BOUND_3 = 'Progressive Lower Bound 3'
44+
PROGRESSIVE_PRICE_3 = 'Progressive Price 3'
45+
MINIMUM_ORDER_QUANTITY = 'Minimum order quantity'
46+
SELL_REMAINDER = 'Sell remainder'
47+
48+
49+
class MerchantListingsAllData(ReportHeaders):
50+
"""Headers for GET_MERCHANT_LISTINGS_ALL_DATA report."""
51+
ITEM_NAME = 'item-name'
52+
LISTING_ID = 'listing-id'
53+
SELLER_SKU = 'seller-sku'
54+
PRICE = 'price'
55+
QUANTITY = 'quantity'
56+
OPEN_DATE = 'open-date'
57+
PRODUCT_ID_TYPE = 'product-id-type'
58+
ITEM_NOTE = 'item-note'
59+
ITEM_CONDITION = 'item-condition'
60+
WILL_SHIP_INTERNATIONALLY = 'will-ship-internationally'
61+
EXPEDITED_SHIPPING = 'expedited-shipping'
62+
PRODUCT_ID = 'product-id'
63+
PENDING_QUANTITY = 'pending-quantity'
64+
FULFILLMENT_CHANNEL = 'fulfillment-channel'
65+
MERCHANT_SHIPPING_GROUP = 'merchant-shipping-group'
66+
STATUS = 'status'
67+
MINIMUM_ORDER_QUANTITY = 'Minimum order quantity'
68+
SELL_REMAINDER = 'Sell remainder'

0 commit comments

Comments
 (0)