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

Commit f0aa0b2

Browse files
author
Ingenico ePayments
committed
Release 2.22.0.
1 parent a2b2006 commit f0aa0b2

File tree

10 files changed

+280
-2
lines changed

10 files changed

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

productgroups/deviceFingerprint.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 validate = require('jsonschema').validate;
7+
var communicator = require('../utils/communicator');
8+
var sdkcontext = require('../utils/context');
9+
var requestSchema = require('../schemas/product/DeviceFingerprintRequest.json');
10+
11+
var myModule = function (merchantId, paymentProductGroupId, postData, paymentContext, cb) {
12+
// validate postData
13+
var isValidRequest = validate(postData, requestSchema);
14+
if (!isValidRequest.valid) {
15+
var logger = sdkcontext.getLogger();
16+
if (sdkcontext.isLoggingEnabled()) {
17+
logger('error', isValidRequest.errors);
18+
}
19+
throw new Error(isValidRequest.errors);
20+
}
21+
communicator({
22+
method: 'POST',
23+
modulePath: '/v1/' + merchantId + '/productgroups/' + paymentProductGroupId + '/deviceFingerprint',
24+
body: postData,
25+
paymentContext: paymentContext,
26+
cb: cb
27+
});
28+
}
29+
30+
module.exports = myModule;

productgroups/index.js

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

1315
module.exports = modules;

schemas/hostedcheckout/CreateHostedCheckoutRequest.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,21 @@
190190
},
191191
"ticketNumber" : {
192192
"type" : "string"
193+
},
194+
"totalFare" : {
195+
"type" : "integer",
196+
"maximum" : 10000
197+
},
198+
"totalFee" : {
199+
"type" : "integer",
200+
"maximum" : 10000
201+
},
202+
"totalTaxes" : {
203+
"type" : "integer",
204+
"maximum" : 10000
205+
},
206+
"travelAgencyName" : {
207+
"type" : "string"
193208
}
194209
},
195210
"required" : [ "code", "name" ],
@@ -204,21 +219,40 @@
204219
"arrivalAirport" : {
205220
"type" : "string"
206221
},
222+
"arrivalTime" : {
223+
"type" : "string"
224+
},
207225
"carrierCode" : {
208226
"type" : "string"
209227
},
228+
"conjunctionTicket" : {
229+
"type" : "string"
230+
},
231+
"couponNumber" : {
232+
"type" : "string"
233+
},
210234
"date" : {
211235
"type" : "string"
212236
},
213237
"departureTime" : {
214238
"type" : "string"
215239
},
240+
"endorsementOrRestriction" : {
241+
"type" : "string"
242+
},
243+
"exchangeTicket" : {
244+
"type" : "string"
245+
},
216246
"fare" : {
217247
"type" : "string"
218248
},
219249
"fareBasis" : {
220250
"type" : "string"
221251
},
252+
"fee" : {
253+
"type" : "integer",
254+
"maximum" : 10000
255+
},
222256
"flightNumber" : {
223257
"type" : "string"
224258
},
@@ -229,11 +263,18 @@
229263
"originAirport" : {
230264
"type" : "string"
231265
},
266+
"passengerClass" : {
267+
"type" : "string"
268+
},
232269
"serviceClass" : {
233270
"type" : "string"
234271
},
235272
"stopoverCode" : {
236273
"type" : "string"
274+
},
275+
"taxes" : {
276+
"type" : "integer",
277+
"maximum" : 10000
237278
}
238279
},
239280
"required" : [ "airlineClass", "arrivalAirport", "carrierCode", "date", "number", "originAirport" ],

schemas/payment/ApprovePaymentRequest.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,21 @@
9999
},
100100
"ticketNumber" : {
101101
"type" : "string"
102+
},
103+
"totalFare" : {
104+
"type" : "integer",
105+
"maximum" : 10000
106+
},
107+
"totalFee" : {
108+
"type" : "integer",
109+
"maximum" : 10000
110+
},
111+
"totalTaxes" : {
112+
"type" : "integer",
113+
"maximum" : 10000
114+
},
115+
"travelAgencyName" : {
116+
"type" : "string"
102117
}
103118
},
104119
"required" : [ "code", "name" ],
@@ -113,21 +128,40 @@
113128
"arrivalAirport" : {
114129
"type" : "string"
115130
},
131+
"arrivalTime" : {
132+
"type" : "string"
133+
},
116134
"carrierCode" : {
117135
"type" : "string"
118136
},
137+
"conjunctionTicket" : {
138+
"type" : "string"
139+
},
140+
"couponNumber" : {
141+
"type" : "string"
142+
},
119143
"date" : {
120144
"type" : "string"
121145
},
122146
"departureTime" : {
123147
"type" : "string"
124148
},
149+
"endorsementOrRestriction" : {
150+
"type" : "string"
151+
},
152+
"exchangeTicket" : {
153+
"type" : "string"
154+
},
125155
"fare" : {
126156
"type" : "string"
127157
},
128158
"fareBasis" : {
129159
"type" : "string"
130160
},
161+
"fee" : {
162+
"type" : "integer",
163+
"maximum" : 10000
164+
},
131165
"flightNumber" : {
132166
"type" : "string"
133167
},
@@ -138,11 +172,18 @@
138172
"originAirport" : {
139173
"type" : "string"
140174
},
175+
"passengerClass" : {
176+
"type" : "string"
177+
},
141178
"serviceClass" : {
142179
"type" : "string"
143180
},
144181
"stopoverCode" : {
145182
"type" : "string"
183+
},
184+
"taxes" : {
185+
"type" : "integer",
186+
"maximum" : 10000
146187
}
147188
},
148189
"required" : [ "airlineClass", "arrivalAirport", "carrierCode", "date", "number", "originAirport" ],

schemas/payment/CompletePaymentRequest.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,21 @@
169169
},
170170
"ticketNumber" : {
171171
"type" : "string"
172+
},
173+
"totalFare" : {
174+
"type" : "integer",
175+
"maximum" : 10000
176+
},
177+
"totalFee" : {
178+
"type" : "integer",
179+
"maximum" : 10000
180+
},
181+
"totalTaxes" : {
182+
"type" : "integer",
183+
"maximum" : 10000
184+
},
185+
"travelAgencyName" : {
186+
"type" : "string"
172187
}
173188
},
174189
"required" : [ "code", "name" ],
@@ -183,21 +198,40 @@
183198
"arrivalAirport" : {
184199
"type" : "string"
185200
},
201+
"arrivalTime" : {
202+
"type" : "string"
203+
},
186204
"carrierCode" : {
187205
"type" : "string"
188206
},
207+
"conjunctionTicket" : {
208+
"type" : "string"
209+
},
210+
"couponNumber" : {
211+
"type" : "string"
212+
},
189213
"date" : {
190214
"type" : "string"
191215
},
192216
"departureTime" : {
193217
"type" : "string"
194218
},
219+
"endorsementOrRestriction" : {
220+
"type" : "string"
221+
},
222+
"exchangeTicket" : {
223+
"type" : "string"
224+
},
195225
"fare" : {
196226
"type" : "string"
197227
},
198228
"fareBasis" : {
199229
"type" : "string"
200230
},
231+
"fee" : {
232+
"type" : "integer",
233+
"maximum" : 10000
234+
},
201235
"flightNumber" : {
202236
"type" : "string"
203237
},
@@ -208,11 +242,18 @@
208242
"originAirport" : {
209243
"type" : "string"
210244
},
245+
"passengerClass" : {
246+
"type" : "string"
247+
},
211248
"serviceClass" : {
212249
"type" : "string"
213250
},
214251
"stopoverCode" : {
215252
"type" : "string"
253+
},
254+
"taxes" : {
255+
"type" : "integer",
256+
"maximum" : 10000
216257
}
217258
},
218259
"required" : [ "airlineClass", "arrivalAirport", "carrierCode", "date", "number", "originAirport" ],

schemas/payment/CreatePaymentRequest.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,21 @@
199199
},
200200
"ticketNumber" : {
201201
"type" : "string"
202+
},
203+
"totalFare" : {
204+
"type" : "integer",
205+
"maximum" : 10000
206+
},
207+
"totalFee" : {
208+
"type" : "integer",
209+
"maximum" : 10000
210+
},
211+
"totalTaxes" : {
212+
"type" : "integer",
213+
"maximum" : 10000
214+
},
215+
"travelAgencyName" : {
216+
"type" : "string"
202217
}
203218
},
204219
"required" : [ "code", "name" ],
@@ -213,21 +228,40 @@
213228
"arrivalAirport" : {
214229
"type" : "string"
215230
},
231+
"arrivalTime" : {
232+
"type" : "string"
233+
},
216234
"carrierCode" : {
217235
"type" : "string"
218236
},
237+
"conjunctionTicket" : {
238+
"type" : "string"
239+
},
240+
"couponNumber" : {
241+
"type" : "string"
242+
},
219243
"date" : {
220244
"type" : "string"
221245
},
222246
"departureTime" : {
223247
"type" : "string"
224248
},
249+
"endorsementOrRestriction" : {
250+
"type" : "string"
251+
},
252+
"exchangeTicket" : {
253+
"type" : "string"
254+
},
225255
"fare" : {
226256
"type" : "string"
227257
},
228258
"fareBasis" : {
229259
"type" : "string"
230260
},
261+
"fee" : {
262+
"type" : "integer",
263+
"maximum" : 10000
264+
},
231265
"flightNumber" : {
232266
"type" : "string"
233267
},
@@ -238,11 +272,18 @@
238272
"originAirport" : {
239273
"type" : "string"
240274
},
275+
"passengerClass" : {
276+
"type" : "string"
277+
},
241278
"serviceClass" : {
242279
"type" : "string"
243280
},
244281
"stopoverCode" : {
245282
"type" : "string"
283+
},
284+
"taxes" : {
285+
"type" : "integer",
286+
"maximum" : 10000
246287
}
247288
},
248289
"required" : [ "airlineClass", "arrivalAirport", "carrierCode", "date", "number", "originAirport" ],

0 commit comments

Comments
 (0)