Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 758e4a1

Browse files
author
Ingenico ePayments
committed
Release 2.26.0.
1 parent 156a9f7 commit 758e4a1

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

disputes/cancel.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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, disputeId, paymentContext, cb) {
9+
communicator({
10+
method: 'POST',
11+
modulePath: '/v1/' + merchantId + '/disputes/' + disputeId + '/cancel',
12+
body: null,
13+
paymentContext: paymentContext,
14+
cb: cb
15+
});
16+
}
17+
18+
module.exports = myModule;

disputes/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ modules['get'] = require('./get');
99
// console.log(`Added get to module space`);
1010
modules['submit'] = require('./submit');
1111
// console.log(`Added submit to module space`);
12+
modules['cancel'] = require('./cancel');
13+
// console.log(`Added cancel to module space`);
1214

1315
module.exports = modules;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "connect-sdk-nodejs",
3-
"version": "2.25.0",
3+
"version": "2.26.0",
44
"description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
55
"dependencies": {
66
"dateformat": "^1.0.12",

utils/headers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var serverMetaInfo = function (sdkContext) {
99
key: "X-GCS-ServerMetaInfo",
1010
value: {
1111
'sdkCreator': 'Ingenico',
12-
'sdkIdentifier': 'NodejsServerSDK/v2.25.0',
12+
'sdkIdentifier': 'NodejsServerSDK/v2.26.0',
1313
'platformIdentifier': process.env['OS'] + ' Node.js/' + process.versions.node
1414
}
1515
};

0 commit comments

Comments
 (0)