sdx-mailer-sdk 1.0.14 → 1.0.16

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdx-mailer-sdk",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "A api rest sdx-mailer-sender sdk",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,7 +27,7 @@ class CourierMail {
27
27
  }
28
28
 
29
29
  createCourierExceptionRequest(error, detail, context) {
30
- return JSON.stringify(new CourierExceptionRequest(error, detail, context));
30
+ return new CourierExceptionRequest(error, detail, context);
31
31
  }
32
32
 
33
33
  /**
@@ -40,7 +40,7 @@ class CourierMail {
40
40
  * @returns
41
41
  */
42
42
  async sendCourierMail(basicAuth, endpoint, tokenRQ, productId, isBasic) {
43
- const url = endpoint + BASE_PATH + (isBasic ? '/basic' : '');
43
+ const url = endpoint + CourierMail.BASE_PATH + (isBasic ? '/basic' : '');
44
44
  if (!Commons.validField(tokenRQ.trx)) {
45
45
  throw WebServiceException.BAD_REQUEST("Request must be signed");
46
46
  }
@@ -48,7 +48,7 @@ class CourierMail {
48
48
  }
49
49
 
50
50
  async sendExceptionMail(basicAuth, endpoint, tokenRQ, productId) {
51
- const url = endpoint + BASE_PATH + '/exceptions';
51
+ const url = endpoint + CourierMail.BASE_PATH + '/exceptions';
52
52
  if (!Commons.validField(tokenRQ.trx)) {
53
53
  throw WebServiceException.BAD_REQUEST("Request must be signed");
54
54
  }