connect-sdk-nodejs
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "connect-sdk-nodejs", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "SDK to communicate with the GlobalCollect platform using the Ingenico Connect Server API", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -225,2 +225,16 @@ { | ||
}, | ||
"AmountBreakdown" : { | ||
"type" : "object", | ||
"properties" : { | ||
"amount" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"type" : { | ||
"type" : "string" | ||
} | ||
}, | ||
"required" : [ "amount", "type" ], | ||
"additionalProperties" : false | ||
}, | ||
"AmountOfMoney" : { | ||
@@ -460,2 +474,5 @@ "type" : "object", | ||
"$ref" : "#/definitions/LineItemLevel3InterchangeInformation" | ||
}, | ||
"orderLineDetails" : { | ||
"$ref" : "#/definitions/OrderLineDetails" | ||
} | ||
@@ -545,2 +562,5 @@ }, | ||
"$ref" : "#/definitions/OrderReferences" | ||
}, | ||
"shoppingCart" : { | ||
"$ref" : "#/definitions/ShoppingCart" | ||
} | ||
@@ -574,2 +594,37 @@ }, | ||
}, | ||
"OrderLineDetails" : { | ||
"type" : "object", | ||
"properties" : { | ||
"discountAmount" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"lineAmountTotal" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"productCode" : { | ||
"type" : "string" | ||
}, | ||
"productPrice" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"productType" : { | ||
"type" : "string" | ||
}, | ||
"quantity" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"taxAmount" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"unit" : { | ||
"type" : "string" | ||
} | ||
}, | ||
"additionalProperties" : false | ||
}, | ||
"OrderReferences" : { | ||
@@ -680,2 +735,6 @@ "type" : "object", | ||
"properties" : { | ||
"expirationPeriod" : { | ||
"type" : "integer", | ||
"maximum" : 60 | ||
}, | ||
"paymentProductId" : { | ||
@@ -693,4 +752,18 @@ "type" : "integer", | ||
"additionalProperties" : false | ||
}, | ||
"ShoppingCart" : { | ||
"type" : "object", | ||
"properties" : { | ||
"amountBreakdown" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/definitions/AmountBreakdown" | ||
}, | ||
"minItems" : 0, | ||
"uniqueItems" : false | ||
} | ||
}, | ||
"additionalProperties" : false | ||
} | ||
} | ||
} |
@@ -237,2 +237,16 @@ { | ||
}, | ||
"AmountBreakdown" : { | ||
"type" : "object", | ||
"properties" : { | ||
"amount" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"type" : { | ||
"type" : "string" | ||
} | ||
}, | ||
"required" : [ "amount", "type" ], | ||
"additionalProperties" : false | ||
}, | ||
"AmountOfMoney" : { | ||
@@ -600,2 +614,5 @@ "type" : "object", | ||
"$ref" : "#/definitions/LineItemLevel3InterchangeInformation" | ||
}, | ||
"orderLineDetails" : { | ||
"$ref" : "#/definitions/OrderLineDetails" | ||
} | ||
@@ -773,2 +790,5 @@ }, | ||
"$ref" : "#/definitions/OrderReferences" | ||
}, | ||
"shoppingCart" : { | ||
"$ref" : "#/definitions/ShoppingCart" | ||
} | ||
@@ -802,2 +822,37 @@ }, | ||
}, | ||
"OrderLineDetails" : { | ||
"type" : "object", | ||
"properties" : { | ||
"discountAmount" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"lineAmountTotal" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"productCode" : { | ||
"type" : "string" | ||
}, | ||
"productPrice" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"productType" : { | ||
"type" : "string" | ||
}, | ||
"quantity" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"taxAmount" : { | ||
"type" : "integer", | ||
"maximum" : 9223372036854775807 | ||
}, | ||
"unit" : { | ||
"type" : "string" | ||
} | ||
}, | ||
"additionalProperties" : false | ||
}, | ||
"OrderReferences" : { | ||
@@ -870,2 +925,6 @@ "type" : "object", | ||
"properties" : { | ||
"expirationPeriod" : { | ||
"type" : "integer", | ||
"maximum" : 60 | ||
}, | ||
"isRecurring" : { | ||
@@ -958,4 +1017,18 @@ "type" : "boolean" | ||
"additionalProperties" : false | ||
}, | ||
"ShoppingCart" : { | ||
"type" : "object", | ||
"properties" : { | ||
"amountBreakdown" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/definitions/AmountBreakdown" | ||
}, | ||
"minItems" : 0, | ||
"uniqueItems" : false | ||
} | ||
}, | ||
"additionalProperties" : false | ||
} | ||
} | ||
} |
@@ -12,3 +12,3 @@ var dateformat = require('dateformat'); | ||
'sdkCreator': 'Ingenico', | ||
'sdkIdentifier': 'NodejsServerSDK/v2.2.0', | ||
'sdkIdentifier': 'NodejsServerSDK/v2.3.0', | ||
'platformIdentifier': process.env['OS'] + ' Node.js/' + process.versions.node | ||
@@ -15,0 +15,0 @@ } |
@@ -71,28 +71,28 @@ var traverse = require('traverse'); | ||
obfuscated = withKeepEndCount(obfuscated, "cardNumber", 4); | ||
obfuscated = withKeepEndCount(obfuscated, "expiryDate", 2); | ||
obfuscated = withAll(obfuscated, "cvv"); | ||
obfuscated = withKeepEndCount(obfuscated, "iban", 4); | ||
obfuscated = withKeepEndCount(obfuscated, "accountNumber", 4); | ||
obfuscated = withKeepEndCount(obfuscated, "reformattedAccountNumber", 4); | ||
obfuscated = withKeepStartCount(obfuscated, "bin", 6); | ||
// key-value pairs can contain any value, like credit card numbers or other private data; mask all values | ||
obfuscated = withAll(obfuscated, "value"); | ||
obfuscated = withFixedLength(obfuscated, "keyId", 8); | ||
obfuscated = withFixedLength(obfuscated, "secretKey", 8); | ||
obfuscated = withFixedLength(obfuscated, "publicKey", 8); | ||
obfuscated = withFixedLength(obfuscated, "userAuthenticationToken", 8); | ||
// encrypted payload is a base64 string that contains an encrypted value; to make decrypting even harder, just mask the entire thing | ||
obfuscated = withFixedLength(obfuscated, "encryptedPayload", 8); | ||
// decrypted payload is a simple base64 string that may contain credit card numbers or other private data; just mask the entire thing | ||
obfuscated = withFixedLength(obfuscated, "decryptedPayload", 8); | ||
// encrypted customer input is similar to encrypted payload | ||
obfuscated = withFixedLength(obfuscated, "encryptedCustomerInput", 8); | ||
obfuscated = withKeepEndCount(obfuscated, "expiryDate", 2); | ||
obfuscated = withAll(obfuscated, "cvv"); | ||
obfuscated = withKeepEndCount(obfuscated, "iban", 4); | ||
obfuscated = withKeepEndCount(obfuscated, "accountNumber", 4); | ||
obfuscated = withKeepEndCount(obfuscated, "reformattedAccountNumber", 4); | ||
obfuscated = withKeepStartCount(obfuscated, "bin", 6); | ||
// key-value pairs can contain any value, like credit card numbers or other private data; mask all values | ||
obfuscated = withAll(obfuscated, "value"); | ||
obfuscated = withFixedLength(obfuscated, "keyId", 8); | ||
obfuscated = withFixedLength(obfuscated, "secretKey", 8); | ||
obfuscated = withFixedLength(obfuscated, "publicKey", 8); | ||
obfuscated = withFixedLength(obfuscated, "userAuthenticationToken", 8); | ||
// encrypted payload is a base64 string that contains an encrypted value; to make decrypting even harder, just mask the entire thing | ||
obfuscated = withFixedLength(obfuscated, "encryptedPayload", 8); | ||
// decrypted payload is a simple base64 string that may contain credit card numbers or other private data; just mask the entire thing | ||
obfuscated = withFixedLength(obfuscated, "decryptedPayload", 8); | ||
// encrypted customer input is similar to encrypted payload | ||
obfuscated = withFixedLength(obfuscated, "encryptedCustomerInput", 8); | ||
// headers | ||
obfuscated = withFixedLength(obfuscated, "Authorization", 8); | ||
obfuscated = withFixedLength(obfuscated, "WWW-Authenticate", 8); | ||
obfuscated = withFixedLength(obfuscated, "Proxy-Authenticate", 8); | ||
obfuscated = withFixedLength(obfuscated, "Proxy-Authorization", 8); | ||
obfuscated = withFixedLength(obfuscated, "X-GCS-Authentication-Token", 8); | ||
obfuscated = withFixedLength(obfuscated, "X-GCS-CallerPassword", 8); | ||
obfuscated = withFixedLength(obfuscated, "WWW-Authenticate", 8); | ||
obfuscated = withFixedLength(obfuscated, "Proxy-Authenticate", 8); | ||
obfuscated = withFixedLength(obfuscated, "Proxy-Authorization", 8); | ||
obfuscated = withFixedLength(obfuscated, "X-GCS-Authentication-Token", 8); | ||
obfuscated = withFixedLength(obfuscated, "X-GCS-CallerPassword", 8); | ||
@@ -99,0 +99,0 @@ return JSON.stringify(obfuscated, null, INDENT); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152130
5465