ebay-api 8.5.0 → 8.6.0

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 (320) hide show
  1. package/README.md +4 -4
  2. package/dist/api/apiFactory.d.ts +0 -3
  3. package/dist/api/apiFactory.js +0 -4
  4. package/dist/api/base.d.ts +0 -3
  5. package/dist/api/base.js +0 -3
  6. package/dist/api/digitalSignature.d.ts +0 -33
  7. package/dist/api/digitalSignature.js +1 -41
  8. package/dist/api/index.d.ts +0 -3
  9. package/dist/api/index.js +0 -3
  10. package/dist/api/restful/buy/browse/index.d.ts +0 -66
  11. package/dist/api/restful/buy/browse/index.js +0 -73
  12. package/dist/api/restful/buy/deal/index.d.ts +0 -32
  13. package/dist/api/restful/buy/deal/index.js +0 -32
  14. package/dist/api/restful/buy/feed/index.d.ts +0 -33
  15. package/dist/api/restful/buy/feed/index.js +0 -33
  16. package/dist/api/restful/buy/marketing/index.d.ts +0 -18
  17. package/dist/api/restful/buy/marketing/index.js +0 -22
  18. package/dist/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
  19. package/dist/api/restful/buy/marketplaceInsights/index.js +0 -21
  20. package/dist/api/restful/buy/offer/index.d.ts +0 -15
  21. package/dist/api/restful/buy/offer/index.js +0 -15
  22. package/dist/api/restful/buy/order/index.d.ts +0 -227
  23. package/dist/api/restful/buy/order/index.js +0 -227
  24. package/dist/api/restful/commerce/catalog/index.d.ts +0 -54
  25. package/dist/api/restful/commerce/catalog/index.js +0 -54
  26. package/dist/api/restful/commerce/charity/index.d.ts +0 -21
  27. package/dist/api/restful/commerce/charity/index.js +0 -21
  28. package/dist/api/restful/commerce/identity/index.d.ts +0 -7
  29. package/dist/api/restful/commerce/identity/index.js +0 -7
  30. package/dist/api/restful/commerce/notification/index.d.ts +0 -93
  31. package/dist/api/restful/commerce/notification/index.js +0 -93
  32. package/dist/api/restful/commerce/taxonomy/index.d.ts +0 -64
  33. package/dist/api/restful/commerce/taxonomy/index.js +0 -64
  34. package/dist/api/restful/commerce/translation/index.d.ts +0 -8
  35. package/dist/api/restful/commerce/translation/index.js +0 -8
  36. package/dist/api/restful/developer/analytics/index.d.ts +0 -15
  37. package/dist/api/restful/developer/analytics/index.js +0 -15
  38. package/dist/api/restful/developer/keyManagement/index.d.ts +0 -15
  39. package/dist/api/restful/developer/keyManagement/index.js +0 -15
  40. package/dist/api/restful/index.d.ts +0 -16
  41. package/dist/api/restful/index.js +1 -23
  42. package/dist/api/restful/postOrder/cancellation/index.d.ts +0 -43
  43. package/dist/api/restful/postOrder/cancellation/index.js +0 -43
  44. package/dist/api/restful/postOrder/case/index.d.ts +0 -46
  45. package/dist/api/restful/postOrder/case/index.js +0 -46
  46. package/dist/api/restful/postOrder/inquiry/index.d.ts +0 -64
  47. package/dist/api/restful/postOrder/inquiry/index.js +0 -64
  48. package/dist/api/restful/postOrder/return/index.d.ts +0 -190
  49. package/dist/api/restful/postOrder/return/index.js +0 -190
  50. package/dist/api/restful/sell/account/index.d.ts +0 -241
  51. package/dist/api/restful/sell/account/index.js +0 -241
  52. package/dist/api/restful/sell/analytics/index.d.ts +0 -26
  53. package/dist/api/restful/sell/analytics/index.js +0 -26
  54. package/dist/api/restful/sell/compliance/index.d.ts +0 -23
  55. package/dist/api/restful/sell/compliance/index.js +0 -23
  56. package/dist/api/restful/sell/feed/index.d.ts +0 -135
  57. package/dist/api/restful/sell/feed/index.js +0 -135
  58. package/dist/api/restful/sell/finances/index.d.ts +0 -51
  59. package/dist/api/restful/sell/finances/index.js +0 -51
  60. package/dist/api/restful/sell/fulfillment/index.d.ts +0 -108
  61. package/dist/api/restful/sell/fulfillment/index.js +0 -108
  62. package/dist/api/restful/sell/inventory/index.d.ts +0 -197
  63. package/dist/api/restful/sell/inventory/index.js +0 -197
  64. package/dist/api/restful/sell/listing/index.d.ts +0 -8
  65. package/dist/api/restful/sell/listing/index.js +0 -8
  66. package/dist/api/restful/sell/logistics/index.d.ts +0 -33
  67. package/dist/api/restful/sell/logistics/index.js +0 -33
  68. package/dist/api/restful/sell/marketing/index.d.ts +16 -495
  69. package/dist/api/restful/sell/marketing/index.js +48 -494
  70. package/dist/api/restful/sell/metadata/index.d.ts +0 -65
  71. package/dist/api/restful/sell/metadata/index.js +0 -65
  72. package/dist/api/restful/sell/negotiation/index.d.ts +0 -14
  73. package/dist/api/restful/sell/negotiation/index.js +0 -14
  74. package/dist/api/restful/sell/recommendation/index.d.ts +0 -15
  75. package/dist/api/restful/sell/recommendation/index.js +0 -15
  76. package/dist/api/traditional/XMLRequest.d.ts +0 -44
  77. package/dist/api/traditional/XMLRequest.js +0 -46
  78. package/dist/api/traditional/clientAlerts/index.js +0 -1
  79. package/dist/api/traditional/index.d.ts +0 -3
  80. package/dist/api/traditional/index.js +0 -5
  81. package/dist/api/traditional/shopping/index.js +0 -1
  82. package/dist/auth/authNAuth.d.ts +0 -5
  83. package/dist/auth/authNAuth.js +0 -5
  84. package/dist/auth/index.d.ts +0 -3
  85. package/dist/auth/index.js +0 -3
  86. package/dist/auth/oAuth2.d.ts +0 -52
  87. package/dist/auth/oAuth2.js +0 -53
  88. package/dist/eBayApi.d.ts +1 -12
  89. package/dist/eBayApi.js +0 -14
  90. package/dist/ebay-api.min.mjs +1 -1
  91. package/dist/enums/restfulEnums.d.ts +24 -23
  92. package/dist/enums/restfulEnums.js +52 -51
  93. package/dist/errors/index.d.ts +0 -19
  94. package/dist/errors/index.js +1 -20
  95. package/dist/types/apiTypes.d.ts +2 -2
  96. package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
  97. package/dist/types/restful/specs/buy_browse_v1_oas3.js +0 -4
  98. package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
  99. package/dist/types/restful/specs/buy_deal_v1_oas3.js +0 -4
  100. package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
  101. package/dist/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
  102. package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
  103. package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
  104. package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
  105. package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
  106. package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
  107. package/dist/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
  108. package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
  109. package/dist/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
  110. package/dist/types/restful/specs/cancellation_oas3.d.ts +0 -29
  111. package/dist/types/restful/specs/cancellation_oas3.js +0 -4
  112. package/dist/types/restful/specs/case_oas3.d.ts +0 -31
  113. package/dist/types/restful/specs/case_oas3.js +0 -4
  114. package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
  115. package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
  116. package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
  117. package/dist/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
  118. package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
  119. package/dist/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
  120. package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
  121. package/dist/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
  122. package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
  123. package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
  124. package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
  125. package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
  126. package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
  127. package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
  128. package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
  129. package/dist/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
  130. package/dist/types/restful/specs/inquiry_oas3.d.ts +0 -45
  131. package/dist/types/restful/specs/inquiry_oas3.js +0 -4
  132. package/dist/types/restful/specs/return_oas3.d.ts +0 -130
  133. package/dist/types/restful/specs/return_oas3.js +0 -4
  134. package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
  135. package/dist/types/restful/specs/sell_account_v1_oas3.js +0 -4
  136. package/dist/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
  137. package/dist/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
  138. package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
  139. package/dist/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
  140. package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
  141. package/dist/types/restful/specs/sell_feed_v1_oas3.js +0 -4
  142. package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
  143. package/dist/types/restful/specs/sell_finances_v1_oas3.js +0 -4
  144. package/dist/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
  145. package/dist/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
  146. package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
  147. package/dist/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
  148. package/dist/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
  149. package/dist/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
  150. package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
  151. package/dist/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
  152. package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
  153. package/dist/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
  154. package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
  155. package/dist/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
  156. package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
  157. package/dist/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
  158. package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
  159. package/dist/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
  160. package/dist/types/restfulTypes.d.ts +3 -0
  161. package/lib/api/apiFactory.d.ts +0 -3
  162. package/lib/api/apiFactory.js +0 -4
  163. package/lib/api/base.d.ts +0 -3
  164. package/lib/api/base.js +0 -3
  165. package/lib/api/digitalSignature.d.ts +0 -33
  166. package/lib/api/digitalSignature.js +1 -41
  167. package/lib/api/index.d.ts +0 -3
  168. package/lib/api/index.js +0 -3
  169. package/lib/api/restful/buy/browse/index.d.ts +0 -66
  170. package/lib/api/restful/buy/browse/index.js +0 -73
  171. package/lib/api/restful/buy/deal/index.d.ts +0 -32
  172. package/lib/api/restful/buy/deal/index.js +0 -32
  173. package/lib/api/restful/buy/feed/index.d.ts +0 -33
  174. package/lib/api/restful/buy/feed/index.js +0 -33
  175. package/lib/api/restful/buy/marketing/index.d.ts +0 -18
  176. package/lib/api/restful/buy/marketing/index.js +0 -22
  177. package/lib/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
  178. package/lib/api/restful/buy/marketplaceInsights/index.js +0 -21
  179. package/lib/api/restful/buy/offer/index.d.ts +0 -15
  180. package/lib/api/restful/buy/offer/index.js +0 -15
  181. package/lib/api/restful/buy/order/index.d.ts +0 -227
  182. package/lib/api/restful/buy/order/index.js +0 -227
  183. package/lib/api/restful/commerce/catalog/index.d.ts +0 -54
  184. package/lib/api/restful/commerce/catalog/index.js +0 -54
  185. package/lib/api/restful/commerce/charity/index.d.ts +0 -21
  186. package/lib/api/restful/commerce/charity/index.js +0 -21
  187. package/lib/api/restful/commerce/identity/index.d.ts +0 -7
  188. package/lib/api/restful/commerce/identity/index.js +0 -7
  189. package/lib/api/restful/commerce/notification/index.d.ts +0 -93
  190. package/lib/api/restful/commerce/notification/index.js +0 -93
  191. package/lib/api/restful/commerce/taxonomy/index.d.ts +0 -64
  192. package/lib/api/restful/commerce/taxonomy/index.js +0 -64
  193. package/lib/api/restful/commerce/translation/index.d.ts +0 -8
  194. package/lib/api/restful/commerce/translation/index.js +0 -8
  195. package/lib/api/restful/developer/analytics/index.d.ts +0 -15
  196. package/lib/api/restful/developer/analytics/index.js +0 -15
  197. package/lib/api/restful/developer/keyManagement/index.d.ts +0 -15
  198. package/lib/api/restful/developer/keyManagement/index.js +0 -15
  199. package/lib/api/restful/index.d.ts +0 -16
  200. package/lib/api/restful/index.js +1 -23
  201. package/lib/api/restful/postOrder/cancellation/index.d.ts +0 -43
  202. package/lib/api/restful/postOrder/cancellation/index.js +0 -43
  203. package/lib/api/restful/postOrder/case/index.d.ts +0 -46
  204. package/lib/api/restful/postOrder/case/index.js +0 -46
  205. package/lib/api/restful/postOrder/inquiry/index.d.ts +0 -64
  206. package/lib/api/restful/postOrder/inquiry/index.js +0 -64
  207. package/lib/api/restful/postOrder/return/index.d.ts +0 -190
  208. package/lib/api/restful/postOrder/return/index.js +0 -190
  209. package/lib/api/restful/sell/account/index.d.ts +0 -241
  210. package/lib/api/restful/sell/account/index.js +0 -241
  211. package/lib/api/restful/sell/analytics/index.d.ts +0 -26
  212. package/lib/api/restful/sell/analytics/index.js +0 -26
  213. package/lib/api/restful/sell/compliance/index.d.ts +0 -23
  214. package/lib/api/restful/sell/compliance/index.js +0 -23
  215. package/lib/api/restful/sell/feed/index.d.ts +0 -135
  216. package/lib/api/restful/sell/feed/index.js +0 -135
  217. package/lib/api/restful/sell/finances/index.d.ts +0 -51
  218. package/lib/api/restful/sell/finances/index.js +0 -51
  219. package/lib/api/restful/sell/fulfillment/index.d.ts +0 -108
  220. package/lib/api/restful/sell/fulfillment/index.js +0 -108
  221. package/lib/api/restful/sell/inventory/index.d.ts +0 -197
  222. package/lib/api/restful/sell/inventory/index.js +0 -197
  223. package/lib/api/restful/sell/listing/index.d.ts +0 -8
  224. package/lib/api/restful/sell/listing/index.js +0 -8
  225. package/lib/api/restful/sell/logistics/index.d.ts +0 -33
  226. package/lib/api/restful/sell/logistics/index.js +0 -33
  227. package/lib/api/restful/sell/marketing/index.d.ts +16 -495
  228. package/lib/api/restful/sell/marketing/index.js +48 -494
  229. package/lib/api/restful/sell/metadata/index.d.ts +0 -65
  230. package/lib/api/restful/sell/metadata/index.js +0 -65
  231. package/lib/api/restful/sell/negotiation/index.d.ts +0 -14
  232. package/lib/api/restful/sell/negotiation/index.js +0 -14
  233. package/lib/api/restful/sell/recommendation/index.d.ts +0 -15
  234. package/lib/api/restful/sell/recommendation/index.js +0 -15
  235. package/lib/api/traditional/XMLRequest.d.ts +0 -44
  236. package/lib/api/traditional/XMLRequest.js +0 -46
  237. package/lib/api/traditional/clientAlerts/index.js +0 -1
  238. package/lib/api/traditional/index.d.ts +0 -3
  239. package/lib/api/traditional/index.js +0 -5
  240. package/lib/api/traditional/shopping/index.js +0 -1
  241. package/lib/auth/authNAuth.d.ts +0 -5
  242. package/lib/auth/authNAuth.js +0 -5
  243. package/lib/auth/index.d.ts +0 -3
  244. package/lib/auth/index.js +0 -3
  245. package/lib/auth/oAuth2.d.ts +0 -52
  246. package/lib/auth/oAuth2.js +0 -53
  247. package/lib/eBayApi.d.ts +1 -12
  248. package/lib/eBayApi.js +0 -14
  249. package/lib/ebay-api.min.js +1 -1
  250. package/lib/enums/restfulEnums.d.ts +24 -23
  251. package/lib/enums/restfulEnums.js +52 -52
  252. package/lib/errors/index.d.ts +0 -19
  253. package/lib/errors/index.js +1 -20
  254. package/lib/types/apiTypes.d.ts +2 -2
  255. package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
  256. package/lib/types/restful/specs/buy_browse_v1_oas3.js +0 -4
  257. package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
  258. package/lib/types/restful/specs/buy_deal_v1_oas3.js +0 -4
  259. package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
  260. package/lib/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
  261. package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
  262. package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
  263. package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
  264. package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
  265. package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
  266. package/lib/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
  267. package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
  268. package/lib/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
  269. package/lib/types/restful/specs/cancellation_oas3.d.ts +0 -29
  270. package/lib/types/restful/specs/cancellation_oas3.js +0 -4
  271. package/lib/types/restful/specs/case_oas3.d.ts +0 -31
  272. package/lib/types/restful/specs/case_oas3.js +0 -4
  273. package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
  274. package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
  275. package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
  276. package/lib/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
  277. package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
  278. package/lib/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
  279. package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
  280. package/lib/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
  281. package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
  282. package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
  283. package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
  284. package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
  285. package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
  286. package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
  287. package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
  288. package/lib/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
  289. package/lib/types/restful/specs/inquiry_oas3.d.ts +0 -45
  290. package/lib/types/restful/specs/inquiry_oas3.js +0 -4
  291. package/lib/types/restful/specs/return_oas3.d.ts +0 -130
  292. package/lib/types/restful/specs/return_oas3.js +0 -4
  293. package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
  294. package/lib/types/restful/specs/sell_account_v1_oas3.js +0 -4
  295. package/lib/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
  296. package/lib/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
  297. package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
  298. package/lib/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
  299. package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
  300. package/lib/types/restful/specs/sell_feed_v1_oas3.js +0 -4
  301. package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
  302. package/lib/types/restful/specs/sell_finances_v1_oas3.js +0 -4
  303. package/lib/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
  304. package/lib/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
  305. package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
  306. package/lib/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
  307. package/lib/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
  308. package/lib/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
  309. package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
  310. package/lib/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
  311. package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
  312. package/lib/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
  313. package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
  314. package/lib/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
  315. package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
  316. package/lib/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
  317. package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
  318. package/lib/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
  319. package/lib/types/restfulTypes.d.ts +3 -0
  320. package/package.json +2 -2
@@ -4,20 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const index_js_1 = __importDefault(require("../../index.js"));
7
- /**
8
- * Use the Taxonomy API to discover the most appropriate eBay categories under which sellers can offer inventory items
9
- * for sale, and the most likely categories under which buyers can browse or search for items to purchase.
10
- */
11
7
  class Taxonomy extends index_js_1.default {
12
8
  get basePath() {
13
9
  return '/commerce/taxonomy/v1';
14
10
  }
15
- /**
16
- * A given eBay marketplace might use multiple category trees, but one of those trees is considered to be the
17
- * default for that marketplace.
18
- *
19
- * @param marketplaceId The ID of the eBay marketplace for which the category tree ID is being requested.
20
- */
21
11
  getDefaultCategoryTreeId(marketplaceId) {
22
12
  return this.get(`/get_default_category_tree_id`, {
23
13
  params: {
@@ -25,23 +15,10 @@ class Taxonomy extends index_js_1.default {
25
15
  }
26
16
  });
27
17
  }
28
- /**
29
- * This call retrieves the complete category tree that is identified by the category_tree_id parameter.
30
- *
31
- * @param categoryTreeId
32
- */
33
18
  getCategoryTree(categoryTreeId) {
34
19
  const cId = encodeURIComponent(categoryTreeId);
35
20
  return this.get(`/category_tree/${cId}`);
36
21
  }
37
- /**
38
- * This call retrieves the details of all nodes of the category tree hierarchy (the subtree) below a specified
39
- * category of a category tree.
40
- *
41
- * @param categoryTreeId The unique identifier of the eBay category tree from which a category subtree is being
42
- * requested.
43
- * @param categoryId The unique identifier of the category at the top of the subtree being requested.
44
- */
45
22
  getCategorySubtree(categoryTreeId, categoryId) {
46
23
  categoryTreeId = encodeURIComponent(categoryTreeId);
47
24
  return this.get(`/category_tree/${categoryTreeId}/get_category_subtree`, {
@@ -50,14 +27,6 @@ class Taxonomy extends index_js_1.default {
50
27
  }
51
28
  });
52
29
  }
53
- /**
54
- * This call returns an array of category tree leaf nodes in the specified category tree that are considered by eBay
55
- * to most closely correspond to the query string q.
56
- *
57
- * @param categoryTreeId The unique identifier of the eBay category tree for which suggested nodes are being
58
- * requested.
59
- * @param q A quoted string that describes or characterizes the item being offered for sale.
60
- */
61
30
  getCategorySuggestions(categoryTreeId, q) {
62
31
  return this.get(`/category_tree/${categoryTreeId}/get_category_suggestions`, {
63
32
  params: {
@@ -65,14 +34,6 @@ class Taxonomy extends index_js_1.default {
65
34
  }
66
35
  });
67
36
  }
68
- /**
69
- * This call returns a list of aspects that are appropriate or necessary for accurately describing items in the
70
- * specified leaf category.
71
- *
72
- * @param categoryTreeId The unique identifier of the eBay category tree from which the specified category's
73
- * aspects are being requested.
74
- * @param categoryId The unique identifier of the leaf category for which aspects are being requested.
75
- */
76
37
  getItemAspectsForCategory(categoryTreeId, categoryId) {
77
38
  categoryTreeId = encodeURIComponent(categoryTreeId);
78
39
  return this.get(`/category_tree/${categoryTreeId}/get_item_aspects_for_category`, {
@@ -81,15 +42,6 @@ class Taxonomy extends index_js_1.default {
81
42
  }
82
43
  });
83
44
  }
84
- /**
85
- * This call retrieves the compatible vehicle aspects that are used to define a motor vehicle that is compatible
86
- * with a motor vehicle part or accessory.
87
- *
88
- * @param categoryTreeId This is the unique identifier of category tree. The following is the list of
89
- * category_tree_id values and the eBay marketplaces that they represent.
90
- *
91
- * @param categoryId The unique identifier of an eBay category.
92
- */
93
45
  getCompatibilityProperties(categoryTreeId, categoryId) {
94
46
  categoryTreeId = encodeURIComponent(categoryTreeId);
95
47
  return this.get(`/category_tree/${categoryTreeId}/get_compatibility_properties`, {
@@ -98,15 +50,6 @@ class Taxonomy extends index_js_1.default {
98
50
  }
99
51
  });
100
52
  }
101
- /**
102
- * This call retrieves applicable compatible vehicle property values based on the specified eBay marketplace,
103
- * specified eBay category, and filters used in the request.
104
- *
105
- * @param categoryTreeId This is the unique identifier of the category tree.
106
- * @param categoryId The unique identifier of an eBay category.
107
- * @param compatibilityProperty One compatible vehicle property applicable to the specified eBay marketplace and
108
- * eBay category is specified in this required filter.
109
- */
110
53
  getCompatibilityPropertyValues(categoryTreeId, categoryId, compatibilityProperty) {
111
54
  categoryTreeId = encodeURIComponent(categoryTreeId);
112
55
  return this.get(`/category_tree/${categoryTreeId}/get_compatibility_property_values`, {
@@ -116,13 +59,6 @@ class Taxonomy extends index_js_1.default {
116
59
  }
117
60
  });
118
61
  }
119
- /**
120
- * This call returns a complete list of aspects for all of the leaf categories that belong to an eBay marketplace.
121
- *
122
- * @param categoryTreeId
123
- *
124
- * @return A JSON GZIP compressed file buffer
125
- */
126
62
  fetchItemAspects(categoryTreeId) {
127
63
  categoryTreeId = encodeURIComponent(categoryTreeId);
128
64
  return this.get(`/category_tree/${categoryTreeId}/fetch_item_aspects`, {
@@ -1,16 +1,8 @@
1
1
  import { TranslateRequest } from '../../../../types/index.js';
2
2
  import { operations } from '../../../../types/restful/specs/commerce_translation_v1_beta_oas3.js';
3
3
  import Restful, { OpenApi } from '../../index.js';
4
- /**
5
- * This API allows 3rd party developers to translate item title, description, search query.
6
- */
7
4
  export default class Translation extends Restful implements OpenApi<operations> {
8
5
  static id: string;
9
6
  get basePath(): string;
10
- /**
11
- * Translates input text inot a given language.
12
- *
13
- * @param body TranslateRequest
14
- */
15
7
  translate(body: TranslateRequest): Promise<any>;
16
8
  }
@@ -4,18 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const index_js_1 = __importDefault(require("../../index.js"));
7
- /**
8
- * This API allows 3rd party developers to translate item title, description, search query.
9
- */
10
7
  class Translation extends index_js_1.default {
11
8
  get basePath() {
12
9
  return '/commerce/translation/v1_beta';
13
10
  }
14
- /**
15
- * Translates input text inot a given language.
16
- *
17
- * @param body TranslateRequest
18
- */
19
11
  translate(body) {
20
12
  return this.post(`/translate`, body);
21
13
  }
@@ -1,23 +1,8 @@
1
1
  import { operations } from '../../../../types/restful/specs/developer_analytics_v1_beta_oas3.js';
2
2
  import Restful, { OpenApi } from '../../index.js';
3
- /**
4
- * This method retrieves the call limit and utilization data for an application.
5
- */
6
3
  export default class Analytics extends Restful implements OpenApi<operations> {
7
4
  static id: string;
8
5
  get basePath(): string;
9
- /**
10
- * This method retrieves the call limit and utilization data for an application.
11
- *
12
- * @param apiContext This optional query parameter filters the result to include only the specified API context.
13
- * @param apiName This optional query parameter filters the result to include only the APIs specified.
14
- */
15
6
  getRateLimits(apiContext: string, apiName: string): Promise<any>;
16
- /**
17
- * This method retrieves the call limit and utilization data for an application user.
18
- *
19
- * @param apiContext This optional query parameter filters the result to include only the specified API context.
20
- * @param apiName This optional query parameter filters the result to include only the APIs specified.
21
- */
22
7
  getUserRateLimits(apiContext: string, apiName: string): Promise<any>;
23
8
  }
@@ -4,19 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const index_js_1 = __importDefault(require("../../index.js"));
7
- /**
8
- * This method retrieves the call limit and utilization data for an application.
9
- */
10
7
  class Analytics extends index_js_1.default {
11
8
  get basePath() {
12
9
  return '/developer/analytics/v1_beta';
13
10
  }
14
- /**
15
- * This method retrieves the call limit and utilization data for an application.
16
- *
17
- * @param apiContext This optional query parameter filters the result to include only the specified API context.
18
- * @param apiName This optional query parameter filters the result to include only the APIs specified.
19
- */
20
11
  getRateLimits(apiContext, apiName) {
21
12
  return this.get(`/rate_limit/`, {
22
13
  params: {
@@ -25,12 +16,6 @@ class Analytics extends index_js_1.default {
25
16
  }
26
17
  });
27
18
  }
28
- /**
29
- * This method retrieves the call limit and utilization data for an application user.
30
- *
31
- * @param apiContext This optional query parameter filters the result to include only the specified API context.
32
- * @param apiName This optional query parameter filters the result to include only the APIs specified.
33
- */
34
19
  getUserRateLimits(apiContext, apiName) {
35
20
  return this.get(`/user_rate_limit/`, {
36
21
  params: {
@@ -1,25 +1,10 @@
1
1
  import { operations } from '../../../../types/restful/specs/developer_key_management_v1_oas3.js';
2
2
  import Restful, { OpenApi } from '../../index.js';
3
- /**
4
- * This method retrieves the call limit and utilization data for an application.
5
- */
6
3
  export default class KeyManagement extends Restful implements OpenApi<operations> {
7
4
  static id: string;
8
5
  get subdomain(): string;
9
6
  get basePath(): string;
10
- /**
11
- * This method returns the <b>Public Key</b>, <b>Public Key as JWE</b>,
12
- * and metadata for all keypairs associated with the application key making the call.
13
- */
14
7
  getSigningKeys(): Promise<any>;
15
- /**
16
- * This method creates keypairs.
17
- */
18
8
  createSigningKey(signingKeyCipher: 'ED25519' | 'RSA'): Promise<any>;
19
- /**
20
- * This method returns the <b>Public Key</b>, <b>Public Key as JWE</b>,
21
- * and metadata for a specified <code>signingKeyId</code> associated with the application key making the call.
22
- * @param signingKeyId the signin key
23
- */
24
9
  getSigningKey(signingKeyId: string): Promise<any>;
25
10
  }
@@ -4,9 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const index_js_1 = __importDefault(require("../../index.js"));
7
- /**
8
- * This method retrieves the call limit and utilization data for an application.
9
- */
10
7
  class KeyManagement extends index_js_1.default {
11
8
  get subdomain() {
12
9
  return 'apiz';
@@ -14,26 +11,14 @@ class KeyManagement extends index_js_1.default {
14
11
  get basePath() {
15
12
  return '/developer/key_management/v1';
16
13
  }
17
- /**
18
- * This method returns the <b>Public Key</b>, <b>Public Key as JWE</b>,
19
- * and metadata for all keypairs associated with the application key making the call.
20
- */
21
14
  getSigningKeys() {
22
15
  return this.get(`/signing_key`);
23
16
  }
24
- /**
25
- * This method creates keypairs.
26
- */
27
17
  createSigningKey(signingKeyCipher) {
28
18
  return this.post(`/signing_key`, {
29
19
  signingKeyCipher
30
20
  });
31
21
  }
32
- /**
33
- * This method returns the <b>Public Key</b>, <b>Public Key as JWE</b>,
34
- * and metadata for a specified <code>signingKeyId</code> associated with the application key making the call.
35
- * @param signingKeyId the signin key
36
- */
37
22
  getSigningKey(signingKeyId) {
38
23
  return this.get(`/signing_key/${signingKeyId}`);
39
24
  }
@@ -31,9 +31,6 @@ export default abstract class Restful extends Api {
31
31
  constructor(config: AppConfig, req?: IEBayApiRequest, auth?: Auth, apiConfig?: RestfulApiConfig);
32
32
  static buildServerUrl(schema: string, subdomain: string, sandbox: boolean, tld: string): string;
33
33
  abstract get basePath(): string;
34
- /**
35
- * Enable to supports the use of OAuth tokens for user authorization.
36
- */
37
34
  get useIaf(): boolean;
38
35
  get schema(): string;
39
36
  get subdomain(): string;
@@ -41,22 +38,9 @@ export default abstract class Restful extends Api {
41
38
  getServerUrl({ schema, subdomain, apiVersion, basePath, sandbox, tld }: Required<RestfulApiConfig>): string;
42
39
  getApiConfig(): Required<RestfulApiConfig>;
43
40
  get baseUrl(): string;
44
- /**
45
- * Create a new instances of it self with specified api config.
46
- * @param apiConfig
47
- */
48
41
  api(apiConfig: RestfulApiConfig): this;
49
- /**
50
- * Use "apix" subdomain
51
- */
52
42
  get apix(): this;
53
- /**
54
- * Use "apiz" subdomain
55
- */
56
43
  get apiz(): this;
57
- /**
58
- * Sign request
59
- */
60
44
  get sign(): this;
61
45
  get(path: string, config?: any, apiConfig?: RestfulApiConfig): Promise<any>;
62
46
  delete(path: string, config?: any, apiConfig?: RestfulApiConfig): Promise<any>;
@@ -9,7 +9,6 @@ const index_js_2 = __importDefault(require("../index.js"));
9
9
  exports.defaultApiHeaders = {
10
10
  'Content-Type': 'application/json',
11
11
  'Cache-Control': 'no-cache',
12
- // @ts-ignore
13
12
  ...(typeof window === 'undefined' ? {
14
13
  'Accept-Encoding': 'application/gzip'
15
14
  } : {})
@@ -31,9 +30,6 @@ class Restful extends index_js_2.default {
31
30
  static buildServerUrl(schema, subdomain, sandbox, tld) {
32
31
  return `${schema}${subdomain}.${sandbox ? 'sandbox.' : ''}${tld}`;
33
32
  }
34
- /**
35
- * Enable to supports the use of OAuth tokens for user authorization.
36
- */
37
33
  get useIaf() {
38
34
  return false;
39
35
  }
@@ -66,29 +62,15 @@ class Restful extends index_js_2.default {
66
62
  get baseUrl() {
67
63
  return this.getServerUrl(this.apiConfig);
68
64
  }
69
- /**
70
- * Create a new instances of it self with specified api config.
71
- * @param apiConfig
72
- */
73
65
  api(apiConfig) {
74
- // @ts-ignore
75
66
  return new this.constructor(this.config, this.req, this.auth, apiConfig);
76
67
  }
77
- /**
78
- * Use "apix" subdomain
79
- */
80
68
  get apix() {
81
69
  return this.api({ subdomain: 'apix' });
82
70
  }
83
- /**
84
- * Use "apiz" subdomain
85
- */
86
71
  get apiz() {
87
72
  return this.api({ subdomain: 'apiz' });
88
73
  }
89
- /**
90
- * Sign request
91
- */
92
74
  get sign() {
93
75
  return this.api({ sign: true });
94
76
  }
@@ -106,10 +88,8 @@ class Restful extends index_js_2.default {
106
88
  }
107
89
  get additionalHeaders() {
108
90
  return Object.keys(additionalHeaders)
109
- // @ts-ignore
110
91
  .filter(key => typeof this.config[key] !== 'undefined')
111
92
  .reduce((headers, key) => {
112
- // @ts-ignore
113
93
  headers[additionalHeaders[key]] = this.config[key];
114
94
  return headers;
115
95
  }, {});
@@ -142,8 +122,7 @@ class Restful extends index_js_2.default {
142
122
  }
143
123
  catch (error) {
144
124
  if (this.shouldRefreshToken(error)) {
145
- // Try again and refresh token
146
- return await this.request(payload, apiConfig, true /* refresh token */);
125
+ return await this.request(payload, apiConfig, true);
147
126
  }
148
127
  throw error;
149
128
  }
@@ -170,7 +149,6 @@ class Restful extends index_js_2.default {
170
149
  }
171
150
  const enrichedConfig = await this.enrichRequestConfig(apiRequest, data, apiCfg);
172
151
  const args = ['get', 'delete'].includes(method) ? [enrichedConfig] : [data, enrichedConfig];
173
- // @ts-ignore
174
152
  const response = await this.req[method](endpoint, ...args);
175
153
  if (this.apiConfig.returnResponse) {
176
154
  return response;
@@ -1,57 +1,14 @@
1
1
  import Restful from '../../index.js';
2
2
  import { CancellationSearchParams, ConfirmRefundRequest, CreateCancelRequest, RejectCancelRequest } from '../../../../types/index.js';
3
- /**
4
- * Post-Order Cancellation API
5
- */
6
3
  export default class Cancellation extends Restful {
7
4
  static id: string;
8
5
  get basePath(): string;
9
6
  get useIaf(): boolean;
10
- /**
11
- * Seller approves a cancellation request
12
- *
13
- * @param cancelId The unique eBay-assigned identifier of the cancellation request to be approved.
14
- */
15
7
  approveCancellationRequest(cancelId: string): Promise<any>;
16
- /**
17
- * Check the eligibility of an order cancellation
18
- *
19
- * @param legacyOrderId The unique ID of the order being canceled or the order being considered for cancellation.
20
- */
21
8
  checkCancellationEligibility(legacyOrderId: string): Promise<any>;
22
- /**
23
- * Buyer confirms the refund from a cancellation was received
24
- *
25
- * @param cancelId The unique eBay-assigned identifier of the cancellation/refund being confirmed.
26
- * @param payload the ConfirmRefundReceivedPayload
27
- */
28
9
  confirmRefundReceived(cancelId: string, payload?: ConfirmRefundRequest): Promise<any>;
29
- /**
30
- * Request or perform an order cancellation.
31
- *
32
- * @param payload the CreateCancelRequest
33
- */
34
10
  createCancellation(payload: CreateCancelRequest): Promise<any>;
35
- /**
36
- * Retrieve the details of an order cancellation.
37
- *
38
- * @param cancelId Supply in this path parameter the unique eBay-assigned ID of the cancellation request to
39
- * retrieve.
40
- * @param fieldGroups The value set in this query parameter controls the level of detail that is returned in the
41
- * response.
42
- */
43
11
  getCancellation(cancelId: string, fieldGroups?: string): Promise<any>;
44
- /**
45
- * Seller rejects a cancellation request.
46
- *
47
- * @param cancelId The unique eBay-assigned identifier of the cancellation request to be rejected.
48
- * @param payload the RejectCancelRequest
49
- */
50
12
  rejectCancellationRequest(cancelId: string, payload?: RejectCancelRequest): Promise<any>;
51
- /**
52
- * Search for cancellations.
53
- *
54
- * @param params the SearchParams
55
- */
56
13
  search(params: CancellationSearchParams): Promise<any>;
57
14
  }
@@ -4,9 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const index_js_1 = __importDefault(require("../../index.js"));
7
- /**
8
- * Post-Order Cancellation API
9
- */
10
7
  class Cancellation extends index_js_1.default {
11
8
  get basePath() {
12
9
  return '/post-order/v2';
@@ -14,51 +11,22 @@ class Cancellation extends index_js_1.default {
14
11
  get useIaf() {
15
12
  return true;
16
13
  }
17
- /**
18
- * Seller approves a cancellation request
19
- *
20
- * @param cancelId The unique eBay-assigned identifier of the cancellation request to be approved.
21
- */
22
14
  approveCancellationRequest(cancelId) {
23
15
  cancelId = encodeURIComponent(cancelId);
24
16
  return this.post(`/cancellation/${cancelId}/approve`);
25
17
  }
26
- /**
27
- * Check the eligibility of an order cancellation
28
- *
29
- * @param legacyOrderId The unique ID of the order being canceled or the order being considered for cancellation.
30
- */
31
18
  checkCancellationEligibility(legacyOrderId) {
32
19
  return this.post(`/cancellation/check_eligibility`, {
33
20
  legacyOrderId
34
21
  });
35
22
  }
36
- /**
37
- * Buyer confirms the refund from a cancellation was received
38
- *
39
- * @param cancelId The unique eBay-assigned identifier of the cancellation/refund being confirmed.
40
- * @param payload the ConfirmRefundReceivedPayload
41
- */
42
23
  confirmRefundReceived(cancelId, payload) {
43
24
  cancelId = encodeURIComponent(cancelId);
44
25
  return this.post(`/cancellation/${cancelId}/confirm`, payload);
45
26
  }
46
- /**
47
- * Request or perform an order cancellation.
48
- *
49
- * @param payload the CreateCancelRequest
50
- */
51
27
  createCancellation(payload) {
52
28
  return this.post(`/cancellation`, payload);
53
29
  }
54
- /**
55
- * Retrieve the details of an order cancellation.
56
- *
57
- * @param cancelId Supply in this path parameter the unique eBay-assigned ID of the cancellation request to
58
- * retrieve.
59
- * @param fieldGroups The value set in this query parameter controls the level of detail that is returned in the
60
- * response.
61
- */
62
30
  getCancellation(cancelId, fieldGroups) {
63
31
  cancelId = encodeURIComponent(cancelId);
64
32
  return this.get(`/cancellation/${cancelId}`, {
@@ -67,21 +35,10 @@ class Cancellation extends index_js_1.default {
67
35
  }
68
36
  });
69
37
  }
70
- /**
71
- * Seller rejects a cancellation request.
72
- *
73
- * @param cancelId The unique eBay-assigned identifier of the cancellation request to be rejected.
74
- * @param payload the RejectCancelRequest
75
- */
76
38
  rejectCancellationRequest(cancelId, payload) {
77
39
  cancelId = encodeURIComponent(cancelId);
78
40
  return this.post(`/cancellation/${cancelId}/reject`, payload);
79
41
  }
80
- /**
81
- * Search for cancellations.
82
- *
83
- * @param params the SearchParams
84
- */
85
42
  search(params) {
86
43
  return this.get(`/cancellation/search`, {
87
44
  params: {
@@ -1,63 +1,17 @@
1
1
  import { AppealRequest, BuyerCloseCaseRequest, CaseSearchParams, ReturnAddressRequest, Text } from '../../../../types/index.js';
2
2
  import Restful from '../../index.js';
3
- /**
4
- * Post-Order Case Management API
5
- */
6
3
  export default class Case extends Restful {
7
4
  static id: string;
8
5
  get basePath(): string;
9
6
  get useIaf(): boolean;
10
- /**
11
- * Buyer or seller appeals a case decision.
12
- *
13
- * @param caseId The unique identifier of a case.
14
- * @param payload the AppealRequest
15
- */
16
7
  appealCaseDecision(caseId: string, payload?: AppealRequest): Promise<any>;
17
- /**
18
- * Check the eligibility of an order cancellation.
19
- *
20
- * @param caseId The unique identifier of a case.
21
- * @param payload the BuyerCloseCaseRequest
22
- */
23
8
  closeCase(caseId: string, payload: BuyerCloseCaseRequest): Promise<any>;
24
- /**
25
- * Retrieve the details related to a specific case.
26
- *
27
- * @param caseId The unique identifier of a case.
28
- */
29
9
  getCase(caseId: string): Promise<any>;
30
- /**
31
- * Seller issues a refund for a case.
32
- *
33
- * @param caseId The unique identifier of a case.
34
- * @param payload the CaseVoluntaryRefundRequest (Text)
35
- */
36
10
  issueCaseRefund(caseId: string, payload?: Text): Promise<any>;
37
- /**
38
- * This call allows the buyer to provide shipment tracking information for the item that is being returned to the
39
- * seller.
40
- *
41
- * @param caseId The unique identifier of a case.
42
- * @param shippingCarrierName The shipping carrier that is used to ship the item, such as 'FedEx', 'UPS', or
43
- * 'USPS'.
44
- * @param trackingNumber The tracking number assigned by the shipping carrier to the item shipment.
45
- */
46
11
  provideReturnShipmentInfo(caseId: string, { shippingCarrierName, trackingNumber }: {
47
12
  shippingCarrierName: string;
48
13
  trackingNumber: string;
49
14
  }): Promise<any>;
50
- /**
51
- * Seller provides a return address to the buyer.
52
- *
53
- * @param cancelId The unique eBay-assigned identifier of the cancellation request to be rejected.
54
- * @param payload the ReturnAddressRequest
55
- */
56
15
  providesReturnAddress(cancelId: string, payload?: ReturnAddressRequest): Promise<any>;
57
- /**
58
- * This call is used to search for cases using multiple filter types.
59
- *
60
- * @param params the SearchParams
61
- */
62
16
  search(params: CaseSearchParams): Promise<any>;
63
17
  }
@@ -4,9 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const index_js_1 = __importDefault(require("../../index.js"));
7
- /**
8
- * Post-Order Case Management API
9
- */
10
7
  class Case extends index_js_1.default {
11
8
  get basePath() {
12
9
  return '/post-order/v2';
@@ -14,54 +11,22 @@ class Case extends index_js_1.default {
14
11
  get useIaf() {
15
12
  return true;
16
13
  }
17
- /**
18
- * Buyer or seller appeals a case decision.
19
- *
20
- * @param caseId The unique identifier of a case.
21
- * @param payload the AppealRequest
22
- */
23
14
  appealCaseDecision(caseId, payload) {
24
15
  const id = encodeURIComponent(caseId);
25
16
  return this.post(`/casemanagement/${id}/appeal`, payload);
26
17
  }
27
- /**
28
- * Check the eligibility of an order cancellation.
29
- *
30
- * @param caseId The unique identifier of a case.
31
- * @param payload the BuyerCloseCaseRequest
32
- */
33
18
  closeCase(caseId, payload) {
34
19
  const id = encodeURIComponent(caseId);
35
20
  return this.post(`/casemanagement/${id}/close`, payload);
36
21
  }
37
- /**
38
- * Retrieve the details related to a specific case.
39
- *
40
- * @param caseId The unique identifier of a case.
41
- */
42
22
  getCase(caseId) {
43
23
  const id = encodeURIComponent(caseId);
44
24
  return this.get(`/casemanagement/${id}`);
45
25
  }
46
- /**
47
- * Seller issues a refund for a case.
48
- *
49
- * @param caseId The unique identifier of a case.
50
- * @param payload the CaseVoluntaryRefundRequest (Text)
51
- */
52
26
  issueCaseRefund(caseId, payload) {
53
27
  const id = encodeURIComponent(caseId);
54
28
  return this.post(`/casemanagement/${id}/issue_refund`, payload);
55
29
  }
56
- /**
57
- * This call allows the buyer to provide shipment tracking information for the item that is being returned to the
58
- * seller.
59
- *
60
- * @param caseId The unique identifier of a case.
61
- * @param shippingCarrierName The shipping carrier that is used to ship the item, such as 'FedEx', 'UPS', or
62
- * 'USPS'.
63
- * @param trackingNumber The tracking number assigned by the shipping carrier to the item shipment.
64
- */
65
30
  provideReturnShipmentInfo(caseId, { shippingCarrierName, trackingNumber }) {
66
31
  const id = encodeURIComponent(caseId);
67
32
  return this.post(`/casemanagement/${id}/provide_shipment_info`, {
@@ -69,21 +34,10 @@ class Case extends index_js_1.default {
69
34
  trackingNumber
70
35
  });
71
36
  }
72
- /**
73
- * Seller provides a return address to the buyer.
74
- *
75
- * @param cancelId The unique eBay-assigned identifier of the cancellation request to be rejected.
76
- * @param payload the ReturnAddressRequest
77
- */
78
37
  providesReturnAddress(cancelId, payload) {
79
38
  const id = encodeURIComponent(cancelId);
80
39
  return this.post(`/casemanagement/${id}/provide_return_address`, payload);
81
40
  }
82
- /**
83
- * This call is used to search for cases using multiple filter types.
84
- *
85
- * @param params the SearchParams
86
- */
87
41
  search(params) {
88
42
  return this.get(`/casemanagement/search`, {
89
43
  params