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

Commit 6b9ceb2

Browse files
author
Jenkins
committed
Release 3.0.0.
1 parent 7b95102 commit 6b9ceb2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+317
-120
lines changed

captures/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
var communicator = require('../utils/communicator');
77

88
var myModule = function (merchantId, captureId, paymentContext, cb) {
9-
communicator({
9+
communicator.json({
1010
method: 'GET',
1111
modulePath: '/v1/' + merchantId + '/captures/' + captureId,
1212
body: null,

disputes/cancel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
var communicator = require('../utils/communicator');
77

88
var myModule = function (merchantId, disputeId, paymentContext, cb) {
9-
communicator({
9+
communicator.json({
1010
method: 'POST',
1111
modulePath: '/v1/' + merchantId + '/disputes/' + disputeId + '/cancel',
1212
body: null,

disputes/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
var communicator = require('../utils/communicator');
77

88
var myModule = function (merchantId, disputeId, paymentContext, cb) {
9-
communicator({
9+
communicator.json({
1010
method: 'GET',
1111
modulePath: '/v1/' + merchantId + '/disputes/' + disputeId,
1212
body: null,

disputes/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ modules['submit'] = require('./submit');
1111
// console.log(`Added submit to module space`);
1212
modules['cancel'] = require('./cancel');
1313
// console.log(`Added cancel to module space`);
14+
modules['uploadFile'] = require('./uploadFile');
15+
// console.log(`Added uploadFile to module space`);
1416

1517
module.exports = modules;

disputes/submit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
var communicator = require('../utils/communicator');
77

88
var myModule = function (merchantId, disputeId, paymentContext, cb) {
9-
communicator({
9+
communicator.json({
1010
method: 'POST',
1111
modulePath: '/v1/' + merchantId + '/disputes/' + disputeId + '/submit',
1212
body: null,

disputes/uploadFile.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, postData, paymentContext, cb) {
9+
communicator.multipart({
10+
method: 'POST',
11+
modulePath: '/files/v1/' + merchantId + '/disputes/' + disputeId,
12+
body: postData,
13+
paymentContext: paymentContext,
14+
cb: cb
15+
});
16+
}
17+
18+
module.exports = myModule;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
*/
66
var communicator = require('../utils/communicator');
77

8-
var myModule = function (merchantId, paymentProductId, paymentContext, cb) {
9-
communicator({
8+
var myModule = function (merchantId, fileId, paymentContext, cb) {
9+
communicator.json({
1010
method: 'GET',
11-
modulePath: '/v1/' + merchantId + '/products/' + paymentProductId + '/publicKey',
11+
modulePath: '/files/v1/' + merchantId + '/files/' + fileId,
1212
body: null,
1313
paymentContext: paymentContext,
1414
cb: cb

files/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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 modules = {};
7+
8+
modules['getFile'] = require('./getFile');
9+
// console.log(`Added getFile to module space`);
10+
11+
module.exports = modules;

hostedcheckouts/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var myModule = function (merchantId, postData, paymentContext, cb) {
1818
}
1919
throw new Error(isValidRequest.errors);
2020
}
21-
communicator({
21+
communicator.json({
2222
method: 'POST',
2323
modulePath: '/v1/' + merchantId + '/hostedcheckouts',
2424
body: postData,

hostedcheckouts/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
var communicator = require('../utils/communicator');
77

88
var myModule = function (merchantId, hostedCheckoutId, paymentContext, cb) {
9-
communicator({
9+
communicator.json({
1010
method: 'GET',
1111
modulePath: '/v1/' + merchantId + '/hostedcheckouts/' + hostedCheckoutId,
1212
body: null,

0 commit comments

Comments
 (0)