connect-sdk-nodejs 5.1.0 → 5.2.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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Worldline Connect Node.js SDK
|
|
2
2
|
|
|
3
3
|
## Introduction
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ This repository consists out of three main components:
|
|
|
22
22
|
|
|
23
23
|
## Requirements
|
|
24
24
|
|
|
25
|
-
Node.js
|
|
25
|
+
Node.js 12 or higher is required.
|
|
26
26
|
|
|
27
27
|
## Installation
|
|
28
28
|
|
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: "Worldline",
|
|
12
|
-
sdkIdentifier: "NodejsServerSDK/v5.
|
|
12
|
+
sdkIdentifier: "NodejsServerSDK/v5.2.0",
|
|
13
13
|
platformIdentifier: process.env["OS"] + " Node.js/" + process.versions.node,
|
|
14
14
|
integrator: sdkContext.getIntegrator()
|
|
15
15
|
};
|
|
@@ -412,6 +412,7 @@ export interface CardPaymentMethodSpecificOutput extends AbstractPaymentMethodSp
|
|
|
412
412
|
card?: CardEssentials | null;
|
|
413
413
|
fraudResults?: CardFraudResults | null;
|
|
414
414
|
initialSchemeTransactionId?: string | null;
|
|
415
|
+
networkTokenUsed?: boolean | null;
|
|
415
416
|
schemeTransactionId?: string | null;
|
|
416
417
|
threeDSecureResults?: ThreeDSecureResults | null;
|
|
417
418
|
token?: string | null;
|
|
@@ -1448,6 +1449,7 @@ export interface OrderLineDetails {
|
|
|
1448
1449
|
discountAmount?: number | null;
|
|
1449
1450
|
googleProductCategoryId?: number | null;
|
|
1450
1451
|
lineAmountTotal?: number | null;
|
|
1452
|
+
naicsCommodityCode?: string | null;
|
|
1451
1453
|
productCategory?: string | null;
|
|
1452
1454
|
productCode?: string | null;
|
|
1453
1455
|
productName?: string | null;
|
|
@@ -2070,6 +2072,7 @@ export interface Shipping {
|
|
|
2070
2072
|
emailAddress?: string | null;
|
|
2071
2073
|
firstUsageDate?: string | null;
|
|
2072
2074
|
isFirstUsage?: boolean | null;
|
|
2075
|
+
shippedFromZip?: string | null;
|
|
2073
2076
|
trackingNumber?: string | null;
|
|
2074
2077
|
type?: string | null;
|
|
2075
2078
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connect-sdk-nodejs",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API",
|
|
5
5
|
"homepage": "https://github.com/Worldline-Global-Collect/connect-sdk-nodejs#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@typescript-eslint/parser": "^2.34.0",
|
|
53
53
|
"body-parser": "^1.20.2",
|
|
54
54
|
"eslint": "^7.32.0",
|
|
55
|
-
"express": "^4.
|
|
55
|
+
"express": "^4.19.2",
|
|
56
56
|
"husky": "^4.3.8",
|
|
57
57
|
"jest": "^28.1.3",
|
|
58
58
|
"jest-junit": "^16.0.0",
|
|
@@ -960,6 +960,9 @@
|
|
|
960
960
|
"type" : "integer",
|
|
961
961
|
"maximum" : 9223372036854775807
|
|
962
962
|
},
|
|
963
|
+
"naicsCommodityCode" : {
|
|
964
|
+
"type" : "string"
|
|
965
|
+
},
|
|
963
966
|
"productCategory" : {
|
|
964
967
|
"type" : "string"
|
|
965
968
|
},
|
|
@@ -1163,6 +1166,9 @@
|
|
|
1163
1166
|
"isFirstUsage" : {
|
|
1164
1167
|
"type" : "boolean"
|
|
1165
1168
|
},
|
|
1169
|
+
"shippedFromZip" : {
|
|
1170
|
+
"type" : "string"
|
|
1171
|
+
},
|
|
1166
1172
|
"trackingNumber" : {
|
|
1167
1173
|
"type" : "string"
|
|
1168
1174
|
},
|
|
@@ -1405,6 +1405,9 @@
|
|
|
1405
1405
|
"type" : "integer",
|
|
1406
1406
|
"maximum" : 9223372036854775807
|
|
1407
1407
|
},
|
|
1408
|
+
"naicsCommodityCode" : {
|
|
1409
|
+
"type" : "string"
|
|
1410
|
+
},
|
|
1408
1411
|
"productCategory" : {
|
|
1409
1412
|
"type" : "string"
|
|
1410
1413
|
},
|
|
@@ -1775,6 +1778,9 @@
|
|
|
1775
1778
|
"isFirstUsage" : {
|
|
1776
1779
|
"type" : "boolean"
|
|
1777
1780
|
},
|
|
1781
|
+
"shippedFromZip" : {
|
|
1782
|
+
"type" : "string"
|
|
1783
|
+
},
|
|
1778
1784
|
"trackingNumber" : {
|
|
1779
1785
|
"type" : "string"
|
|
1780
1786
|
},
|
|
@@ -1673,6 +1673,9 @@
|
|
|
1673
1673
|
"type" : "integer",
|
|
1674
1674
|
"maximum" : 9223372036854775807
|
|
1675
1675
|
},
|
|
1676
|
+
"naicsCommodityCode" : {
|
|
1677
|
+
"type" : "string"
|
|
1678
|
+
},
|
|
1676
1679
|
"productCategory" : {
|
|
1677
1680
|
"type" : "string"
|
|
1678
1681
|
},
|
|
@@ -2140,6 +2143,9 @@
|
|
|
2140
2143
|
"isFirstUsage" : {
|
|
2141
2144
|
"type" : "boolean"
|
|
2142
2145
|
},
|
|
2146
|
+
"shippedFromZip" : {
|
|
2147
|
+
"type" : "string"
|
|
2148
|
+
},
|
|
2143
2149
|
"trackingNumber" : {
|
|
2144
2150
|
"type" : "string"
|
|
2145
2151
|
},
|