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.
Files changed (160) hide show
  1. package/README.md +1 -1
  2. package/dist/api/apiFactory.js +5 -5
  3. package/dist/api/restful/buy/browse/index.js +9 -9
  4. package/dist/api/restful/buy/deal/index.js +3 -3
  5. package/dist/api/restful/buy/feed/index.js +4 -4
  6. package/dist/api/restful/buy/marketing/index.js +3 -3
  7. package/dist/api/restful/buy/marketplaceInsights/index.d.ts +1 -1
  8. package/dist/api/restful/buy/marketplaceInsights/index.js +3 -3
  9. package/dist/api/restful/buy/order/index.js +3 -3
  10. package/dist/api/restful/commerce/catalog/index.js +4 -4
  11. package/dist/api/restful/commerce/charity/index.js +2 -2
  12. package/dist/api/restful/commerce/identity/index.js +1 -1
  13. package/dist/api/restful/commerce/message/index.js +6 -6
  14. package/dist/api/restful/commerce/notification/index.js +7 -7
  15. package/dist/api/restful/commerce/taxonomy/index.d.ts +1 -1
  16. package/dist/api/restful/commerce/taxonomy/index.js +4 -3
  17. package/dist/api/restful/commerce/translation/index.js +1 -1
  18. package/dist/api/restful/developer/analytics/index.js +2 -2
  19. package/dist/api/restful/developer/keyManagement/index.js +2 -2
  20. package/dist/api/restful/index.js +1 -1
  21. package/dist/api/restful/postOrder/cancellation/index.js +3 -3
  22. package/dist/api/restful/postOrder/case/index.js +1 -1
  23. package/dist/api/restful/postOrder/inquiry/index.js +3 -3
  24. package/dist/api/restful/postOrder/return/index.js +7 -7
  25. package/dist/api/restful/sell/account/v1.js +21 -21
  26. package/dist/api/restful/sell/account/v2.js +1 -1
  27. package/dist/api/restful/sell/analytics/index.js +2 -2
  28. package/dist/api/restful/sell/compliance/index.js +3 -3
  29. package/dist/api/restful/sell/feed/index.d.ts +3 -3
  30. package/dist/api/restful/sell/feed/index.js +16 -16
  31. package/dist/api/restful/sell/finances/index.d.ts +3 -3
  32. package/dist/api/restful/sell/finances/index.js +14 -14
  33. package/dist/api/restful/sell/fulfillment/index.d.ts +1 -1
  34. package/dist/api/restful/sell/fulfillment/index.js +4 -4
  35. package/dist/api/restful/sell/inventory/index.d.ts +3 -3
  36. package/dist/api/restful/sell/inventory/index.js +22 -22
  37. package/dist/api/restful/sell/listing/index.js +1 -1
  38. package/dist/api/restful/sell/logistics/index.js +2 -2
  39. package/dist/api/restful/sell/marketing/index.js +21 -21
  40. package/dist/api/restful/sell/negotiation/index.js +2 -2
  41. package/dist/api/restful/sell/recommendation/index.js +1 -1
  42. package/dist/api/traditional/XMLRequest.d.ts +1 -3
  43. package/dist/api/traditional/XMLRequest.js +2 -4
  44. package/dist/auth/oAuth2.js +1 -1
  45. package/dist/ebay-api.min.mjs +1 -1
  46. package/dist/errors/index.js +2 -2
  47. package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +561 -111
  48. package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +171 -30
  49. package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +200 -28
  50. package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +114 -20
  51. package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +52 -17
  52. package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +84 -12
  53. package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +1478 -179
  54. package/dist/types/restful/specs/cancellation_oas3.d.ts +179 -9
  55. package/dist/types/restful/specs/case_oas3.d.ts +173 -9
  56. package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +323 -75
  57. package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +110 -13
  58. package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +39 -6
  59. package/dist/types/restful/specs/commerce_media_v1_beta_oas3.d.ts +150 -23
  60. package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +623 -72
  61. package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +339 -45
  62. package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +40 -8
  63. package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +67 -11
  64. package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +134 -18
  65. package/dist/types/restful/specs/inquiry_oas3.d.ts +271 -13
  66. package/dist/types/restful/specs/return_oas3.d.ts +761 -35
  67. package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +1503 -187
  68. package/dist/types/restful/specs/sell_account_v2_oas3.d.ts +155 -21
  69. package/dist/types/restful/specs/sell_analytics_v1_oas3.d.ts +174 -32
  70. package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +128 -21
  71. package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +880 -103
  72. package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +261 -28
  73. package/dist/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +618 -98
  74. package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +1257 -210
  75. package/dist/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +38 -9
  76. package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +255 -36
  77. package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +3201 -435
  78. package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +361 -63
  79. package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +82 -14
  80. package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +43 -10
  81. package/lib/api/apiFactory.js +4 -4
  82. package/lib/api/restful/buy/browse/index.js +9 -9
  83. package/lib/api/restful/buy/deal/index.js +3 -3
  84. package/lib/api/restful/buy/feed/index.js +4 -4
  85. package/lib/api/restful/buy/marketing/index.js +3 -3
  86. package/lib/api/restful/buy/marketplaceInsights/index.d.ts +1 -1
  87. package/lib/api/restful/buy/marketplaceInsights/index.js +3 -3
  88. package/lib/api/restful/buy/order/index.js +3 -3
  89. package/lib/api/restful/commerce/catalog/index.js +4 -4
  90. package/lib/api/restful/commerce/charity/index.js +2 -2
  91. package/lib/api/restful/commerce/identity/index.js +1 -1
  92. package/lib/api/restful/commerce/message/index.js +6 -6
  93. package/lib/api/restful/commerce/notification/index.js +7 -7
  94. package/lib/api/restful/commerce/taxonomy/index.d.ts +1 -1
  95. package/lib/api/restful/commerce/taxonomy/index.js +4 -3
  96. package/lib/api/restful/commerce/translation/index.js +1 -1
  97. package/lib/api/restful/developer/analytics/index.js +2 -2
  98. package/lib/api/restful/developer/keyManagement/index.js +2 -2
  99. package/lib/api/restful/index.js +1 -1
  100. package/lib/api/restful/postOrder/cancellation/index.js +3 -3
  101. package/lib/api/restful/postOrder/case/index.js +1 -1
  102. package/lib/api/restful/postOrder/inquiry/index.js +3 -3
  103. package/lib/api/restful/postOrder/return/index.js +7 -7
  104. package/lib/api/restful/sell/account/v1.js +21 -21
  105. package/lib/api/restful/sell/account/v2.js +1 -1
  106. package/lib/api/restful/sell/analytics/index.js +2 -2
  107. package/lib/api/restful/sell/compliance/index.js +3 -3
  108. package/lib/api/restful/sell/feed/index.d.ts +3 -3
  109. package/lib/api/restful/sell/feed/index.js +16 -16
  110. package/lib/api/restful/sell/finances/index.d.ts +3 -3
  111. package/lib/api/restful/sell/finances/index.js +14 -14
  112. package/lib/api/restful/sell/fulfillment/index.d.ts +1 -1
  113. package/lib/api/restful/sell/fulfillment/index.js +4 -4
  114. package/lib/api/restful/sell/inventory/index.d.ts +3 -3
  115. package/lib/api/restful/sell/inventory/index.js +22 -22
  116. package/lib/api/restful/sell/listing/index.js +1 -1
  117. package/lib/api/restful/sell/logistics/index.js +2 -2
  118. package/lib/api/restful/sell/marketing/index.js +21 -21
  119. package/lib/api/restful/sell/negotiation/index.js +2 -2
  120. package/lib/api/restful/sell/recommendation/index.js +1 -1
  121. package/lib/api/traditional/XMLRequest.d.ts +1 -3
  122. package/lib/api/traditional/XMLRequest.js +2 -4
  123. package/lib/auth/oAuth2.js +1 -1
  124. package/lib/ebay-api.min.js +2 -2
  125. package/lib/errors/index.js +2 -2
  126. package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +561 -111
  127. package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +171 -30
  128. package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +200 -28
  129. package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +114 -20
  130. package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +52 -17
  131. package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +84 -12
  132. package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +1478 -179
  133. package/lib/types/restful/specs/cancellation_oas3.d.ts +179 -9
  134. package/lib/types/restful/specs/case_oas3.d.ts +173 -9
  135. package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +323 -75
  136. package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +110 -13
  137. package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +39 -6
  138. package/lib/types/restful/specs/commerce_media_v1_beta_oas3.d.ts +150 -23
  139. package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +623 -72
  140. package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +339 -45
  141. package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +40 -8
  142. package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +67 -11
  143. package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +134 -18
  144. package/lib/types/restful/specs/inquiry_oas3.d.ts +271 -13
  145. package/lib/types/restful/specs/return_oas3.d.ts +761 -35
  146. package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +1503 -187
  147. package/lib/types/restful/specs/sell_account_v2_oas3.d.ts +155 -21
  148. package/lib/types/restful/specs/sell_analytics_v1_oas3.d.ts +174 -32
  149. package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +128 -21
  150. package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +880 -103
  151. package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +261 -28
  152. package/lib/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +618 -98
  153. package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +1257 -210
  154. package/lib/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +38 -9
  155. package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +255 -36
  156. package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +3201 -435
  157. package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +361 -63
  158. package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +82 -14
  159. package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +43 -10
  160. 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(`/topic`, {
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(`/subscription`, {
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(`/subscription`, body);
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(`/destination`, {
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(`/destination`, body);
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(`/config`);
86
+ return this.get('/config');
87
87
  }
88
88
  updateConfig(body) {
89
- return this.put(`/config`, body);
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(`/get_default_category_tree_id`, {
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 Translation extends index_js_1.default {
9
9
  return '/commerce/translation/v1_beta';
10
10
  }
11
11
  translate(body) {
12
- return this.post(`/translate`, body);
12
+ return this.post('/translate', body);
13
13
  }
14
14
  }
15
15
  Translation.id = 'Translation';
@@ -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(`/rate_limit/`, {
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(`/user_rate_limit/`, {
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(`/signing_key`);
15
+ return this.get('/signing_key');
16
16
  }
17
17
  createSigningKey(signingKeyCipher) {
18
- return this.post(`/signing_key`, {
18
+ return this.post('/signing_key', {
19
19
  signingKeyCipher
20
20
  });
21
21
  }
@@ -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(`/cancellation/check_eligibility`, {
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(`/cancellation`, payload);
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(`/cancellation/search`, {
43
+ return this.get('/cancellation/search', {
44
44
  params
45
45
  });
46
46
  }
@@ -39,7 +39,7 @@ class Case extends index_js_1.default {
39
39
  return this.post(`/casemanagement/${id}/provide_return_address`, payload);
40
40
  }
41
41
  search(params) {
42
- return this.get(`/casemanagement/search`, {
42
+ return this.get('/casemanagement/search', {
43
43
  params
44
44
  });
45
45
  }
@@ -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(`/inquiry/check_eligibility`, payload);
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(`/inquiry`, payload);
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(`/inquiry/search`, {
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(`/return/check_eligibility`, payload);
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(`/return/draft`, payload);
33
+ return this.post('/return/draft', payload);
34
34
  }
35
35
  createReturnRequest(payload, fieldGroups) {
36
- return this.post(`/return`, payload, {
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(`/return/estimate`, payload);
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(`/return/preference`);
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(`/return/search`, {
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(`/return/preference`, {
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(`/custom_policy/`, {
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(`/custom_policy/`, body);
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(`/fulfillment_policy`, {
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(`/fulfillment_policy/`, body);
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(`/fulfillment_policy/get_by_policy_name`, {
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(`/payment_policy`, {
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(`/payment_policy`, body);
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(`/payment_policy/get_by_policy_name`, {
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(`/privilege`);
99
+ return this.get('/privilege');
100
100
  }
101
101
  getOptedInPrograms() {
102
- return this.get(`/program/get_opted_in_programs`);
102
+ return this.get('/program/get_opted_in_programs');
103
103
  }
104
104
  optInToProgram(body) {
105
- return this.post(`/program/opt_in`, body);
105
+ return this.post('/program/opt_in', body);
106
106
  }
107
107
  optOutOfProgram(body) {
108
- return this.post(`/program/opt_out`, body);
108
+ return this.post('/program/opt_out', body);
109
109
  }
110
110
  getRateTables(countryCode) {
111
- return this.get(`/rate_table`, {
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(`/return_policy`, {
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(`/return_policy`, body);
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(`/return_policy/get_by_policy_name`, {
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(`/sales_tax`, {
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(`/subscription`, {
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(`/kyc`);
178
+ return this.get('/kyc');
179
179
  }
180
180
  getAdvertisingEligibility(programTypes) {
181
- return this.get(`/advertising_eligibility`, {
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(`/location`, {
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(`/payout_settings/update_percentage`, body);
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(`/seller_standards_profile`);
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(`/traffic_report`, {
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(`/listing_violation_summary`, {
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(`/listing_violation`, {
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(`/suppress_listing_violation`, body);
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, }?: SellFeedParams): Promise<any>;
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, }?: SellFeedParams): Promise<any>;
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, }?: SellFeedParams): Promise<any>;
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(`/order_task`, {
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(`/order_task`, data);
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(`/schedule`, {
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(`/schedule`, data);
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(`/schedule_template`, {
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(`/task`, {
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(`/task`, data);
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(`/customer_service_metric_task`, {
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(`/customer_service_metric_task`, data, {
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>;