connect-sdk-nodejs 3.16.0 → 3.20.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.
@@ -9,5 +9,7 @@ modules['create'] = require('./create');
9
9
  // console.log(`Added create to module space`);
10
10
  modules['get'] = require('./get');
11
11
  // console.log(`Added get to module space`);
12
+ modules['remove'] = require('./remove');
13
+ // console.log(`Added remove to module space`);
12
14
 
13
15
  module.exports = modules;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * This file was auto-generated from the API references found at
4
+ * https://epayments-api.developer-ingenico.com/s2sapi/v1/
5
+ */
6
+ var communicator = require('../utils/communicator');
7
+
8
+ var myModule = function (merchantId, hostedCheckoutId, paymentContext, cb) {
9
+ communicator.json({
10
+ method: 'DELETE',
11
+ modulePath: '/v1/' + merchantId + '/hostedcheckouts/' + hostedCheckoutId,
12
+ body: null,
13
+ paymentContext: paymentContext,
14
+ cb: cb
15
+ });
16
+ }
17
+
18
+ module.exports = myModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connect-sdk-nodejs",
3
- "version": "3.16.0",
3
+ "version": "3.20.0",
4
4
  "description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
5
5
  "dependencies": {
6
6
  "dateformat": "^4.5.1",
@@ -623,6 +623,9 @@
623
623
  "CustomerAccountAuthentication" : {
624
624
  "type" : "object",
625
625
  "properties" : {
626
+ "data" : {
627
+ "type" : "string"
628
+ },
626
629
  "method" : {
627
630
  "type" : "string"
628
631
  },
@@ -1706,6 +1709,9 @@
1706
1709
  },
1707
1710
  "skipAuthentication" : {
1708
1711
  "type" : "boolean"
1712
+ },
1713
+ "transactionRiskLevel" : {
1714
+ "type" : "string"
1709
1715
  }
1710
1716
  },
1711
1717
  "additionalProperties" : false
@@ -493,6 +493,9 @@
493
493
  "CustomerAccountAuthentication" : {
494
494
  "type" : "object",
495
495
  "properties" : {
496
+ "data" : {
497
+ "type" : "string"
498
+ },
496
499
  "method" : {
497
500
  "type" : "string"
498
501
  },
@@ -439,6 +439,9 @@
439
439
  },
440
440
  "issueNumber" : {
441
441
  "type" : "string"
442
+ },
443
+ "partialPin" : {
444
+ "type" : "string"
442
445
  }
443
446
  },
444
447
  "additionalProperties" : false
@@ -779,6 +782,9 @@
779
782
  "CustomerAccountAuthentication" : {
780
783
  "type" : "object",
781
784
  "properties" : {
785
+ "data" : {
786
+ "type" : "string"
787
+ },
782
788
  "method" : {
783
789
  "type" : "string"
784
790
  },
@@ -1774,16 +1780,13 @@
1774
1780
  "RedirectPaymentProduct4101SpecificInput" : {
1775
1781
  "type" : "object",
1776
1782
  "properties" : {
1777
- "integrationType" : {
1783
+ "displayName" : {
1778
1784
  "type" : "string"
1779
1785
  },
1780
- "merchantName" : {
1781
- "type" : "string"
1782
- },
1783
- "transactionNote" : {
1786
+ "integrationType" : {
1784
1787
  "type" : "string"
1785
1788
  },
1786
- "vpa" : {
1789
+ "virtualPaymentAddress" : {
1787
1790
  "type" : "string"
1788
1791
  }
1789
1792
  },
@@ -2090,6 +2093,9 @@
2090
2093
  },
2091
2094
  "skipAuthentication" : {
2092
2095
  "type" : "boolean"
2096
+ },
2097
+ "transactionRiskLevel" : {
2098
+ "type" : "string"
2093
2099
  }
2094
2100
  },
2095
2101
  "additionalProperties" : false
@@ -161,6 +161,9 @@
161
161
  },
162
162
  "issueNumber" : {
163
163
  "type" : "string"
164
+ },
165
+ "partialPin" : {
166
+ "type" : "string"
164
167
  }
165
168
  },
166
169
  "additionalProperties" : false
@@ -304,6 +304,9 @@
304
304
  },
305
305
  "issueNumber" : {
306
306
  "type" : "string"
307
+ },
308
+ "partialPin" : {
309
+ "type" : "string"
307
310
  }
308
311
  },
309
312
  "additionalProperties" : false
package/utils/headers.js CHANGED
@@ -9,7 +9,7 @@ var serverMetaInfo = function (sdkContext) {
9
9
  key: "X-GCS-ServerMetaInfo",
10
10
  value: {
11
11
  'sdkCreator': 'Ingenico',
12
- 'sdkIdentifier': 'NodejsServerSDK/v3.16.0',
12
+ 'sdkIdentifier': 'NodejsServerSDK/v3.20.0',
13
13
  'platformIdentifier': process.env['OS'] + ' Node.js/' + process.versions.node
14
14
  }
15
15
  };