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

Commit a1a3871

Browse files
author
Ingenico ePayments
committed
Release 2.27.0.
1 parent 758e4a1 commit a1a3871

File tree

7 files changed

+58
-2
lines changed

7 files changed

+58
-2
lines changed

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.26.0",
3+
"version": "2.27.0",
44
"description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
55
"dependencies": {
66
"dateformat": "^1.0.12",

schemas/hostedcheckout/CreateHostedCheckoutRequest.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,9 @@
843843
"seller" : {
844844
"$ref" : "#/definitions/Seller"
845845
},
846+
"shipping" : {
847+
"$ref" : "#/definitions/Shipping"
848+
},
846849
"shoppingCart" : {
847850
"$ref" : "#/definitions/ShoppingCart"
848851
}
@@ -1120,6 +1123,15 @@
11201123
},
11211124
"additionalProperties" : false
11221125
},
1126+
"Shipping" : {
1127+
"type" : "object",
1128+
"properties" : {
1129+
"emailAddress" : {
1130+
"type" : "string"
1131+
}
1132+
},
1133+
"additionalProperties" : false
1134+
},
11231135
"ShoppingCart" : {
11241136
"type" : "object",
11251137
"properties" : {

schemas/payment/CompletePaymentRequest.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@
511511
"seller" : {
512512
"$ref" : "#/definitions/Seller"
513513
},
514+
"shipping" : {
515+
"$ref" : "#/definitions/Shipping"
516+
},
514517
"shoppingCart" : {
515518
"$ref" : "#/definitions/ShoppingCart"
516519
}
@@ -684,6 +687,15 @@
684687
"required" : [ "id", "name", "type" ],
685688
"additionalProperties" : false
686689
},
690+
"Shipping" : {
691+
"type" : "object",
692+
"properties" : {
693+
"emailAddress" : {
694+
"type" : "string"
695+
}
696+
},
697+
"additionalProperties" : false
698+
},
687699
"ShoppingCart" : {
688700
"type" : "object",
689701
"properties" : {

schemas/payment/CreatePaymentRequest.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,9 @@
10471047
"seller" : {
10481048
"$ref" : "#/definitions/Seller"
10491049
},
1050+
"shipping" : {
1051+
"$ref" : "#/definitions/Shipping"
1052+
},
10501053
"shoppingCart" : {
10511054
"$ref" : "#/definitions/ShoppingCart"
10521055
}
@@ -1369,6 +1372,15 @@
13691372
},
13701373
"additionalProperties" : false
13711374
},
1375+
"Shipping" : {
1376+
"type" : "object",
1377+
"properties" : {
1378+
"emailAddress" : {
1379+
"type" : "string"
1380+
}
1381+
},
1382+
"additionalProperties" : false
1383+
},
13721384
"ShoppingCart" : {
13731385
"type" : "object",
13741386
"properties" : {

services/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ modules['bankaccount'] = require('./bankaccount');
1111
// console.log(`Added bankaccount to module space`);
1212
modules['getIINdetails'] = require('./getIINdetails');
1313
// console.log(`Added getIINdetails to module space`);
14+
modules['privacypolicy'] = require('./privacypolicy');
15+
// console.log(`Added privacypolicy to module space`);
1416
modules['testconnection'] = require('./testconnection');
1517
// console.log(`Added testconnection to module space`);
1618

services/privacypolicy.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, paymentContext, cb) {
9+
communicator({
10+
method: 'GET',
11+
modulePath: '/v1/' + merchantId + '/services/privacypolicy',
12+
body: null,
13+
paymentContext: paymentContext,
14+
cb: cb
15+
});
16+
}
17+
18+
module.exports = myModule;

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.26.0',
12+
'sdkIdentifier': 'NodejsServerSDK/v2.27.0',
1313
'platformIdentifier': process.env['OS'] + ' Node.js/' + process.versions.node
1414
}
1515
};

0 commit comments

Comments
 (0)