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

Commit 7dbdb2a

Browse files
Release 4.11.0.
1 parent 6f3497c commit 7dbdb2a

File tree

12 files changed

+38
-7
lines changed

12 files changed

+38
-7
lines changed

__tests__/config.json.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"port": 443
99
},
1010
"integrator": "INTEGRATOR",
11-
"enableLogging": false
11+
"enableLogging": false,
12+
"httpBinUrl": "http://httpbin.org"
1213
}

__tests__/integration/multipart.test.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
/* eslint-disable @typescript-eslint/no-non-null-assertion */
22

33
import { Readable } from "stream";
4+
import { URL } from "url";
45
import * as connectSdk from "../../src";
56
import * as communicator from "../../src/utils/communicator";
67

78
// eslint-disable-next-line @typescript-eslint/no-var-requires
89
const config = require("../config.json");
910

11+
const httpBinUrl = new URL(config.httpBinUrl || "http://httpbin.org");
12+
const scheme = httpBinUrl.protocol === "http:" ? "http" : "https";
13+
const port = httpBinUrl.port ? parseInt(httpBinUrl.port) : httpBinUrl.protocol === "http:" ? 80 : 443;
14+
1015
connectSdk.init({
11-
host: "httpbin.org",
12-
scheme: "http",
13-
port: 80,
16+
host: httpBinUrl.hostname,
17+
scheme,
18+
port,
1419
enableLogging: config.enableLogging, // defaults to false
1520
apiKeyId: config.apiKeyId,
1621
secretApiKey: config.secretApiKey,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "4.10.0",
3+
"version": "4.11.0",
44
"description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
55
"homepage": "https://github.com/Ingenico-ePayments/connect-sdk-nodejs#readme",
66
"bugs": {

schemas/hostedcheckout/CreateHostedCheckoutRequest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@
176176
"name" : {
177177
"type" : "string"
178178
},
179+
"numberInParty" : {
180+
"type" : "integer",
181+
"maximum" : 2147483647
182+
},
179183
"passengerName" : {
180184
"type" : "string"
181185
},

schemas/payment/ApprovePaymentRequest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
"name" : {
7575
"type" : "string"
7676
},
77+
"numberInParty" : {
78+
"type" : "integer",
79+
"maximum" : 2147483647
80+
},
7781
"passengerName" : {
7882
"type" : "string"
7983
},

schemas/payment/CompletePaymentRequest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@
152152
"name" : {
153153
"type" : "string"
154154
},
155+
"numberInParty" : {
156+
"type" : "integer",
157+
"maximum" : 2147483647
158+
},
155159
"passengerName" : {
156160
"type" : "string"
157161
},

schemas/payment/CreatePaymentRequest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@
182182
"name" : {
183183
"type" : "string"
184184
},
185+
"numberInParty" : {
186+
"type" : "integer",
187+
"maximum" : 2147483647
188+
},
185189
"passengerName" : {
186190
"type" : "string"
187191
},

schemas/riskassessments/RiskAssessmentBankAccount.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@
143143
"name" : {
144144
"type" : "string"
145145
},
146+
"numberInParty" : {
147+
"type" : "integer",
148+
"maximum" : 2147483647
149+
},
146150
"passengerName" : {
147151
"type" : "string"
148152
},

schemas/riskassessments/RiskAssessmentCard.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@
140140
"name" : {
141141
"type" : "string"
142142
},
143+
"numberInParty" : {
144+
"type" : "integer",
145+
"maximum" : 2147483647
146+
},
143147
"passengerName" : {
144148
"type" : "string"
145149
},

0 commit comments

Comments
 (0)