ebay-api
Advanced tools
Comparing version 8.4.0 to 8.4.1
@@ -152,2 +152,5 @@ import { EBayInvalidAccessToken, handleEBayError } from '../../errors/index.js'; | ||
} | ||
else if (error?.meta?.res?.status === 403 && this.apiConfig.basePath === '/sell/inventory/v1') { | ||
return true; | ||
} | ||
return error?.meta?.res?.status === 401 && this.apiConfig.basePath === '/post-order/v2'; | ||
@@ -154,0 +157,0 @@ } |
@@ -158,2 +158,5 @@ "use strict"; | ||
} | ||
else if (error?.meta?.res?.status === 403 && this.apiConfig.basePath === '/sell/inventory/v1') { | ||
return true; | ||
} | ||
return error?.meta?.res?.status === 401 && this.apiConfig.basePath === '/post-order/v2'; | ||
@@ -160,0 +163,0 @@ } |
{ | ||
"name": "ebay-api", | ||
"author": "Daniil Tomilow", | ||
"version": "8.4.0", | ||
"version": "8.4.1", | ||
"description": "eBay API for Node and Browser", | ||
@@ -6,0 +6,0 @@ "type": "module", |
@@ -12,3 +12,3 @@ # eBay Node API in TypeScript with Browser support | ||
This eBay API implements both Traditional \(xml\) and the RESTful eBay API. | ||
It supports `client credentials grant` and `authorization code grant` \(Auth'N'Auth, OAuth2 and IAF\). | ||
It supports `client credentials grant` and `authorization code grant` \(Auth'N'Auth, OAuth2 and IAF\). Digital Signature is supported too. | ||
@@ -25,3 +25,3 @@ * [API Browser Examples](https://hendt.github.io/ebay-api/) | ||
* `v8.4.0` is the latest release. | ||
* `v8.4.1` is the latest release. | ||
* See [here](https://github.com/hendt/ebay-api/blob/master/CHANGELOG.md) for the full changelog. | ||
@@ -93,5 +93,5 @@ | ||
marketplaceId: eBayApi.MarketplaceId.EBAY_US, // defautl. required for RESTful APIs | ||
acceptLanguage: eBayApi.Locale.en_US, // defautl | ||
contentLanguage: eBayApi.ContentLanguage.en_US, // defautl. | ||
marketplaceId: eBayApi.MarketplaceId.EBAY_US, // default. required for RESTful APIs | ||
acceptLanguage: eBayApi.Locale.en_US, // default | ||
contentLanguage: eBayApi.ContentLanguage.en_US, // default. | ||
@@ -260,2 +260,4 @@ // optional parameters, should be omitted if not used | ||
// This is your RUName endpoint like https://your-ebay.app/success | ||
app.get('/success', async function (req, res) { | ||
@@ -316,12 +318,12 @@ // 3. Get the parameter code that is placed as query parameter in redirected page | ||
* All methods in the Finances API | ||
* issueRefund in the Fulfillment API | ||
* GetAccount in the Trading API | ||
* All methods in the Finances API -> (`eBay.finances.XXX.sign.YYY()`) | ||
* issueRefund in the Fulfillment API -> (`eBay.sell.fulfillment.sign.issueRefund()`) | ||
* GetAccount in the Trading API -> (`eBay.trading.GetAccount(null, { sign: true }))`) | ||
* The following methods in the Post-Order API: | ||
- Issue Inquiry Refund | ||
- Issue case refund | ||
- Issue return refund | ||
- Process Return Request | ||
- Create Cancellation Request | ||
- Approve Cancellation Request | ||
- Issue Inquiry Refund -> (`eBay.postOrder.inquiry.sign.issueInquiryRefund()`) | ||
- Issue case refund -> (`eBay.postOrder.inquiry.sign.issueCaseRefund()`) | ||
- Issue return refund -> (`eBay.postOrder.inquiry.sign.issueReturnRefund()`) | ||
- Process Return Request -> (`eBay.postOrder.inquiry.sign.processReturnRequest()`) | ||
- Create Cancellation Request -> (`eBay.postOrder.inquiry.sign.createCancellation()`) | ||
- Approve Cancellation Request -> (`eBay.postOrder.inquiry.sign.approveCancellationRequest()`) | ||
@@ -383,3 +385,3 @@ ### How to use Digital Signature | ||
### Change RESTful API call config | ||
### Return raw RESTful API response | ||
@@ -412,4 +414,4 @@ ```javascript | ||
To manuel refresh the auth token use `eBay.OAuth2.refreshAuthToken()` and for the client | ||
token `eBay.OAuth2.refreshClientToken()`. | ||
To manual refresh the auth token use `eBay.OAuth2.refreshAuthToken()` and for the client | ||
token use `eBay.OAuth2.refreshClientToken()`. | ||
Keep in mind that you need the 'refresh_token' value set. | ||
@@ -416,0 +418,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 10 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1989866
37454
650
34