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
@@ -4,14 +4,14 @@ class AccountV1 extends Restful {
4
4
  return '/sell/account/v1';
5
5
  }
6
6
  getCustomPolicies(policyTypes) {
7
- return this.get(`/custom_policy/`, {
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(`/custom_policy/`, body);
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(`/fulfillment_policy`, {
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(`/fulfillment_policy/`, body);
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(`/fulfillment_policy/get_by_policy_name`, {
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(`/payment_policy`, {
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(`/payment_policy`, body);
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(`/payment_policy/get_by_policy_name`, {
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(`/privilege`);
94
+ return this.get('/privilege');
95
95
  }
96
96
  getOptedInPrograms() {
97
- return this.get(`/program/get_opted_in_programs`);
97
+ return this.get('/program/get_opted_in_programs');
98
98
  }
99
99
  optInToProgram(body) {
100
- return this.post(`/program/opt_in`, body);
100
+ return this.post('/program/opt_in', body);
101
101
  }
102
102
  optOutOfProgram(body) {
103
- return this.post(`/program/opt_out`, body);
103
+ return this.post('/program/opt_out', body);
104
104
  }
105
105
  getRateTables(countryCode) {
106
- return this.get(`/rate_table`, {
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(`/return_policy`, {
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(`/return_policy`, body);
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(`/return_policy/get_by_policy_name`, {
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(`/sales_tax`, {
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(`/subscription`, {
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(`/kyc`);
173
+ return this.get('/kyc');
174
174
  }
175
175
  getAdvertisingEligibility(programTypes) {
176
- return this.get(`/advertising_eligibility`, {
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(`/location`, {
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(`/payout_settings/update_percentage`, body);
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(`/seller_standards_profile`);
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(`/traffic_report`, {
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(`/listing_violation_summary`, {
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(`/listing_violation`, {
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(`/suppress_listing_violation`, body);
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, }?: 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
  }
@@ -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(`/order_task`, {
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(`/order_task`, data);
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(`/schedule`, {
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(`/schedule`, data);
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(`/schedule_template`, {
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(`/task`, {
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(`/task`, data);
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(`/customer_service_metric_task`, {
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(`/customer_service_metric_task`, data, {
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(`/payout`, {
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(`/payout_summary`, { params: { filter } });
23
+ getPayoutSummary({ filter } = {}) {
24
+ return this.get('/payout_summary', { params: { filter } });
25
25
  }
26
26
  getTransactions({ filter, limit, offset, sort } = {}) {
27
- return this.get(`/transaction`, {
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(`/transaction_summary`, {
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(`/seller_funds_summary`);
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(`/order`, {
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(`/payment_dispute_summary`, {
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(`/location`, {
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(`/inventory_item`, {
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(`/bulk_update_price_quantity`, body);
59
+ return this.post('/bulk_update_price_quantity', body);
60
60
  }
61
61
  bulkCreateOrReplaceInventoryItem(body) {
62
- return this.post(`/bulk_create_or_replace_inventory_item`, body);
62
+ return this.post('/bulk_create_or_replace_inventory_item', body);
63
63
  }
64
64
  bulkGetInventoryItem(body) {
65
- return this.post(`/bulk_get_inventory_item`, body);
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(`/offer`, {
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(`/offer`, body);
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(`/offer/publish_by_inventory_item_group`, body);
109
+ return this.post('/offer/publish_by_inventory_item_group', body);
110
110
  }
111
111
  withdrawOfferByInventoryItemGroup(body) {
112
- return this.post(`/offer/withdraw_by_inventory_item_group`, body);
112
+ return this.post('/offer/withdraw_by_inventory_item_group', body);
113
113
  }
114
114
  getListingFees(body) {
115
- return this.post(`/offer/get_listing_fees`, body);
115
+ return this.post('/offer/get_listing_fees', body);
116
116
  }
117
117
  bulkCreateOffer(body) {
118
- return this.post(`/bulk_create_offer`, body);
118
+ return this.post('/bulk_create_offer', body);
119
119
  }
120
120
  bulkPublishOffer(body) {
121
- return this.post(`/bulk_publish_offer`, body);
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(`/bulk_migrate_listing`, body);
139
+ return this.post('/bulk_migrate_listing', body);
140
140
  }
141
141
  getSkuLocationMapping(listingId, sku) {
142
142
  sku = encodeURIComponent(sku);
@@ -4,7 +4,7 @@ class Listing extends Restful {
4
4
  return '/sell/listing/v1_beta';
5
5
  }
6
6
  createItemDraft(data) {
7
- return this.post(`/item_draft/`, data);
7
+ return this.post('/item_draft/', data);
8
8
  }
9
9
  }
10
10
  Listing.id = 'Listing';
@@ -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(`/shipping_quote`, data);
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(`/shipment/create_from_shipping_quote`, data);
14
+ return this.post('/shipment/create_from_shipping_quote', data);
15
15
  }
16
16
  getShipment(shipmentId) {
17
17
  return this.get(`/shipment/${shipmentId}`);