diff --git a/package-lock.json b/package-lock.json index 2146877..ba4cd76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "connect-sdk-nodejs", - "version": "4.16.0", + "version": "4.17.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 704387d..4c210e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "connect-sdk-nodejs", - "version": "4.16.0", + "version": "4.17.0", "description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API", "homepage": "https://github.com/Ingenico-ePayments/connect-sdk-nodejs#readme", "bugs": { diff --git a/schemas/hostedcheckout/CreateHostedCheckoutRequest.json b/schemas/hostedcheckout/CreateHostedCheckoutRequest.json index 19c4300..2f27912 100644 --- a/schemas/hostedcheckout/CreateHostedCheckoutRequest.json +++ b/schemas/hostedcheckout/CreateHostedCheckoutRequest.json @@ -1657,9 +1657,6 @@ "SdkDataInput" : { "type" : "object", "properties" : { - "deviceInfo" : { - "type" : "string" - }, "deviceRenderOptions" : { "$ref" : "#/definitions/DeviceRenderOptions" }, diff --git a/schemas/payment/CreatePaymentRequest.json b/schemas/payment/CreatePaymentRequest.json index 12c86f2..110ddd4 100644 --- a/schemas/payment/CreatePaymentRequest.json +++ b/schemas/payment/CreatePaymentRequest.json @@ -2001,9 +2001,6 @@ "SdkDataInput" : { "type" : "object", "properties" : { - "deviceInfo" : { - "type" : "string" - }, "deviceRenderOptions" : { "$ref" : "#/definitions/DeviceRenderOptions" }, diff --git a/src/model/domain/definitions/index.ts b/src/model/domain/definitions/index.ts index 0f0e13a..5dbf9a1 100644 --- a/src/model/domain/definitions/index.ts +++ b/src/model/domain/definitions/index.ts @@ -129,7 +129,6 @@ export interface CardFraudResults extends FraudResults { avsResult?: string | null; cvvResult?: string | null; fraugster?: FraugsterResults | null; - microsoftFraudProtection?: MicrosoftFraudResults | null; retailDecisions?: FraudResultsRetailDecisions | null; } @@ -234,6 +233,7 @@ export interface FraudFieldsShippingDetails { export interface FraudResults { fraudServiceResult?: string | null; inAuth?: InAuth | null; + microsoftFraudProtection?: MicrosoftFraudResults | null; } export interface FraudResultsRetailDecisions { diff --git a/src/model/domain/payment/definitions/index.ts b/src/model/domain/payment/definitions/index.ts index e58fd93..bf74320 100644 --- a/src/model/domain/payment/definitions/index.ts +++ b/src/model/domain/payment/definitions/index.ts @@ -395,6 +395,7 @@ export interface EInvoicePaymentMethodSpecificInput extends AbstractEInvoicePaym export interface EInvoicePaymentMethodSpecificInputBase extends AbstractEInvoicePaymentMethodSpecificInput {} export interface EInvoicePaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput { + fraudResults?: FraudResults | null; paymentProduct9000SpecificOutput?: EInvoicePaymentProduct9000SpecificOutput | null; } @@ -963,10 +964,6 @@ export interface SchemeTokenData { } export interface SdkDataInput { - /** - * @deprecated No replacement - */ - deviceInfo?: string | null; deviceRenderOptions?: DeviceRenderOptions | null; sdkAppId?: string | null; sdkEncryptedData?: string | null; diff --git a/src/model/domain/product/definitions/index.ts b/src/model/domain/product/definitions/index.ts index f19663b..f2e3a96 100644 --- a/src/model/domain/product/definitions/index.ts +++ b/src/model/domain/product/definitions/index.ts @@ -81,6 +81,7 @@ export interface PaymentProduct { fields?: PaymentProductField[] | null; fieldsWarning?: string | null; id?: number | null; + isAuthenticationSupported?: boolean | null; isJavaScriptRequired?: boolean | null; maxAmount?: number | null; minAmount?: number | null; diff --git a/src/utils/headers.ts b/src/utils/headers.ts index eb12e47..0cbb76c 100644 --- a/src/utils/headers.ts +++ b/src/utils/headers.ts @@ -18,7 +18,7 @@ interface ServerMetaInfo { export function serverMetaInfo(sdkContext: SdkContext): Header { const info: ServerMetaInfo = { sdkCreator: "Ingenico", - sdkIdentifier: "NodejsServerSDK/v4.16.0", + sdkIdentifier: "NodejsServerSDK/v4.17.0", platformIdentifier: process.env["OS"] + " Node.js/" + process.versions.node }; if (sdkContext.getIntegrator() !== null) {