@dotdev/harmony-sdk 1.10.5 → 1.11.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.
package/dist/helpers/index.js
CHANGED
|
@@ -9,13 +9,8 @@ export class ApiHelper {
|
|
|
9
9
|
static async sendSoapRequest(endpoint, axiosInstance, requestBody, type = "POST") {
|
|
10
10
|
const url = `${endpoint}?wsdl`;
|
|
11
11
|
let response;
|
|
12
|
-
axiosInstance.interceptors.response.use((response) => {
|
|
13
|
-
console.log(`logged by intercepter`);
|
|
14
|
-
console.log(response);
|
|
15
|
-
return response;
|
|
16
|
-
});
|
|
17
12
|
try {
|
|
18
|
-
|
|
13
|
+
let response;
|
|
19
14
|
switch (type) {
|
|
20
15
|
case "GET":
|
|
21
16
|
response = await axiosInstance.get(url, {
|
|
@@ -129,8 +129,6 @@ export class StockLookupModule {
|
|
|
129
129
|
* @returns {Promise<Stock[]>} Array of stock response objects which correspond to Harmony API response
|
|
130
130
|
*/
|
|
131
131
|
async stockLookup(params, sessionId) {
|
|
132
|
-
console.debug(`stockLookup params`);
|
|
133
|
-
console.debug(params);
|
|
134
132
|
const body = mapStockLookupRequestParams(params);
|
|
135
133
|
try {
|
|
136
134
|
const response = await ApiHelper.sendServiceRequest(this.SERVICE_URL, [`StockLookup`, `Request`], sessionId, ServiceAlias.STOCK_LOOKUP, this.axiosInstance, body.toString());
|