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

Commit 9f16e2e

Browse files
IngenicoEPaymentsjenkins
authored andcommitted
Release 4.2.0.
1 parent 0597eb9 commit 9f16e2e

File tree

7 files changed

+7677
-68
lines changed

7 files changed

+7677
-68
lines changed

package-lock.json

Lines changed: 7649 additions & 0 deletions
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.1.0",
3+
"version": "4.2.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
@@ -874,6 +874,10 @@
874874
"frequencyOfInstallments" : {
875875
"type" : "string"
876876
},
877+
"installmentPlanCode" : {
878+
"type" : "integer",
879+
"maximum" : 2147483647
880+
},
877881
"interestRate" : {
878882
"type" : "string"
879883
},

schemas/payment/CompletePaymentRequest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,10 @@
575575
"frequencyOfInstallments" : {
576576
"type" : "string"
577577
},
578+
"installmentPlanCode" : {
579+
"type" : "integer",
580+
"maximum" : 2147483647
581+
},
578582
"interestRate" : {
579583
"type" : "string"
580584
},

schemas/payment/CreatePaymentRequest.json

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -541,15 +541,6 @@
541541
"paymentProduct1504SpecificInput" : {
542542
"$ref" : "#/definitions/CashPaymentProduct1504SpecificInput"
543543
},
544-
"paymentProduct1506SpecificInput" : {
545-
"$ref" : "#/definitions/CashPaymentProduct1506SpecificInput"
546-
},
547-
"paymentProduct1508SpecificInput" : {
548-
"$ref" : "#/definitions/CashPaymentProduct1508SpecificInput"
549-
},
550-
"paymentProduct1511SpecificInput" : {
551-
"$ref" : "#/definitions/CashPaymentProduct1511SpecificInput"
552-
},
553544
"paymentProduct1521SpecificInput" : {
554545
"$ref" : "#/definitions/CashPaymentProduct1521SpecificInput"
555546
},
@@ -590,33 +581,6 @@
590581
},
591582
"additionalProperties" : false
592583
},
593-
"CashPaymentProduct1506SpecificInput" : {
594-
"type" : "object",
595-
"properties" : {
596-
"returnUrl" : {
597-
"type" : "string"
598-
}
599-
},
600-
"additionalProperties" : false
601-
},
602-
"CashPaymentProduct1508SpecificInput" : {
603-
"type" : "object",
604-
"properties" : {
605-
"returnUrl" : {
606-
"type" : "string"
607-
}
608-
},
609-
"additionalProperties" : false
610-
},
611-
"CashPaymentProduct1511SpecificInput" : {
612-
"type" : "object",
613-
"properties" : {
614-
"returnUrl" : {
615-
"type" : "string"
616-
}
617-
},
618-
"additionalProperties" : false
619-
},
620584
"CashPaymentProduct1521SpecificInput" : {
621585
"type" : "object",
622586
"properties" : {
@@ -1126,6 +1090,10 @@
11261090
"frequencyOfInstallments" : {
11271091
"type" : "string"
11281092
},
1093+
"installmentPlanCode" : {
1094+
"type" : "integer",
1095+
"maximum" : 2147483647
1096+
},
11291097
"interestRate" : {
11301098
"type" : "string"
11311099
},

src/model/domain/payment/definitions/index.ts

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,6 @@ export interface CashPaymentMethodSpecificInput extends AbstractCashPaymentMetho
219219
*/
220220
paymentProduct1503SpecificInput?: CashPaymentProduct1503SpecificInput | null;
221221
paymentProduct1504SpecificInput?: CashPaymentProduct1504SpecificInput | null;
222-
paymentProduct1506SpecificInput?: CashPaymentProduct1506SpecificInput | null;
223-
paymentProduct1508SpecificInput?: CashPaymentProduct1508SpecificInput | null;
224-
paymentProduct1511SpecificInput?: CashPaymentProduct1511SpecificInput | null;
225222
paymentProduct1521SpecificInput?: CashPaymentProduct1521SpecificInput | null;
226223
paymentProduct1522SpecificInput?: CashPaymentProduct1522SpecificInput | null;
227224
paymentProduct1523SpecificInput?: CashPaymentProduct1523SpecificInput | null;
@@ -246,39 +243,25 @@ export interface CashPaymentProduct1503SpecificInput {
246243
returnUrl?: string | null;
247244
}
248245

249-
export interface CashPaymentProduct1504SpecificInput {
250-
returnUrl?: string | null;
251-
}
252-
253-
export interface CashPaymentProduct1506SpecificInput {
254-
returnUrl?: string | null;
255-
}
256-
257-
export interface CashPaymentProduct1508SpecificInput {
258-
returnUrl?: string | null;
259-
}
246+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
247+
export interface CashPaymentProduct1504SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {}
260248

261-
export interface CashPaymentProduct1511SpecificInput {
262-
returnUrl?: string | null;
263-
}
249+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
250+
export interface CashPaymentProduct1521SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {}
264251

265-
export interface CashPaymentProduct1521SpecificInput {
266-
returnUrl?: string | null;
267-
}
252+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
253+
export interface CashPaymentProduct1522SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {}
268254

269-
export interface CashPaymentProduct1522SpecificInput {
270-
returnUrl?: string | null;
271-
}
255+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
256+
export interface CashPaymentProduct1523SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {}
272257

273-
export interface CashPaymentProduct1523SpecificInput {
274-
returnUrl?: string | null;
275-
}
258+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
259+
export interface CashPaymentProduct1524SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {}
276260

277-
export interface CashPaymentProduct1524SpecificInput {
278-
returnUrl?: string | null;
279-
}
261+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
262+
export interface CashPaymentProduct1526SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {}
280263

281-
export interface CashPaymentProduct1526SpecificInput {
264+
export interface CashPaymentProductWithRedirectSpecificInputBase {
282265
returnUrl?: string | null;
283266
}
284267

@@ -445,6 +428,7 @@ export interface HostedCheckoutSpecificOutput {
445428
export interface Installments {
446429
amountOfMoneyPerInstallment?: AmountOfMoney | null;
447430
frequencyOfInstallments?: string | null;
431+
installmentPlanCode?: number | null;
448432
interestRate?: string | null;
449433
numberOfInstallments?: number | null;
450434
}

src/utils/headers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface ServerMetaInfo {
1818
export function serverMetaInfo(sdkContext: SdkContext): Header {
1919
const info: ServerMetaInfo = {
2020
sdkCreator: "Ingenico",
21-
sdkIdentifier: "NodejsServerSDK/v4.1.0",
21+
sdkIdentifier: "NodejsServerSDK/v4.2.0",
2222
platformIdentifier: process.env["OS"] + " Node.js/" + process.versions.node
2323
};
2424
if (sdkContext.getIntegrator() !== null) {

0 commit comments

Comments
 (0)