ebay-api 9.4.0 → 9.4.1
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.
- package/README.md +1 -1
- package/dist/api/apiFactory.js +5 -5
- package/dist/api/restful/buy/browse/index.js +9 -9
- package/dist/api/restful/buy/deal/index.js +3 -3
- package/dist/api/restful/buy/feed/index.js +4 -4
- package/dist/api/restful/buy/marketing/index.js +3 -3
- package/dist/api/restful/buy/marketplaceInsights/index.d.ts +1 -1
- package/dist/api/restful/buy/marketplaceInsights/index.js +3 -3
- package/dist/api/restful/buy/order/index.js +3 -3
- package/dist/api/restful/commerce/catalog/index.js +4 -4
- package/dist/api/restful/commerce/charity/index.js +2 -2
- package/dist/api/restful/commerce/identity/index.js +1 -1
- package/dist/api/restful/commerce/message/index.js +6 -6
- package/dist/api/restful/commerce/notification/index.js +7 -7
- package/dist/api/restful/commerce/taxonomy/index.d.ts +1 -1
- package/dist/api/restful/commerce/taxonomy/index.js +4 -3
- package/dist/api/restful/commerce/translation/index.js +1 -1
- package/dist/api/restful/developer/analytics/index.js +2 -2
- package/dist/api/restful/developer/keyManagement/index.js +2 -2
- package/dist/api/restful/index.js +1 -1
- package/dist/api/restful/postOrder/cancellation/index.js +3 -3
- package/dist/api/restful/postOrder/case/index.js +1 -1
- package/dist/api/restful/postOrder/inquiry/index.js +3 -3
- package/dist/api/restful/postOrder/return/index.js +7 -7
- package/dist/api/restful/sell/account/v1.js +21 -21
- package/dist/api/restful/sell/account/v2.js +1 -1
- package/dist/api/restful/sell/analytics/index.js +2 -2
- package/dist/api/restful/sell/compliance/index.js +3 -3
- package/dist/api/restful/sell/feed/index.d.ts +3 -3
- package/dist/api/restful/sell/feed/index.js +16 -16
- package/dist/api/restful/sell/finances/index.d.ts +3 -3
- package/dist/api/restful/sell/finances/index.js +14 -14
- package/dist/api/restful/sell/fulfillment/index.d.ts +1 -1
- package/dist/api/restful/sell/fulfillment/index.js +4 -4
- package/dist/api/restful/sell/inventory/index.d.ts +3 -3
- package/dist/api/restful/sell/inventory/index.js +22 -22
- package/dist/api/restful/sell/listing/index.js +1 -1
- package/dist/api/restful/sell/logistics/index.js +2 -2
- package/dist/api/restful/sell/marketing/index.js +21 -21
- package/dist/api/restful/sell/negotiation/index.js +2 -2
- package/dist/api/restful/sell/recommendation/index.js +1 -1
- package/dist/api/traditional/XMLRequest.d.ts +1 -3
- package/dist/api/traditional/XMLRequest.js +2 -4
- package/dist/auth/oAuth2.js +1 -1
- package/dist/ebay-api.min.mjs +1 -1
- package/dist/errors/index.js +2 -2
- package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +561 -111
- package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +171 -30
- package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +200 -28
- package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +114 -20
- package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +52 -17
- package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +84 -12
- package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +1478 -179
- package/dist/types/restful/specs/cancellation_oas3.d.ts +179 -9
- package/dist/types/restful/specs/case_oas3.d.ts +173 -9
- package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +323 -75
- package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +110 -13
- package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +39 -6
- package/dist/types/restful/specs/commerce_media_v1_beta_oas3.d.ts +150 -23
- package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +623 -72
- package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +339 -45
- package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +40 -8
- package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +67 -11
- package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +134 -18
- package/dist/types/restful/specs/inquiry_oas3.d.ts +271 -13
- package/dist/types/restful/specs/return_oas3.d.ts +761 -35
- package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +1503 -187
- package/dist/types/restful/specs/sell_account_v2_oas3.d.ts +155 -21
- package/dist/types/restful/specs/sell_analytics_v1_oas3.d.ts +174 -32
- package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +128 -21
- package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +880 -103
- package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +261 -28
- package/dist/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +618 -98
- package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +1257 -210
- package/dist/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +38 -9
- package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +255 -36
- package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +3201 -435
- package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +361 -63
- package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +82 -14
- package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +43 -10
- package/lib/api/apiFactory.js +4 -4
- package/lib/api/restful/buy/browse/index.js +9 -9
- package/lib/api/restful/buy/deal/index.js +3 -3
- package/lib/api/restful/buy/feed/index.js +4 -4
- package/lib/api/restful/buy/marketing/index.js +3 -3
- package/lib/api/restful/buy/marketplaceInsights/index.d.ts +1 -1
- package/lib/api/restful/buy/marketplaceInsights/index.js +3 -3
- package/lib/api/restful/buy/order/index.js +3 -3
- package/lib/api/restful/commerce/catalog/index.js +4 -4
- package/lib/api/restful/commerce/charity/index.js +2 -2
- package/lib/api/restful/commerce/identity/index.js +1 -1
- package/lib/api/restful/commerce/message/index.js +6 -6
- package/lib/api/restful/commerce/notification/index.js +7 -7
- package/lib/api/restful/commerce/taxonomy/index.d.ts +1 -1
- package/lib/api/restful/commerce/taxonomy/index.js +4 -3
- package/lib/api/restful/commerce/translation/index.js +1 -1
- package/lib/api/restful/developer/analytics/index.js +2 -2
- package/lib/api/restful/developer/keyManagement/index.js +2 -2
- package/lib/api/restful/index.js +1 -1
- package/lib/api/restful/postOrder/cancellation/index.js +3 -3
- package/lib/api/restful/postOrder/case/index.js +1 -1
- package/lib/api/restful/postOrder/inquiry/index.js +3 -3
- package/lib/api/restful/postOrder/return/index.js +7 -7
- package/lib/api/restful/sell/account/v1.js +21 -21
- package/lib/api/restful/sell/account/v2.js +1 -1
- package/lib/api/restful/sell/analytics/index.js +2 -2
- package/lib/api/restful/sell/compliance/index.js +3 -3
- package/lib/api/restful/sell/feed/index.d.ts +3 -3
- package/lib/api/restful/sell/feed/index.js +16 -16
- package/lib/api/restful/sell/finances/index.d.ts +3 -3
- package/lib/api/restful/sell/finances/index.js +14 -14
- package/lib/api/restful/sell/fulfillment/index.d.ts +1 -1
- package/lib/api/restful/sell/fulfillment/index.js +4 -4
- package/lib/api/restful/sell/inventory/index.d.ts +3 -3
- package/lib/api/restful/sell/inventory/index.js +22 -22
- package/lib/api/restful/sell/listing/index.js +1 -1
- package/lib/api/restful/sell/logistics/index.js +2 -2
- package/lib/api/restful/sell/marketing/index.js +21 -21
- package/lib/api/restful/sell/negotiation/index.js +2 -2
- package/lib/api/restful/sell/recommendation/index.js +1 -1
- package/lib/api/traditional/XMLRequest.d.ts +1 -3
- package/lib/api/traditional/XMLRequest.js +2 -4
- package/lib/auth/oAuth2.js +1 -1
- package/lib/ebay-api.min.js +2 -2
- package/lib/errors/index.js +2 -2
- package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +561 -111
- package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +171 -30
- package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +200 -28
- package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +114 -20
- package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +52 -17
- package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +84 -12
- package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +1478 -179
- package/lib/types/restful/specs/cancellation_oas3.d.ts +179 -9
- package/lib/types/restful/specs/case_oas3.d.ts +173 -9
- package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +323 -75
- package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +110 -13
- package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +39 -6
- package/lib/types/restful/specs/commerce_media_v1_beta_oas3.d.ts +150 -23
- package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +623 -72
- package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +339 -45
- package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +40 -8
- package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +67 -11
- package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +134 -18
- package/lib/types/restful/specs/inquiry_oas3.d.ts +271 -13
- package/lib/types/restful/specs/return_oas3.d.ts +761 -35
- package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +1503 -187
- package/lib/types/restful/specs/sell_account_v2_oas3.d.ts +155 -21
- package/lib/types/restful/specs/sell_analytics_v1_oas3.d.ts +174 -32
- package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +128 -21
- package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +880 -103
- package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +261 -28
- package/lib/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +618 -98
- package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +1257 -210
- package/lib/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +38 -9
- package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +255 -36
- package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +3201 -435
- package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +361 -63
- package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +82 -14
- package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +43 -10
- package/package.json +10 -9
|
@@ -17,7 +17,7 @@ class Notification extends index_js_1.default {
|
|
|
17
17
|
return this.get(`/topic/${topicId}`);
|
|
18
18
|
}
|
|
19
19
|
getTopics({ limit, continuationToken: continuation_token }) {
|
|
20
|
-
return this.get(
|
|
20
|
+
return this.get('/topic', {
|
|
21
21
|
params: {
|
|
22
22
|
limit,
|
|
23
23
|
continuation_token
|
|
@@ -25,7 +25,7 @@ class Notification extends index_js_1.default {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
getSubscriptions({ limit, continuationToken: continuation_token }) {
|
|
28
|
-
return this.get(
|
|
28
|
+
return this.get('/subscription', {
|
|
29
29
|
params: {
|
|
30
30
|
limit,
|
|
31
31
|
continuation_token
|
|
@@ -33,7 +33,7 @@ class Notification extends index_js_1.default {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
createSubscription(body) {
|
|
36
|
-
return this.post(
|
|
36
|
+
return this.post('/subscription', body);
|
|
37
37
|
}
|
|
38
38
|
getSubscription(subscriptionId) {
|
|
39
39
|
subscriptionId = encodeURIComponent(subscriptionId);
|
|
@@ -60,7 +60,7 @@ class Notification extends index_js_1.default {
|
|
|
60
60
|
return this.post(`/subscription/${subscriptionId}/test`);
|
|
61
61
|
}
|
|
62
62
|
getDestinations({ limit, continuationToken: continuation_token }) {
|
|
63
|
-
return this.get(
|
|
63
|
+
return this.get('/destination', {
|
|
64
64
|
params: {
|
|
65
65
|
limit,
|
|
66
66
|
continuation_token
|
|
@@ -68,7 +68,7 @@ class Notification extends index_js_1.default {
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
createDestination(body) {
|
|
71
|
-
return this.post(
|
|
71
|
+
return this.post('/destination', body);
|
|
72
72
|
}
|
|
73
73
|
getDestination(destinationId) {
|
|
74
74
|
destinationId = encodeURIComponent(destinationId);
|
|
@@ -83,10 +83,10 @@ class Notification extends index_js_1.default {
|
|
|
83
83
|
return this.delete(`/destination/${destinationId}`);
|
|
84
84
|
}
|
|
85
85
|
getConfig() {
|
|
86
|
-
return this.get(
|
|
86
|
+
return this.get('/config');
|
|
87
87
|
}
|
|
88
88
|
updateConfig(body) {
|
|
89
|
-
return this.put(
|
|
89
|
+
return this.put('/config', body);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
Notification.id = 'Notification';
|
|
@@ -10,6 +10,6 @@ export default class Taxonomy extends Restful implements OpenApi<operations> {
|
|
|
10
10
|
getCategorySuggestions(categoryTreeId: string, q: string): Promise<any>;
|
|
11
11
|
getItemAspectsForCategory(categoryTreeId: string, categoryId: string): Promise<any>;
|
|
12
12
|
getCompatibilityProperties(categoryTreeId: string, categoryId: string): Promise<any>;
|
|
13
|
-
getCompatibilityPropertyValues(categoryTreeId: string, categoryId: string, compatibilityProperty: string): Promise<any>;
|
|
13
|
+
getCompatibilityPropertyValues(categoryTreeId: string, categoryId: string, compatibilityProperty: string, filter?: string): Promise<any>;
|
|
14
14
|
fetchItemAspects(categoryTreeId: string): Promise<Buffer>;
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class Taxonomy extends index_js_1.default {
|
|
|
9
9
|
return '/commerce/taxonomy/v1';
|
|
10
10
|
}
|
|
11
11
|
getDefaultCategoryTreeId(marketplaceId) {
|
|
12
|
-
return this.get(
|
|
12
|
+
return this.get('/get_default_category_tree_id', {
|
|
13
13
|
params: {
|
|
14
14
|
marketplace_id: marketplaceId
|
|
15
15
|
}
|
|
@@ -50,12 +50,13 @@ class Taxonomy extends index_js_1.default {
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
getCompatibilityPropertyValues(categoryTreeId, categoryId, compatibilityProperty) {
|
|
53
|
+
getCompatibilityPropertyValues(categoryTreeId, categoryId, compatibilityProperty, filter) {
|
|
54
54
|
categoryTreeId = encodeURIComponent(categoryTreeId);
|
|
55
55
|
return this.get(`/category_tree/${categoryTreeId}/get_compatibility_property_values`, {
|
|
56
56
|
params: {
|
|
57
57
|
category_id: categoryId,
|
|
58
|
-
compatibility_property: compatibilityProperty
|
|
58
|
+
compatibility_property: compatibilityProperty,
|
|
59
|
+
filter
|
|
59
60
|
}
|
|
60
61
|
});
|
|
61
62
|
}
|
|
@@ -9,7 +9,7 @@ class Analytics extends index_js_1.default {
|
|
|
9
9
|
return '/developer/analytics/v1_beta';
|
|
10
10
|
}
|
|
11
11
|
getRateLimits(apiContext, apiName) {
|
|
12
|
-
return this.get(
|
|
12
|
+
return this.get('/rate_limit/', {
|
|
13
13
|
params: {
|
|
14
14
|
api_context: apiContext,
|
|
15
15
|
api_name: apiName
|
|
@@ -17,7 +17,7 @@ class Analytics extends index_js_1.default {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
getUserRateLimits(apiContext, apiName) {
|
|
20
|
-
return this.get(
|
|
20
|
+
return this.get('/user_rate_limit/', {
|
|
21
21
|
params: {
|
|
22
22
|
api_context: apiContext,
|
|
23
23
|
api_name: apiName
|
|
@@ -12,10 +12,10 @@ class KeyManagement extends index_js_1.default {
|
|
|
12
12
|
return '/developer/key_management/v1';
|
|
13
13
|
}
|
|
14
14
|
getSigningKeys() {
|
|
15
|
-
return this.get(
|
|
15
|
+
return this.get('/signing_key');
|
|
16
16
|
}
|
|
17
17
|
createSigningKey(signingKeyCipher) {
|
|
18
|
-
return this.post(
|
|
18
|
+
return this.post('/signing_key', {
|
|
19
19
|
signingKeyCipher
|
|
20
20
|
});
|
|
21
21
|
}
|
package/lib/api/restful/index.js
CHANGED
|
@@ -17,7 +17,7 @@ const additionalHeaders = {
|
|
|
17
17
|
marketplaceId: 'X-EBAY-C-MARKETPLACE-ID',
|
|
18
18
|
endUserCtx: 'X-EBAY-C-ENDUSERCTX',
|
|
19
19
|
acceptLanguage: 'Accept-Language',
|
|
20
|
-
contentLanguage: 'Content-Language'
|
|
20
|
+
contentLanguage: 'Content-Language'
|
|
21
21
|
};
|
|
22
22
|
class Restful extends index_js_2.default {
|
|
23
23
|
constructor(config, req, auth, apiConfig = {}) {
|
|
@@ -16,7 +16,7 @@ class Cancellation extends index_js_1.default {
|
|
|
16
16
|
return this.post(`/cancellation/${cancelId}/approve`);
|
|
17
17
|
}
|
|
18
18
|
checkCancellationEligibility(legacyOrderId) {
|
|
19
|
-
return this.post(
|
|
19
|
+
return this.post('/cancellation/check_eligibility', {
|
|
20
20
|
legacyOrderId
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -25,7 +25,7 @@ class Cancellation extends index_js_1.default {
|
|
|
25
25
|
return this.post(`/cancellation/${cancelId}/confirm`, payload);
|
|
26
26
|
}
|
|
27
27
|
createCancellation(payload) {
|
|
28
|
-
return this.post(
|
|
28
|
+
return this.post('/cancellation', payload);
|
|
29
29
|
}
|
|
30
30
|
getCancellation(cancelId, fieldGroups) {
|
|
31
31
|
cancelId = encodeURIComponent(cancelId);
|
|
@@ -40,7 +40,7 @@ class Cancellation extends index_js_1.default {
|
|
|
40
40
|
return this.post(`/cancellation/${cancelId}/reject`, payload);
|
|
41
41
|
}
|
|
42
42
|
search(params) {
|
|
43
|
-
return this.get(
|
|
43
|
+
return this.get('/cancellation/search', {
|
|
44
44
|
params
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -12,7 +12,7 @@ class Inquiry extends index_js_1.default {
|
|
|
12
12
|
return true;
|
|
13
13
|
}
|
|
14
14
|
checkInquiryEligibility(payload) {
|
|
15
|
-
return this.post(
|
|
15
|
+
return this.post('/inquiry/check_eligibility', payload);
|
|
16
16
|
}
|
|
17
17
|
closeInquiry(inquiryId, payload) {
|
|
18
18
|
inquiryId = encodeURIComponent(inquiryId);
|
|
@@ -29,7 +29,7 @@ class Inquiry extends index_js_1.default {
|
|
|
29
29
|
if (typeof payload.desiredOutcome === 'string') {
|
|
30
30
|
payload.desiredOutcome = payload.desiredOutcome.trim();
|
|
31
31
|
}
|
|
32
|
-
return this.post(
|
|
32
|
+
return this.post('/inquiry', payload);
|
|
33
33
|
}
|
|
34
34
|
escalateInquiry(inquiryId, payload) {
|
|
35
35
|
inquiryId = encodeURIComponent(inquiryId);
|
|
@@ -53,7 +53,7 @@ class Inquiry extends index_js_1.default {
|
|
|
53
53
|
return this.post(`/inquiry/${inquiryId}/provide_shipment_info`, payload);
|
|
54
54
|
}
|
|
55
55
|
search(params) {
|
|
56
|
-
return this.get(
|
|
56
|
+
return this.get('/inquiry/search', {
|
|
57
57
|
params
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -23,17 +23,17 @@ class Return extends index_js_1.default {
|
|
|
23
23
|
return this.post(`/return/${id}/cancel`, payload);
|
|
24
24
|
}
|
|
25
25
|
checkReturnEligibility(payload) {
|
|
26
|
-
return this.post(
|
|
26
|
+
return this.post('/return/check_eligibility', payload);
|
|
27
27
|
}
|
|
28
28
|
checkShippingLabelEligibility(returnId) {
|
|
29
29
|
const id = encodeURIComponent(returnId);
|
|
30
30
|
return this.get(`/return/${id}/check_label_print_eligibility`);
|
|
31
31
|
}
|
|
32
32
|
createReturnDraft(payload) {
|
|
33
|
-
return this.post(
|
|
33
|
+
return this.post('/return/draft', payload);
|
|
34
34
|
}
|
|
35
35
|
createReturnRequest(payload, fieldGroups) {
|
|
36
|
-
return this.post(
|
|
36
|
+
return this.post('/return', payload, {
|
|
37
37
|
params: {
|
|
38
38
|
fieldgroups: fieldGroups
|
|
39
39
|
}
|
|
@@ -69,14 +69,14 @@ class Return extends index_js_1.default {
|
|
|
69
69
|
return this.get(`/return/draft/${id}/files`);
|
|
70
70
|
}
|
|
71
71
|
getReturnEstimate(payload) {
|
|
72
|
-
return this.post(
|
|
72
|
+
return this.post('/return/estimate', payload);
|
|
73
73
|
}
|
|
74
74
|
getReturnFiles(returnId) {
|
|
75
75
|
const id = encodeURIComponent(returnId);
|
|
76
76
|
return this.get(`/return/${id}/files`);
|
|
77
77
|
}
|
|
78
78
|
getReturnPreferences() {
|
|
79
|
-
return this.get(
|
|
79
|
+
return this.get('/return/preference');
|
|
80
80
|
}
|
|
81
81
|
getReturnShippingLabel(returnId) {
|
|
82
82
|
returnId = encodeURIComponent(returnId);
|
|
@@ -116,7 +116,7 @@ class Return extends index_js_1.default {
|
|
|
116
116
|
return this.post(`/return/${returnId}/decide`, payload);
|
|
117
117
|
}
|
|
118
118
|
search(params) {
|
|
119
|
-
return this.get(
|
|
119
|
+
return this.get('/return/search', {
|
|
120
120
|
params
|
|
121
121
|
});
|
|
122
122
|
}
|
|
@@ -133,7 +133,7 @@ class Return extends index_js_1.default {
|
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
setReturnPreferences(rmaRequired) {
|
|
136
|
-
return this.post(
|
|
136
|
+
return this.post('/return/preference', {
|
|
137
137
|
rmaRequired
|
|
138
138
|
});
|
|
139
139
|
}
|
|
@@ -9,14 +9,14 @@ class AccountV1 extends index_js_1.default {
|
|
|
9
9
|
return '/sell/account/v1';
|
|
10
10
|
}
|
|
11
11
|
getCustomPolicies(policyTypes) {
|
|
12
|
-
return this.get(
|
|
12
|
+
return this.get('/custom_policy/', {
|
|
13
13
|
params: {
|
|
14
14
|
policy_types: policyTypes
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
createCustomPolicy(body) {
|
|
19
|
-
return this.post(
|
|
19
|
+
return this.post('/custom_policy/', body);
|
|
20
20
|
}
|
|
21
21
|
getCustomPolicy(customPolicyId) {
|
|
22
22
|
customPolicyId = encodeURIComponent(customPolicyId);
|
|
@@ -27,14 +27,14 @@ class AccountV1 extends index_js_1.default {
|
|
|
27
27
|
return this.put(`/custom_policy/${customPolicyId}`, body);
|
|
28
28
|
}
|
|
29
29
|
getFulfillmentPolicies(marketplaceId) {
|
|
30
|
-
return this.get(
|
|
30
|
+
return this.get('/fulfillment_policy', {
|
|
31
31
|
params: {
|
|
32
32
|
marketplace_id: marketplaceId
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
createFulfillmentPolicy(body) {
|
|
37
|
-
return this.post(
|
|
37
|
+
return this.post('/fulfillment_policy/', body);
|
|
38
38
|
}
|
|
39
39
|
updateFulfillmentPolicy(fulfillmentPolicyId, body) {
|
|
40
40
|
fulfillmentPolicyId = encodeURIComponent(fulfillmentPolicyId);
|
|
@@ -48,7 +48,7 @@ class AccountV1 extends index_js_1.default {
|
|
|
48
48
|
return this.get(`/fulfillment_policy/${fulfillmentPolicyId}`);
|
|
49
49
|
}
|
|
50
50
|
getFulfillmentPolicyByName(marketplaceId, name) {
|
|
51
|
-
return this.get(
|
|
51
|
+
return this.get('/fulfillment_policy/get_by_policy_name', {
|
|
52
52
|
params: {
|
|
53
53
|
marketplace_id: marketplaceId,
|
|
54
54
|
name
|
|
@@ -56,7 +56,7 @@ class AccountV1 extends index_js_1.default {
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
getPaymentPolicies(marketplaceId) {
|
|
59
|
-
return this.get(
|
|
59
|
+
return this.get('/payment_policy', {
|
|
60
60
|
params: {
|
|
61
61
|
marketplace_id: marketplaceId
|
|
62
62
|
}
|
|
@@ -67,7 +67,7 @@ class AccountV1 extends index_js_1.default {
|
|
|
67
67
|
return this.get(`/payment_policy/${paymentPolicyId}`);
|
|
68
68
|
}
|
|
69
69
|
createPaymentPolicy(body) {
|
|
70
|
-
return this.post(
|
|
70
|
+
return this.post('/payment_policy', body);
|
|
71
71
|
}
|
|
72
72
|
updatePaymentPolicy(paymentPolicyId, body) {
|
|
73
73
|
paymentPolicyId = encodeURIComponent(paymentPolicyId);
|
|
@@ -78,7 +78,7 @@ class AccountV1 extends index_js_1.default {
|
|
|
78
78
|
return this.delete(`/payment_policy/${paymentPolicyId}`);
|
|
79
79
|
}
|
|
80
80
|
getPaymentPolicyByName(marketplaceId, name) {
|
|
81
|
-
return this.get(
|
|
81
|
+
return this.get('/payment_policy/get_by_policy_name', {
|
|
82
82
|
params: {
|
|
83
83
|
marketplace_id: marketplaceId,
|
|
84
84
|
name
|
|
@@ -96,26 +96,26 @@ class AccountV1 extends index_js_1.default {
|
|
|
96
96
|
return this.get(`/payments_program/${marketplaceId}/${type}/onboarding`);
|
|
97
97
|
}
|
|
98
98
|
getPrivileges() {
|
|
99
|
-
return this.get(
|
|
99
|
+
return this.get('/privilege');
|
|
100
100
|
}
|
|
101
101
|
getOptedInPrograms() {
|
|
102
|
-
return this.get(
|
|
102
|
+
return this.get('/program/get_opted_in_programs');
|
|
103
103
|
}
|
|
104
104
|
optInToProgram(body) {
|
|
105
|
-
return this.post(
|
|
105
|
+
return this.post('/program/opt_in', body);
|
|
106
106
|
}
|
|
107
107
|
optOutOfProgram(body) {
|
|
108
|
-
return this.post(
|
|
108
|
+
return this.post('/program/opt_out', body);
|
|
109
109
|
}
|
|
110
110
|
getRateTables(countryCode) {
|
|
111
|
-
return this.get(
|
|
111
|
+
return this.get('/rate_table', {
|
|
112
112
|
params: {
|
|
113
113
|
country_code: countryCode
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
getReturnPolicies(marketplaceId) {
|
|
118
|
-
return this.get(
|
|
118
|
+
return this.get('/return_policy', {
|
|
119
119
|
params: {
|
|
120
120
|
marketplace_id: marketplaceId
|
|
121
121
|
}
|
|
@@ -126,7 +126,7 @@ class AccountV1 extends index_js_1.default {
|
|
|
126
126
|
return this.get(`/return_policy/${returnPolicyId}`);
|
|
127
127
|
}
|
|
128
128
|
createReturnPolicy(body) {
|
|
129
|
-
return this.post(
|
|
129
|
+
return this.post('/return_policy', body);
|
|
130
130
|
}
|
|
131
131
|
updateReturnPolicy(returnPolicyId, body) {
|
|
132
132
|
returnPolicyId = encodeURIComponent(returnPolicyId);
|
|
@@ -137,7 +137,7 @@ class AccountV1 extends index_js_1.default {
|
|
|
137
137
|
return this.delete(`/return_policy/${returnPolicyId}`);
|
|
138
138
|
}
|
|
139
139
|
getReturnPolicyByName(marketplaceId, name) {
|
|
140
|
-
return this.get(
|
|
140
|
+
return this.get('/return_policy/get_by_policy_name', {
|
|
141
141
|
params: {
|
|
142
142
|
marketplace_id: marketplaceId,
|
|
143
143
|
name
|
|
@@ -160,14 +160,14 @@ class AccountV1 extends index_js_1.default {
|
|
|
160
160
|
return this.delete(`/sales_tax/${countryCode}/${jurisdictionId}`);
|
|
161
161
|
}
|
|
162
162
|
getSalesTaxes(countryCode) {
|
|
163
|
-
return this.get(
|
|
163
|
+
return this.get('/sales_tax', {
|
|
164
164
|
params: {
|
|
165
165
|
country_code: countryCode
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
getSubscription({ limit, continuationToken } = {}) {
|
|
170
|
-
return this.get(
|
|
170
|
+
return this.get('/subscription', {
|
|
171
171
|
params: {
|
|
172
172
|
limit,
|
|
173
173
|
continuation_token: continuationToken
|
|
@@ -175,10 +175,10 @@ class AccountV1 extends index_js_1.default {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
getKYC() {
|
|
178
|
-
return this.get(
|
|
178
|
+
return this.get('/kyc');
|
|
179
179
|
}
|
|
180
180
|
getAdvertisingEligibility(programTypes) {
|
|
181
|
-
return this.get(
|
|
181
|
+
return this.get('/advertising_eligibility', {
|
|
182
182
|
params: {
|
|
183
183
|
program_types: programTypes
|
|
184
184
|
}
|
|
@@ -205,7 +205,7 @@ class AccountV1 extends index_js_1.default {
|
|
|
205
205
|
return this.post(`/location/${merchantLocationKey}/enable`);
|
|
206
206
|
}
|
|
207
207
|
getInventoryLocations({ limit, offset } = {}) {
|
|
208
|
-
return this.get(
|
|
208
|
+
return this.get('/location', {
|
|
209
209
|
params: {
|
|
210
210
|
limit,
|
|
211
211
|
offset
|
|
@@ -20,7 +20,7 @@ class AccountV2 extends index_js_1.default {
|
|
|
20
20
|
return this.get('/payout_settings');
|
|
21
21
|
}
|
|
22
22
|
updatePayoutPercentage(body) {
|
|
23
|
-
return this.post(
|
|
23
|
+
return this.post('/payout_settings/update_percentage', body);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
AccountV2.id = 'AccountV2';
|
|
@@ -9,7 +9,7 @@ class Analytics extends index_js_1.default {
|
|
|
9
9
|
return '/sell/analytics/v1';
|
|
10
10
|
}
|
|
11
11
|
findSellerStandardsProfiles() {
|
|
12
|
-
return this.get(
|
|
12
|
+
return this.get('/seller_standards_profile');
|
|
13
13
|
}
|
|
14
14
|
getSellerStandardsProfile(program, cycle) {
|
|
15
15
|
program = encodeURIComponent(program);
|
|
@@ -17,7 +17,7 @@ class Analytics extends index_js_1.default {
|
|
|
17
17
|
return this.get(`/seller_standards_profile/${program}/${cycle}`);
|
|
18
18
|
}
|
|
19
19
|
getTrafficReport({ dimension, filter, metric, sort } = {}) {
|
|
20
|
-
return this.get(
|
|
20
|
+
return this.get('/traffic_report', {
|
|
21
21
|
params: {
|
|
22
22
|
dimension,
|
|
23
23
|
filter,
|
|
@@ -9,14 +9,14 @@ class Compliance extends index_js_1.default {
|
|
|
9
9
|
return '/sell/compliance/v1';
|
|
10
10
|
}
|
|
11
11
|
getListingViolationsSummary(complianceType) {
|
|
12
|
-
return this.get(
|
|
12
|
+
return this.get('/listing_violation_summary', {
|
|
13
13
|
params: {
|
|
14
14
|
compliance_type: complianceType
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
getListingViolations({ complianceType, offset, listingId, limit } = {}) {
|
|
19
|
-
return this.get(
|
|
19
|
+
return this.get('/listing_violation', {
|
|
20
20
|
params: {
|
|
21
21
|
compliance_type: complianceType,
|
|
22
22
|
offset,
|
|
@@ -26,7 +26,7 @@ class Compliance extends index_js_1.default {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
suppressViolation(body) {
|
|
29
|
-
return this.post(
|
|
29
|
+
return this.post('/suppress_listing_violation', body);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
Compliance.id = 'Compliance';
|
|
@@ -17,21 +17,21 @@ export default class Feed extends Restful implements OpenApi<operations> {
|
|
|
17
17
|
}): Promise<any>;
|
|
18
18
|
createInventoryTask(data: any): Promise<any>;
|
|
19
19
|
getInventoryTask(taskId: string): Promise<any>;
|
|
20
|
-
getSchedules({ feedType, limit, offset
|
|
20
|
+
getSchedules({ feedType, limit, offset }?: SellFeedParams): Promise<any>;
|
|
21
21
|
createSchedule(data: any): Promise<any>;
|
|
22
22
|
getSchedule(scheduleId: string): Promise<any>;
|
|
23
23
|
updateSchedule(scheduleId: string, data?: any): Promise<any>;
|
|
24
24
|
deleteSchedule(scheduleId: string): Promise<any>;
|
|
25
25
|
getLatestResultFile(scheduleId: string): Promise<any>;
|
|
26
26
|
getScheduleTemplate(scheduleTemplateId: string): Promise<any>;
|
|
27
|
-
getScheduleTemplates({ feedType, limit, offset
|
|
27
|
+
getScheduleTemplates({ feedType, limit, offset }?: SellFeedParams): Promise<any>;
|
|
28
28
|
getTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId }?: SellFeedParams): Promise<any>;
|
|
29
29
|
createTask(data: any): Promise<any>;
|
|
30
30
|
getInputFile(taskId: string): Promise<any>;
|
|
31
31
|
getResultFile(taskId: string): Promise<any>;
|
|
32
32
|
getTask(taskId: string): Promise<any>;
|
|
33
33
|
uploadFile(taskId: string, data?: any): Promise<any>;
|
|
34
|
-
getCustomerServiceMetricTasks({ dateRange, feedType, limit, lookBackDays, offset
|
|
34
|
+
getCustomerServiceMetricTasks({ dateRange, feedType, limit, lookBackDays, offset }?: SellFeedParams): Promise<any>;
|
|
35
35
|
createCustomerServiceMetricTask(acceptLanguage: string, data: any): Promise<any>;
|
|
36
36
|
getCustomerServiceMetricTask(taskId: string): Promise<any>;
|
|
37
37
|
}
|
|
@@ -10,7 +10,7 @@ class Feed extends index_js_1.default {
|
|
|
10
10
|
return '/sell/feed/v1';
|
|
11
11
|
}
|
|
12
12
|
getOrderTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId } = {}) {
|
|
13
|
-
return this.get(
|
|
13
|
+
return this.get('/order_task', {
|
|
14
14
|
params: {
|
|
15
15
|
date_range: dateRange,
|
|
16
16
|
feed_type: feedType,
|
|
@@ -22,7 +22,7 @@ class Feed extends index_js_1.default {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
createOrderTask(data) {
|
|
25
|
-
return this.post(
|
|
25
|
+
return this.post('/order_task', data);
|
|
26
26
|
}
|
|
27
27
|
getOrderTask(taskId) {
|
|
28
28
|
taskId = encodeURIComponent(taskId);
|
|
@@ -47,8 +47,8 @@ class Feed extends index_js_1.default {
|
|
|
47
47
|
taskId = encodeURIComponent(taskId);
|
|
48
48
|
return this.get(`/inventory_task/${taskId}`);
|
|
49
49
|
}
|
|
50
|
-
getSchedules({ feedType, limit, offset
|
|
51
|
-
return this.get(
|
|
50
|
+
getSchedules({ feedType, limit, offset } = {}) {
|
|
51
|
+
return this.get('/schedule', {
|
|
52
52
|
params: {
|
|
53
53
|
feed_type: feedType,
|
|
54
54
|
limit,
|
|
@@ -57,7 +57,7 @@ class Feed extends index_js_1.default {
|
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
createSchedule(data) {
|
|
60
|
-
return this.post(
|
|
60
|
+
return this.post('/schedule', data);
|
|
61
61
|
}
|
|
62
62
|
getSchedule(scheduleId) {
|
|
63
63
|
scheduleId = encodeURIComponent(scheduleId);
|
|
@@ -75,15 +75,15 @@ class Feed extends index_js_1.default {
|
|
|
75
75
|
scheduleId = encodeURIComponent(scheduleId);
|
|
76
76
|
return this.get(`/schedule/${scheduleId}/download_result_file`, {
|
|
77
77
|
responseType: 'arraybuffer',
|
|
78
|
-
responseEncoding: 'binary'
|
|
78
|
+
responseEncoding: 'binary'
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
getScheduleTemplate(scheduleTemplateId) {
|
|
82
82
|
scheduleTemplateId = encodeURIComponent(scheduleTemplateId);
|
|
83
83
|
return this.get(`/schedule_template/${scheduleTemplateId}`);
|
|
84
84
|
}
|
|
85
|
-
getScheduleTemplates({ feedType, limit, offset
|
|
86
|
-
return this.get(
|
|
85
|
+
getScheduleTemplates({ feedType, limit, offset } = {}) {
|
|
86
|
+
return this.get('/schedule_template', {
|
|
87
87
|
params: {
|
|
88
88
|
feed_type: feedType,
|
|
89
89
|
limit,
|
|
@@ -92,7 +92,7 @@ class Feed extends index_js_1.default {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
getTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId } = {}) {
|
|
95
|
-
return this.get(
|
|
95
|
+
return this.get('/task', {
|
|
96
96
|
params: {
|
|
97
97
|
date_range: dateRange,
|
|
98
98
|
feed_type: feedType,
|
|
@@ -104,7 +104,7 @@ class Feed extends index_js_1.default {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
createTask(data) {
|
|
107
|
-
return this.post(
|
|
107
|
+
return this.post('/task', data);
|
|
108
108
|
}
|
|
109
109
|
getInputFile(taskId) {
|
|
110
110
|
taskId = encodeURIComponent(taskId);
|
|
@@ -114,7 +114,7 @@ class Feed extends index_js_1.default {
|
|
|
114
114
|
taskId = encodeURIComponent(taskId);
|
|
115
115
|
return this.get(`/task/${taskId}/download_result_file`, {
|
|
116
116
|
responseType: 'arraybuffer',
|
|
117
|
-
responseEncoding: 'binary'
|
|
117
|
+
responseEncoding: 'binary'
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
getTask(taskId) {
|
|
@@ -124,22 +124,22 @@ class Feed extends index_js_1.default {
|
|
|
124
124
|
uploadFile(taskId, data) {
|
|
125
125
|
taskId = encodeURIComponent(taskId);
|
|
126
126
|
return this.post(`/task/${taskId}/upload_file`, data, {
|
|
127
|
-
headers: request_js_1.multipartHeader
|
|
127
|
+
headers: request_js_1.multipartHeader
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
getCustomerServiceMetricTasks({ dateRange, feedType, limit, lookBackDays, offset
|
|
131
|
-
return this.get(
|
|
130
|
+
getCustomerServiceMetricTasks({ dateRange, feedType, limit, lookBackDays, offset } = {}) {
|
|
131
|
+
return this.get('/customer_service_metric_task', {
|
|
132
132
|
params: {
|
|
133
133
|
date_range: dateRange,
|
|
134
134
|
feed_type: feedType,
|
|
135
135
|
limit,
|
|
136
136
|
look_back_days: lookBackDays,
|
|
137
|
-
offset
|
|
137
|
+
offset
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
createCustomerServiceMetricTask(acceptLanguage, data) {
|
|
142
|
-
return this.post(
|
|
142
|
+
return this.post('/customer_service_metric_task', data, {
|
|
143
143
|
headers: {
|
|
144
144
|
'accept-language': acceptLanguage
|
|
145
145
|
}
|
|
@@ -5,13 +5,13 @@ export default class Finances extends Restful implements OpenApi<operations> {
|
|
|
5
5
|
get basePath(): string;
|
|
6
6
|
get subdomain(): string;
|
|
7
7
|
getPayout(payoutId: string): Promise<any>;
|
|
8
|
-
getPayouts({ filter, limit, offset, sort
|
|
8
|
+
getPayouts({ filter, limit, offset, sort }?: {
|
|
9
9
|
filter?: string;
|
|
10
10
|
limit?: number;
|
|
11
11
|
offset?: number;
|
|
12
12
|
sort?: 'payoutDate' | '-payoutDate';
|
|
13
13
|
}): Promise<any>;
|
|
14
|
-
getPayoutSummary({ filter
|
|
14
|
+
getPayoutSummary({ filter }?: {
|
|
15
15
|
filter?: string;
|
|
16
16
|
}): Promise<any>;
|
|
17
17
|
getTransactions({ filter, limit, offset, sort }?: {
|
|
@@ -20,7 +20,7 @@ export default class Finances extends Restful implements OpenApi<operations> {
|
|
|
20
20
|
offset?: number;
|
|
21
21
|
sort?: 'transactionDate' | '-transactionDate';
|
|
22
22
|
}): Promise<any>;
|
|
23
|
-
getTransactionSummary({ filter
|
|
23
|
+
getTransactionSummary({ filter }?: {
|
|
24
24
|
filter?: string;
|
|
25
25
|
}): Promise<any>;
|
|
26
26
|
getTransfer(transferId: string): Promise<any>;
|