zudello-integration-sdk 1.0.39 → 1.0.41
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/package.json
CHANGED
package/src/sdk/NetsuiteSOAP.js
CHANGED
|
@@ -30,6 +30,23 @@ class PoDocumentModule {
|
|
|
30
30
|
})
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Updates PO Document.
|
|
35
|
+
* @returns {object} Create PO Document Response.
|
|
36
|
+
*/
|
|
37
|
+
async update ({ ...fields }) {
|
|
38
|
+
return await this.module.makeRequest('POST', `${this.module.apiURL}/zintegrations/action/2355af76-4571-4090-8111-a38d750bd6ab`, {
|
|
39
|
+
mappable_parameters: {
|
|
40
|
+
debug: {
|
|
41
|
+
value: false
|
|
42
|
+
},
|
|
43
|
+
...fields
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
_debug: true
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
|
|
33
50
|
/**
|
|
34
51
|
* Reuse Universal Listing with type PODOCUMENT.
|
|
35
52
|
* @returns {object} List Response.
|
package/src/utils/apiInstance.js
CHANGED
|
@@ -95,6 +95,10 @@ class ApiInstance {
|
|
|
95
95
|
headers
|
|
96
96
|
})
|
|
97
97
|
|
|
98
|
+
if (Object.prototype.hasOwnProperty.call(params, '_debug') && params._debug) {
|
|
99
|
+
return this.responseHandler.success(response?.data?.data || null)
|
|
100
|
+
}
|
|
101
|
+
|
|
98
102
|
return returnHeaders
|
|
99
103
|
? this.responseHandler.success(response.headers || null)
|
|
100
104
|
: this.responseHandler.success(response.data || null)
|