connect-sdk-nodejs 4.4.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/model/domain/definitions/index.d.ts +7 -1
- package/lib/model/domain/payment/definitions/index.d.ts +8 -0
- package/lib/model/index.js +1 -1
- package/lib/utils/headers.js +1 -1
- package/package.json +4 -4
- package/schemas/hostedcheckout/CreateHostedCheckoutRequest.json +15 -0
- package/schemas/payment/CompletePaymentRequest.json +3 -0
- package/schemas/payment/CreatePaymentRequest.json +6 -0
|
@@ -103,6 +103,7 @@ export interface Card extends CardWithoutCvv {
|
|
|
103
103
|
}
|
|
104
104
|
export interface CardEssentials {
|
|
105
105
|
cardNumber?: string | null;
|
|
106
|
+
cardholderName?: string | null;
|
|
106
107
|
expiryDate?: string | null;
|
|
107
108
|
}
|
|
108
109
|
export interface CardFraudResults extends FraudResults {
|
|
@@ -113,7 +114,6 @@ export interface CardFraudResults extends FraudResults {
|
|
|
113
114
|
retailDecisions?: FraudResultsRetailDecisions | null;
|
|
114
115
|
}
|
|
115
116
|
export interface CardWithoutCvv extends CardEssentials {
|
|
116
|
-
cardholderName?: string | null;
|
|
117
117
|
issueNumber?: string | null;
|
|
118
118
|
}
|
|
119
119
|
export interface CompanyInformation {
|
|
@@ -264,7 +264,13 @@ export interface LodgingRoom {
|
|
|
264
264
|
typeOfRoom?: string | null;
|
|
265
265
|
}
|
|
266
266
|
export interface MicrosoftFraudResults {
|
|
267
|
+
clauseName?: string | null;
|
|
268
|
+
deviceCountryCode?: string | null;
|
|
269
|
+
deviceId?: string | null;
|
|
267
270
|
fraudScore?: number | null;
|
|
271
|
+
policyApplied?: string | null;
|
|
272
|
+
trueIpAddress?: string | null;
|
|
273
|
+
userDeviceType?: string | null;
|
|
268
274
|
}
|
|
269
275
|
export interface OrderStatusOutput {
|
|
270
276
|
errors?: APIError[] | null;
|
|
@@ -44,6 +44,8 @@ export interface AbstractRedirectPaymentMethodSpecificInput extends AbstractPaym
|
|
|
44
44
|
token?: string | null;
|
|
45
45
|
tokenize?: boolean | null;
|
|
46
46
|
}
|
|
47
|
+
export interface AbstractRedirectPaymentProduct4101SpecificInput {
|
|
48
|
+
}
|
|
47
49
|
export interface AbstractRedirectPaymentProduct840SpecificInput {
|
|
48
50
|
addressSelectionAtPayPal?: boolean | null;
|
|
49
51
|
}
|
|
@@ -402,6 +404,7 @@ export interface LoanRecipient {
|
|
|
402
404
|
zip?: string | null;
|
|
403
405
|
}
|
|
404
406
|
export interface Merchant {
|
|
407
|
+
configurationId?: string | null;
|
|
405
408
|
contactWebsiteUrl?: string | null;
|
|
406
409
|
seller?: Seller | null;
|
|
407
410
|
websiteUrl?: string | null;
|
|
@@ -436,6 +439,7 @@ export interface MobilePaymentMethodSpecificOutput extends AbstractPaymentMethod
|
|
|
436
439
|
threeDSecureResults?: ThreeDSecureResults | null;
|
|
437
440
|
}
|
|
438
441
|
export interface MobilePaymentProduct320SpecificInput {
|
|
442
|
+
cardholderName?: string | null;
|
|
439
443
|
threeDSecure?: GPayThreeDSecure | null;
|
|
440
444
|
}
|
|
441
445
|
export interface MobileThreeDSecureChallengeParameters {
|
|
@@ -643,6 +647,7 @@ export interface RedirectPaymentMethodSpecificInput extends AbstractRedirectPaym
|
|
|
643
647
|
returnUrl?: string | null;
|
|
644
648
|
}
|
|
645
649
|
export interface RedirectPaymentMethodSpecificInputBase extends AbstractRedirectPaymentMethodSpecificInput {
|
|
650
|
+
paymentProduct4101SpecificInput?: RedirectPaymentProduct4101SpecificInputBase | null;
|
|
646
651
|
paymentProduct840SpecificInput?: RedirectPaymentProduct840SpecificInputBase | null;
|
|
647
652
|
}
|
|
648
653
|
export interface RedirectPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
|
|
@@ -661,6 +666,9 @@ export interface RedirectPaymentProduct4101SpecificInput {
|
|
|
661
666
|
integrationType?: string | null;
|
|
662
667
|
virtualPaymentAddress?: string | null;
|
|
663
668
|
}
|
|
669
|
+
export interface RedirectPaymentProduct4101SpecificInputBase extends AbstractRedirectPaymentProduct4101SpecificInput {
|
|
670
|
+
displayName?: string | null;
|
|
671
|
+
}
|
|
664
672
|
export interface RedirectPaymentProduct809SpecificInput {
|
|
665
673
|
/**
|
|
666
674
|
* @deprecated Use RedirectPaymentMethodSpecificInput.expirationPeriod instead
|
package/lib/model/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
7
7
|
o[k2] = m[k];
|
|
8
8
|
}));
|
|
9
9
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./types"), exports);
|
package/lib/utils/headers.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.date = date;
|
|
|
9
9
|
function serverMetaInfo(sdkContext) {
|
|
10
10
|
const info = {
|
|
11
11
|
sdkCreator: "Ingenico",
|
|
12
|
-
sdkIdentifier: "NodejsServerSDK/v4.
|
|
12
|
+
sdkIdentifier: "NodejsServerSDK/v4.6.0",
|
|
13
13
|
platformIdentifier: process.env["OS"] + " Node.js/" + process.versions.node
|
|
14
14
|
};
|
|
15
15
|
if (sdkContext.getIntegrator() !== null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connect-sdk-nodejs",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
|
|
5
5
|
"homepage": "https://github.com/Ingenico-ePayments/connect-sdk-nodejs#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"lint": "eslint ./src --ext .ts",
|
|
24
24
|
"format": "prettier --write \"**/*.+(json|ts|tsx)\"",
|
|
25
25
|
"format:check": "prettier --check \"**/*.+(json|ts|tsx)\"",
|
|
26
|
-
"typedoc": "typedoc
|
|
26
|
+
"typedoc": "typedoc",
|
|
27
27
|
"build": "npm run format:check && npm run lint && npm run compile",
|
|
28
28
|
"test": "jest",
|
|
29
29
|
"test:unit": "jest --group=unit",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"prettier": "^1.19.1",
|
|
62
62
|
"supertest": "^6.1.3",
|
|
63
63
|
"ts-jest": "^25.5.1",
|
|
64
|
-
"typedoc": "^0.
|
|
65
|
-
"typescript": "^
|
|
64
|
+
"typedoc": "^0.22.18",
|
|
65
|
+
"typescript": "^4.0.8"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">=8"
|
|
@@ -1197,6 +1197,9 @@
|
|
|
1197
1197
|
"Merchant" : {
|
|
1198
1198
|
"type" : "object",
|
|
1199
1199
|
"properties" : {
|
|
1200
|
+
"configurationId" : {
|
|
1201
|
+
"type" : "string"
|
|
1202
|
+
},
|
|
1200
1203
|
"contactWebsiteUrl" : {
|
|
1201
1204
|
"type" : "string"
|
|
1202
1205
|
},
|
|
@@ -1492,6 +1495,9 @@
|
|
|
1492
1495
|
"type" : "integer",
|
|
1493
1496
|
"maximum" : 60
|
|
1494
1497
|
},
|
|
1498
|
+
"paymentProduct4101SpecificInput" : {
|
|
1499
|
+
"$ref" : "#/definitions/RedirectPaymentProduct4101SpecificInputBase"
|
|
1500
|
+
},
|
|
1495
1501
|
"paymentProduct840SpecificInput" : {
|
|
1496
1502
|
"$ref" : "#/definitions/RedirectPaymentProduct840SpecificInputBase"
|
|
1497
1503
|
},
|
|
@@ -1514,6 +1520,15 @@
|
|
|
1514
1520
|
},
|
|
1515
1521
|
"additionalProperties" : false
|
|
1516
1522
|
},
|
|
1523
|
+
"RedirectPaymentProduct4101SpecificInputBase" : {
|
|
1524
|
+
"type" : "object",
|
|
1525
|
+
"properties" : {
|
|
1526
|
+
"displayName" : {
|
|
1527
|
+
"type" : "string"
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
"additionalProperties" : false
|
|
1531
|
+
},
|
|
1517
1532
|
"RedirectPaymentProduct840SpecificInputBase" : {
|
|
1518
1533
|
"type" : "object",
|
|
1519
1534
|
"properties" : {
|
|
@@ -1426,6 +1426,9 @@
|
|
|
1426
1426
|
"Merchant" : {
|
|
1427
1427
|
"type" : "object",
|
|
1428
1428
|
"properties" : {
|
|
1429
|
+
"configurationId" : {
|
|
1430
|
+
"type" : "string"
|
|
1431
|
+
},
|
|
1429
1432
|
"contactWebsiteUrl" : {
|
|
1430
1433
|
"type" : "string"
|
|
1431
1434
|
},
|
|
@@ -1472,6 +1475,9 @@
|
|
|
1472
1475
|
"MobilePaymentProduct320SpecificInput" : {
|
|
1473
1476
|
"type" : "object",
|
|
1474
1477
|
"properties" : {
|
|
1478
|
+
"cardholderName" : {
|
|
1479
|
+
"type" : "string"
|
|
1480
|
+
},
|
|
1475
1481
|
"threeDSecure" : {
|
|
1476
1482
|
"$ref" : "#/definitions/GPayThreeDSecure"
|
|
1477
1483
|
}
|