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
|
@@ -4,14 +4,14 @@ class AccountV1 extends Restful {
|
|
|
4
4
|
return '/sell/account/v1';
|
|
5
5
|
}
|
|
6
6
|
getCustomPolicies(policyTypes) {
|
|
7
|
-
return this.get(
|
|
7
|
+
return this.get('/custom_policy/', {
|
|
8
8
|
params: {
|
|
9
9
|
policy_types: policyTypes
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
createCustomPolicy(body) {
|
|
14
|
-
return this.post(
|
|
14
|
+
return this.post('/custom_policy/', body);
|
|
15
15
|
}
|
|
16
16
|
getCustomPolicy(customPolicyId) {
|
|
17
17
|
customPolicyId = encodeURIComponent(customPolicyId);
|
|
@@ -22,14 +22,14 @@ class AccountV1 extends Restful {
|
|
|
22
22
|
return this.put(`/custom_policy/${customPolicyId}`, body);
|
|
23
23
|
}
|
|
24
24
|
getFulfillmentPolicies(marketplaceId) {
|
|
25
|
-
return this.get(
|
|
25
|
+
return this.get('/fulfillment_policy', {
|
|
26
26
|
params: {
|
|
27
27
|
marketplace_id: marketplaceId
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
createFulfillmentPolicy(body) {
|
|
32
|
-
return this.post(
|
|
32
|
+
return this.post('/fulfillment_policy/', body);
|
|
33
33
|
}
|
|
34
34
|
updateFulfillmentPolicy(fulfillmentPolicyId, body) {
|
|
35
35
|
fulfillmentPolicyId = encodeURIComponent(fulfillmentPolicyId);
|
|
@@ -43,7 +43,7 @@ class AccountV1 extends Restful {
|
|
|
43
43
|
return this.get(`/fulfillment_policy/${fulfillmentPolicyId}`);
|
|
44
44
|
}
|
|
45
45
|
getFulfillmentPolicyByName(marketplaceId, name) {
|
|
46
|
-
return this.get(
|
|
46
|
+
return this.get('/fulfillment_policy/get_by_policy_name', {
|
|
47
47
|
params: {
|
|
48
48
|
marketplace_id: marketplaceId,
|
|
49
49
|
name
|
|
@@ -51,7 +51,7 @@ class AccountV1 extends Restful {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
getPaymentPolicies(marketplaceId) {
|
|
54
|
-
return this.get(
|
|
54
|
+
return this.get('/payment_policy', {
|
|
55
55
|
params: {
|
|
56
56
|
marketplace_id: marketplaceId
|
|
57
57
|
}
|
|
@@ -62,7 +62,7 @@ class AccountV1 extends Restful {
|
|
|
62
62
|
return this.get(`/payment_policy/${paymentPolicyId}`);
|
|
63
63
|
}
|
|
64
64
|
createPaymentPolicy(body) {
|
|
65
|
-
return this.post(
|
|
65
|
+
return this.post('/payment_policy', body);
|
|
66
66
|
}
|
|
67
67
|
updatePaymentPolicy(paymentPolicyId, body) {
|
|
68
68
|
paymentPolicyId = encodeURIComponent(paymentPolicyId);
|
|
@@ -73,7 +73,7 @@ class AccountV1 extends Restful {
|
|
|
73
73
|
return this.delete(`/payment_policy/${paymentPolicyId}`);
|
|
74
74
|
}
|
|
75
75
|
getPaymentPolicyByName(marketplaceId, name) {
|
|
76
|
-
return this.get(
|
|
76
|
+
return this.get('/payment_policy/get_by_policy_name', {
|
|
77
77
|
params: {
|
|
78
78
|
marketplace_id: marketplaceId,
|
|
79
79
|
name
|
|
@@ -91,26 +91,26 @@ class AccountV1 extends Restful {
|
|
|
91
91
|
return this.get(`/payments_program/${marketplaceId}/${type}/onboarding`);
|
|
92
92
|
}
|
|
93
93
|
getPrivileges() {
|
|
94
|
-
return this.get(
|
|
94
|
+
return this.get('/privilege');
|
|
95
95
|
}
|
|
96
96
|
getOptedInPrograms() {
|
|
97
|
-
return this.get(
|
|
97
|
+
return this.get('/program/get_opted_in_programs');
|
|
98
98
|
}
|
|
99
99
|
optInToProgram(body) {
|
|
100
|
-
return this.post(
|
|
100
|
+
return this.post('/program/opt_in', body);
|
|
101
101
|
}
|
|
102
102
|
optOutOfProgram(body) {
|
|
103
|
-
return this.post(
|
|
103
|
+
return this.post('/program/opt_out', body);
|
|
104
104
|
}
|
|
105
105
|
getRateTables(countryCode) {
|
|
106
|
-
return this.get(
|
|
106
|
+
return this.get('/rate_table', {
|
|
107
107
|
params: {
|
|
108
108
|
country_code: countryCode
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
getReturnPolicies(marketplaceId) {
|
|
113
|
-
return this.get(
|
|
113
|
+
return this.get('/return_policy', {
|
|
114
114
|
params: {
|
|
115
115
|
marketplace_id: marketplaceId
|
|
116
116
|
}
|
|
@@ -121,7 +121,7 @@ class AccountV1 extends Restful {
|
|
|
121
121
|
return this.get(`/return_policy/${returnPolicyId}`);
|
|
122
122
|
}
|
|
123
123
|
createReturnPolicy(body) {
|
|
124
|
-
return this.post(
|
|
124
|
+
return this.post('/return_policy', body);
|
|
125
125
|
}
|
|
126
126
|
updateReturnPolicy(returnPolicyId, body) {
|
|
127
127
|
returnPolicyId = encodeURIComponent(returnPolicyId);
|
|
@@ -132,7 +132,7 @@ class AccountV1 extends Restful {
|
|
|
132
132
|
return this.delete(`/return_policy/${returnPolicyId}`);
|
|
133
133
|
}
|
|
134
134
|
getReturnPolicyByName(marketplaceId, name) {
|
|
135
|
-
return this.get(
|
|
135
|
+
return this.get('/return_policy/get_by_policy_name', {
|
|
136
136
|
params: {
|
|
137
137
|
marketplace_id: marketplaceId,
|
|
138
138
|
name
|
|
@@ -155,14 +155,14 @@ class AccountV1 extends Restful {
|
|
|
155
155
|
return this.delete(`/sales_tax/${countryCode}/${jurisdictionId}`);
|
|
156
156
|
}
|
|
157
157
|
getSalesTaxes(countryCode) {
|
|
158
|
-
return this.get(
|
|
158
|
+
return this.get('/sales_tax', {
|
|
159
159
|
params: {
|
|
160
160
|
country_code: countryCode
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
getSubscription({ limit, continuationToken } = {}) {
|
|
165
|
-
return this.get(
|
|
165
|
+
return this.get('/subscription', {
|
|
166
166
|
params: {
|
|
167
167
|
limit,
|
|
168
168
|
continuation_token: continuationToken
|
|
@@ -170,10 +170,10 @@ class AccountV1 extends Restful {
|
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
getKYC() {
|
|
173
|
-
return this.get(
|
|
173
|
+
return this.get('/kyc');
|
|
174
174
|
}
|
|
175
175
|
getAdvertisingEligibility(programTypes) {
|
|
176
|
-
return this.get(
|
|
176
|
+
return this.get('/advertising_eligibility', {
|
|
177
177
|
params: {
|
|
178
178
|
program_types: programTypes
|
|
179
179
|
}
|
|
@@ -200,7 +200,7 @@ class AccountV1 extends Restful {
|
|
|
200
200
|
return this.post(`/location/${merchantLocationKey}/enable`);
|
|
201
201
|
}
|
|
202
202
|
getInventoryLocations({ limit, offset } = {}) {
|
|
203
|
-
return this.get(
|
|
203
|
+
return this.get('/location', {
|
|
204
204
|
params: {
|
|
205
205
|
limit,
|
|
206
206
|
offset
|
|
@@ -15,7 +15,7 @@ class AccountV2 extends Restful {
|
|
|
15
15
|
return this.get('/payout_settings');
|
|
16
16
|
}
|
|
17
17
|
updatePayoutPercentage(body) {
|
|
18
|
-
return this.post(
|
|
18
|
+
return this.post('/payout_settings/update_percentage', body);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
AccountV2.id = 'AccountV2';
|
|
@@ -4,7 +4,7 @@ class Analytics extends Restful {
|
|
|
4
4
|
return '/sell/analytics/v1';
|
|
5
5
|
}
|
|
6
6
|
findSellerStandardsProfiles() {
|
|
7
|
-
return this.get(
|
|
7
|
+
return this.get('/seller_standards_profile');
|
|
8
8
|
}
|
|
9
9
|
getSellerStandardsProfile(program, cycle) {
|
|
10
10
|
program = encodeURIComponent(program);
|
|
@@ -12,7 +12,7 @@ class Analytics extends Restful {
|
|
|
12
12
|
return this.get(`/seller_standards_profile/${program}/${cycle}`);
|
|
13
13
|
}
|
|
14
14
|
getTrafficReport({ dimension, filter, metric, sort } = {}) {
|
|
15
|
-
return this.get(
|
|
15
|
+
return this.get('/traffic_report', {
|
|
16
16
|
params: {
|
|
17
17
|
dimension,
|
|
18
18
|
filter,
|
|
@@ -4,14 +4,14 @@ class Compliance extends Restful {
|
|
|
4
4
|
return '/sell/compliance/v1';
|
|
5
5
|
}
|
|
6
6
|
getListingViolationsSummary(complianceType) {
|
|
7
|
-
return this.get(
|
|
7
|
+
return this.get('/listing_violation_summary', {
|
|
8
8
|
params: {
|
|
9
9
|
compliance_type: complianceType
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
getListingViolations({ complianceType, offset, listingId, limit } = {}) {
|
|
14
|
-
return this.get(
|
|
14
|
+
return this.get('/listing_violation', {
|
|
15
15
|
params: {
|
|
16
16
|
compliance_type: complianceType,
|
|
17
17
|
offset,
|
|
@@ -21,7 +21,7 @@ class Compliance extends Restful {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
suppressViolation(body) {
|
|
24
|
-
return this.post(
|
|
24
|
+
return this.post('/suppress_listing_violation', body);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
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
|
}
|
|
@@ -5,7 +5,7 @@ class Feed extends Restful {
|
|
|
5
5
|
return '/sell/feed/v1';
|
|
6
6
|
}
|
|
7
7
|
getOrderTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId } = {}) {
|
|
8
|
-
return this.get(
|
|
8
|
+
return this.get('/order_task', {
|
|
9
9
|
params: {
|
|
10
10
|
date_range: dateRange,
|
|
11
11
|
feed_type: feedType,
|
|
@@ -17,7 +17,7 @@ class Feed extends Restful {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
createOrderTask(data) {
|
|
20
|
-
return this.post(
|
|
20
|
+
return this.post('/order_task', data);
|
|
21
21
|
}
|
|
22
22
|
getOrderTask(taskId) {
|
|
23
23
|
taskId = encodeURIComponent(taskId);
|
|
@@ -42,8 +42,8 @@ class Feed extends Restful {
|
|
|
42
42
|
taskId = encodeURIComponent(taskId);
|
|
43
43
|
return this.get(`/inventory_task/${taskId}`);
|
|
44
44
|
}
|
|
45
|
-
getSchedules({ feedType, limit, offset
|
|
46
|
-
return this.get(
|
|
45
|
+
getSchedules({ feedType, limit, offset } = {}) {
|
|
46
|
+
return this.get('/schedule', {
|
|
47
47
|
params: {
|
|
48
48
|
feed_type: feedType,
|
|
49
49
|
limit,
|
|
@@ -52,7 +52,7 @@ class Feed extends Restful {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
createSchedule(data) {
|
|
55
|
-
return this.post(
|
|
55
|
+
return this.post('/schedule', data);
|
|
56
56
|
}
|
|
57
57
|
getSchedule(scheduleId) {
|
|
58
58
|
scheduleId = encodeURIComponent(scheduleId);
|
|
@@ -70,15 +70,15 @@ class Feed extends Restful {
|
|
|
70
70
|
scheduleId = encodeURIComponent(scheduleId);
|
|
71
71
|
return this.get(`/schedule/${scheduleId}/download_result_file`, {
|
|
72
72
|
responseType: 'arraybuffer',
|
|
73
|
-
responseEncoding: 'binary'
|
|
73
|
+
responseEncoding: 'binary'
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
getScheduleTemplate(scheduleTemplateId) {
|
|
77
77
|
scheduleTemplateId = encodeURIComponent(scheduleTemplateId);
|
|
78
78
|
return this.get(`/schedule_template/${scheduleTemplateId}`);
|
|
79
79
|
}
|
|
80
|
-
getScheduleTemplates({ feedType, limit, offset
|
|
81
|
-
return this.get(
|
|
80
|
+
getScheduleTemplates({ feedType, limit, offset } = {}) {
|
|
81
|
+
return this.get('/schedule_template', {
|
|
82
82
|
params: {
|
|
83
83
|
feed_type: feedType,
|
|
84
84
|
limit,
|
|
@@ -87,7 +87,7 @@ class Feed extends Restful {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
getTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId } = {}) {
|
|
90
|
-
return this.get(
|
|
90
|
+
return this.get('/task', {
|
|
91
91
|
params: {
|
|
92
92
|
date_range: dateRange,
|
|
93
93
|
feed_type: feedType,
|
|
@@ -99,7 +99,7 @@ class Feed extends Restful {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
createTask(data) {
|
|
102
|
-
return this.post(
|
|
102
|
+
return this.post('/task', data);
|
|
103
103
|
}
|
|
104
104
|
getInputFile(taskId) {
|
|
105
105
|
taskId = encodeURIComponent(taskId);
|
|
@@ -109,7 +109,7 @@ class Feed extends Restful {
|
|
|
109
109
|
taskId = encodeURIComponent(taskId);
|
|
110
110
|
return this.get(`/task/${taskId}/download_result_file`, {
|
|
111
111
|
responseType: 'arraybuffer',
|
|
112
|
-
responseEncoding: 'binary'
|
|
112
|
+
responseEncoding: 'binary'
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
getTask(taskId) {
|
|
@@ -119,22 +119,22 @@ class Feed extends Restful {
|
|
|
119
119
|
uploadFile(taskId, data) {
|
|
120
120
|
taskId = encodeURIComponent(taskId);
|
|
121
121
|
return this.post(`/task/${taskId}/upload_file`, data, {
|
|
122
|
-
headers: multipartHeader
|
|
122
|
+
headers: multipartHeader
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
getCustomerServiceMetricTasks({ dateRange, feedType, limit, lookBackDays, offset
|
|
126
|
-
return this.get(
|
|
125
|
+
getCustomerServiceMetricTasks({ dateRange, feedType, limit, lookBackDays, offset } = {}) {
|
|
126
|
+
return this.get('/customer_service_metric_task', {
|
|
127
127
|
params: {
|
|
128
128
|
date_range: dateRange,
|
|
129
129
|
feed_type: feedType,
|
|
130
130
|
limit,
|
|
131
131
|
look_back_days: lookBackDays,
|
|
132
|
-
offset
|
|
132
|
+
offset
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
createCustomerServiceMetricTask(acceptLanguage, data) {
|
|
137
|
-
return this.post(
|
|
137
|
+
return this.post('/customer_service_metric_task', data, {
|
|
138
138
|
headers: {
|
|
139
139
|
'accept-language': acceptLanguage
|
|
140
140
|
}
|
|
@@ -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>;
|
|
@@ -10,34 +10,34 @@ class Finances extends Restful {
|
|
|
10
10
|
payoutId = encodeURIComponent(payoutId);
|
|
11
11
|
return this.get(`/payout/${payoutId}`);
|
|
12
12
|
}
|
|
13
|
-
getPayouts({ filter, limit, offset, sort
|
|
14
|
-
return this.get(
|
|
13
|
+
getPayouts({ filter, limit, offset, sort } = {}) {
|
|
14
|
+
return this.get('/payout', {
|
|
15
15
|
params: {
|
|
16
16
|
filter,
|
|
17
17
|
limit,
|
|
18
18
|
offset,
|
|
19
|
-
sort
|
|
20
|
-
}
|
|
19
|
+
sort
|
|
20
|
+
}
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
getPayoutSummary({ filter
|
|
24
|
-
return this.get(
|
|
23
|
+
getPayoutSummary({ filter } = {}) {
|
|
24
|
+
return this.get('/payout_summary', { params: { filter } });
|
|
25
25
|
}
|
|
26
26
|
getTransactions({ filter, limit, offset, sort } = {}) {
|
|
27
|
-
return this.get(
|
|
27
|
+
return this.get('/transaction', {
|
|
28
28
|
params: {
|
|
29
29
|
filter,
|
|
30
30
|
limit,
|
|
31
31
|
offset,
|
|
32
|
-
sort
|
|
33
|
-
}
|
|
32
|
+
sort
|
|
33
|
+
}
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
getTransactionSummary({ filter
|
|
37
|
-
return this.get(
|
|
36
|
+
getTransactionSummary({ filter } = {}) {
|
|
37
|
+
return this.get('/transaction_summary', {
|
|
38
38
|
params: {
|
|
39
|
-
filter
|
|
40
|
-
}
|
|
39
|
+
filter
|
|
40
|
+
}
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
getTransfer(transferId) {
|
|
@@ -45,7 +45,7 @@ class Finances extends Restful {
|
|
|
45
45
|
return this.get(`/transfer/${transferId}`);
|
|
46
46
|
}
|
|
47
47
|
getSellerFundsSummary() {
|
|
48
|
-
return this.get(
|
|
48
|
+
return this.get('/seller_funds_summary');
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
Finances.id = 'Finances';
|
|
@@ -7,7 +7,7 @@ export default class Fulfillment extends Restful implements OpenApi<operations>
|
|
|
7
7
|
getOrder(orderId: string, { fieldGroups }?: {
|
|
8
8
|
fieldGroups?: string[];
|
|
9
9
|
}): Promise<any>;
|
|
10
|
-
getOrders({ filter, limit, offset, orderIds, fieldGroups
|
|
10
|
+
getOrders({ filter, limit, offset, orderIds, fieldGroups }?: {
|
|
11
11
|
filter?: string;
|
|
12
12
|
limit?: number;
|
|
13
13
|
offset?: number;
|
|
@@ -11,15 +11,15 @@ class Fulfillment extends Restful {
|
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
getOrders({ filter, limit, offset, orderIds, fieldGroups
|
|
15
|
-
return this.get(
|
|
14
|
+
getOrders({ filter, limit, offset, orderIds, fieldGroups } = {}) {
|
|
15
|
+
return this.get('/order', {
|
|
16
16
|
params: {
|
|
17
17
|
filter,
|
|
18
18
|
limit,
|
|
19
19
|
offset,
|
|
20
20
|
orderIds: Array.isArray(orderIds) ? orderIds.join() : orderIds,
|
|
21
21
|
fieldGroups
|
|
22
|
-
}
|
|
22
|
+
}
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
issueRefund(orderId, body) {
|
|
@@ -49,7 +49,7 @@ class Fulfillment extends Restful {
|
|
|
49
49
|
return this.get(`/payment_dispute/${paymentDisputeId}/activity`);
|
|
50
50
|
}
|
|
51
51
|
getPaymentDisputeSummaries({ orderId: order_id, buyerUsername: buyer_username, openDateFrom: open_date_from, openDateTo: open_date_to, paymentDisputeStatus: payment_dispute_status, limit, offset }) {
|
|
52
|
-
return this.get(
|
|
52
|
+
return this.get('/payment_dispute_summary', {
|
|
53
53
|
params: {
|
|
54
54
|
order_id,
|
|
55
55
|
buyer_username,
|
|
@@ -7,7 +7,7 @@ export default class Inventory extends Restful implements OpenApi<operations> {
|
|
|
7
7
|
getInventoryLocation(merchantLocationKey: string): Promise<any>;
|
|
8
8
|
disableInventoryLocation(merchantLocationKey: string): Promise<any>;
|
|
9
9
|
enableInventoryLocation(merchantLocationKey: string): Promise<any>;
|
|
10
|
-
getInventoryLocations({ limit, offset
|
|
10
|
+
getInventoryLocations({ limit, offset }?: {
|
|
11
11
|
limit?: number;
|
|
12
12
|
offset?: number;
|
|
13
13
|
}): Promise<any>;
|
|
@@ -17,7 +17,7 @@ export default class Inventory extends Restful implements OpenApi<operations> {
|
|
|
17
17
|
getInventoryItem(sku: string): Promise<any>;
|
|
18
18
|
createOrReplaceInventoryItem(sku: string, body: InventoryItem): Promise<any>;
|
|
19
19
|
deleteInventoryItem(sku: string): Promise<any>;
|
|
20
|
-
getInventoryItems({ limit, offset
|
|
20
|
+
getInventoryItems({ limit, offset }?: {
|
|
21
21
|
limit?: number;
|
|
22
22
|
offset?: number;
|
|
23
23
|
}): Promise<any>;
|
|
@@ -27,7 +27,7 @@ export default class Inventory extends Restful implements OpenApi<operations> {
|
|
|
27
27
|
getProductCompatibility(sku: string): Promise<any>;
|
|
28
28
|
createOrReplaceProductCompatibility(sku: string, body: Compatibility): Promise<any>;
|
|
29
29
|
deleteProductCompatibility(sku: string): Promise<any>;
|
|
30
|
-
getOffers({ sku, marketplaceId, format, limit, offset
|
|
30
|
+
getOffers({ sku, marketplaceId, format, limit, offset }?: {
|
|
31
31
|
sku?: string;
|
|
32
32
|
marketplaceId?: string;
|
|
33
33
|
format?: string;
|
|
@@ -15,12 +15,12 @@ class Inventory extends Restful {
|
|
|
15
15
|
const key = encodeURIComponent(merchantLocationKey);
|
|
16
16
|
return this.post(`/location/${key}/enable`);
|
|
17
17
|
}
|
|
18
|
-
getInventoryLocations({ limit, offset
|
|
19
|
-
return this.get(
|
|
18
|
+
getInventoryLocations({ limit, offset } = {}) {
|
|
19
|
+
return this.get('/location', {
|
|
20
20
|
params: {
|
|
21
21
|
limit,
|
|
22
|
-
offset
|
|
23
|
-
}
|
|
22
|
+
offset
|
|
23
|
+
}
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
createInventoryLocation(merchantLocationKey, body) {
|
|
@@ -47,22 +47,22 @@ class Inventory extends Restful {
|
|
|
47
47
|
sku = encodeURIComponent(sku);
|
|
48
48
|
return this.delete(`/inventory_item/${sku}`);
|
|
49
49
|
}
|
|
50
|
-
getInventoryItems({ limit, offset
|
|
51
|
-
return this.get(
|
|
50
|
+
getInventoryItems({ limit, offset } = {}) {
|
|
51
|
+
return this.get('/inventory_item', {
|
|
52
52
|
params: {
|
|
53
53
|
limit,
|
|
54
|
-
offset
|
|
55
|
-
}
|
|
54
|
+
offset
|
|
55
|
+
}
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
bulkUpdatePriceQuantity(body) {
|
|
59
|
-
return this.post(
|
|
59
|
+
return this.post('/bulk_update_price_quantity', body);
|
|
60
60
|
}
|
|
61
61
|
bulkCreateOrReplaceInventoryItem(body) {
|
|
62
|
-
return this.post(
|
|
62
|
+
return this.post('/bulk_create_or_replace_inventory_item', body);
|
|
63
63
|
}
|
|
64
64
|
bulkGetInventoryItem(body) {
|
|
65
|
-
return this.post(
|
|
65
|
+
return this.post('/bulk_get_inventory_item', body);
|
|
66
66
|
}
|
|
67
67
|
getProductCompatibility(sku) {
|
|
68
68
|
sku = encodeURIComponent(sku);
|
|
@@ -76,15 +76,15 @@ class Inventory extends Restful {
|
|
|
76
76
|
sku = encodeURIComponent(sku);
|
|
77
77
|
return this.delete(`/inventory_item/${sku}/product_compatibility`);
|
|
78
78
|
}
|
|
79
|
-
getOffers({ sku, marketplaceId, format, limit, offset
|
|
80
|
-
return this.get(
|
|
79
|
+
getOffers({ sku, marketplaceId, format, limit, offset } = {}) {
|
|
80
|
+
return this.get('/offer', {
|
|
81
81
|
params: {
|
|
82
82
|
sku,
|
|
83
83
|
marketplace_id: marketplaceId,
|
|
84
84
|
format,
|
|
85
85
|
limit,
|
|
86
|
-
offset
|
|
87
|
-
}
|
|
86
|
+
offset
|
|
87
|
+
}
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
getOffer(offerId) {
|
|
@@ -92,7 +92,7 @@ class Inventory extends Restful {
|
|
|
92
92
|
return this.get(`/offer/${offerId}`);
|
|
93
93
|
}
|
|
94
94
|
createOffer(body) {
|
|
95
|
-
return this.post(
|
|
95
|
+
return this.post('/offer', body);
|
|
96
96
|
}
|
|
97
97
|
updateOffer(offerId, body) {
|
|
98
98
|
offerId = encodeURIComponent(offerId);
|
|
@@ -106,19 +106,19 @@ class Inventory extends Restful {
|
|
|
106
106
|
return this.post(`/offer/${id}/publish`);
|
|
107
107
|
}
|
|
108
108
|
publishOfferByInventoryItemGroup(body) {
|
|
109
|
-
return this.post(
|
|
109
|
+
return this.post('/offer/publish_by_inventory_item_group', body);
|
|
110
110
|
}
|
|
111
111
|
withdrawOfferByInventoryItemGroup(body) {
|
|
112
|
-
return this.post(
|
|
112
|
+
return this.post('/offer/withdraw_by_inventory_item_group', body);
|
|
113
113
|
}
|
|
114
114
|
getListingFees(body) {
|
|
115
|
-
return this.post(
|
|
115
|
+
return this.post('/offer/get_listing_fees', body);
|
|
116
116
|
}
|
|
117
117
|
bulkCreateOffer(body) {
|
|
118
|
-
return this.post(
|
|
118
|
+
return this.post('/bulk_create_offer', body);
|
|
119
119
|
}
|
|
120
120
|
bulkPublishOffer(body) {
|
|
121
|
-
return this.post(
|
|
121
|
+
return this.post('/bulk_publish_offer', body);
|
|
122
122
|
}
|
|
123
123
|
withdrawOffer(offerId) {
|
|
124
124
|
const id = encodeURIComponent(offerId);
|
|
@@ -136,7 +136,7 @@ class Inventory extends Restful {
|
|
|
136
136
|
return this.delete(`/inventory_item_group/${inventoryItemGroupKey}`);
|
|
137
137
|
}
|
|
138
138
|
bulkMigrateListing(body) {
|
|
139
|
-
return this.post(
|
|
139
|
+
return this.post('/bulk_migrate_listing', body);
|
|
140
140
|
}
|
|
141
141
|
getSkuLocationMapping(listingId, sku) {
|
|
142
142
|
sku = encodeURIComponent(sku);
|
|
@@ -4,14 +4,14 @@ class Logistics extends Restful {
|
|
|
4
4
|
return '/sell/logistics/v1_beta';
|
|
5
5
|
}
|
|
6
6
|
createShippingQuote(data) {
|
|
7
|
-
return this.post(
|
|
7
|
+
return this.post('/shipping_quote', data);
|
|
8
8
|
}
|
|
9
9
|
getShippingQuote(shippingQuoteId) {
|
|
10
10
|
shippingQuoteId = encodeURIComponent(shippingQuoteId);
|
|
11
11
|
return this.get(`/shipping_quote/${shippingQuoteId}`);
|
|
12
12
|
}
|
|
13
13
|
createFromShippingQuote(data) {
|
|
14
|
-
return this.post(
|
|
14
|
+
return this.post('/shipment/create_from_shipping_quote', data);
|
|
15
15
|
}
|
|
16
16
|
getShipment(shipmentId) {
|
|
17
17
|
return this.get(`/shipment/${shipmentId}`);
|