connect-sdk-nodejs 4.1.0 → 4.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/lib/model/domain/payment/definitions/index.d.ts +8 -22
- package/lib/utils/headers.js +1 -1
- package/package.json +1 -1
- package/schemas/hostedcheckout/CreateHostedCheckoutRequest.json +4 -0
- package/schemas/payment/CompletePaymentRequest.json +4 -0
- package/schemas/payment/CreatePaymentRequest.json +4 -36
|
@@ -164,9 +164,6 @@ export interface CashPaymentMethodSpecificInput extends AbstractCashPaymentMetho
|
|
|
164
164
|
*/
|
|
165
165
|
paymentProduct1503SpecificInput?: CashPaymentProduct1503SpecificInput | null;
|
|
166
166
|
paymentProduct1504SpecificInput?: CashPaymentProduct1504SpecificInput | null;
|
|
167
|
-
paymentProduct1506SpecificInput?: CashPaymentProduct1506SpecificInput | null;
|
|
168
|
-
paymentProduct1508SpecificInput?: CashPaymentProduct1508SpecificInput | null;
|
|
169
|
-
paymentProduct1511SpecificInput?: CashPaymentProduct1511SpecificInput | null;
|
|
170
167
|
paymentProduct1521SpecificInput?: CashPaymentProduct1521SpecificInput | null;
|
|
171
168
|
paymentProduct1522SpecificInput?: CashPaymentProduct1522SpecificInput | null;
|
|
172
169
|
paymentProduct1523SpecificInput?: CashPaymentProduct1523SpecificInput | null;
|
|
@@ -187,31 +184,19 @@ export interface CashPaymentProduct1503SpecificInput {
|
|
|
187
184
|
*/
|
|
188
185
|
returnUrl?: string | null;
|
|
189
186
|
}
|
|
190
|
-
export interface CashPaymentProduct1504SpecificInput {
|
|
191
|
-
returnUrl?: string | null;
|
|
192
|
-
}
|
|
193
|
-
export interface CashPaymentProduct1506SpecificInput {
|
|
194
|
-
returnUrl?: string | null;
|
|
195
|
-
}
|
|
196
|
-
export interface CashPaymentProduct1508SpecificInput {
|
|
197
|
-
returnUrl?: string | null;
|
|
187
|
+
export interface CashPaymentProduct1504SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
|
|
198
188
|
}
|
|
199
|
-
export interface
|
|
200
|
-
returnUrl?: string | null;
|
|
189
|
+
export interface CashPaymentProduct1521SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
|
|
201
190
|
}
|
|
202
|
-
export interface
|
|
203
|
-
returnUrl?: string | null;
|
|
191
|
+
export interface CashPaymentProduct1522SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
|
|
204
192
|
}
|
|
205
|
-
export interface
|
|
206
|
-
returnUrl?: string | null;
|
|
193
|
+
export interface CashPaymentProduct1523SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
|
|
207
194
|
}
|
|
208
|
-
export interface
|
|
209
|
-
returnUrl?: string | null;
|
|
195
|
+
export interface CashPaymentProduct1524SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
|
|
210
196
|
}
|
|
211
|
-
export interface
|
|
212
|
-
returnUrl?: string | null;
|
|
197
|
+
export interface CashPaymentProduct1526SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
|
|
213
198
|
}
|
|
214
|
-
export interface
|
|
199
|
+
export interface CashPaymentProductWithRedirectSpecificInputBase {
|
|
215
200
|
returnUrl?: string | null;
|
|
216
201
|
}
|
|
217
202
|
export interface CompletePaymentCardPaymentMethodSpecificInput {
|
|
@@ -356,6 +341,7 @@ export interface HostedCheckoutSpecificOutput {
|
|
|
356
341
|
export interface Installments {
|
|
357
342
|
amountOfMoneyPerInstallment?: AmountOfMoney | null;
|
|
358
343
|
frequencyOfInstallments?: string | null;
|
|
344
|
+
installmentPlanCode?: number | null;
|
|
359
345
|
interestRate?: string | null;
|
|
360
346
|
numberOfInstallments?: number | null;
|
|
361
347
|
}
|
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.2.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.2.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": {
|
|
@@ -541,15 +541,6 @@
|
|
|
541
541
|
"paymentProduct1504SpecificInput" : {
|
|
542
542
|
"$ref" : "#/definitions/CashPaymentProduct1504SpecificInput"
|
|
543
543
|
},
|
|
544
|
-
"paymentProduct1506SpecificInput" : {
|
|
545
|
-
"$ref" : "#/definitions/CashPaymentProduct1506SpecificInput"
|
|
546
|
-
},
|
|
547
|
-
"paymentProduct1508SpecificInput" : {
|
|
548
|
-
"$ref" : "#/definitions/CashPaymentProduct1508SpecificInput"
|
|
549
|
-
},
|
|
550
|
-
"paymentProduct1511SpecificInput" : {
|
|
551
|
-
"$ref" : "#/definitions/CashPaymentProduct1511SpecificInput"
|
|
552
|
-
},
|
|
553
544
|
"paymentProduct1521SpecificInput" : {
|
|
554
545
|
"$ref" : "#/definitions/CashPaymentProduct1521SpecificInput"
|
|
555
546
|
},
|
|
@@ -590,33 +581,6 @@
|
|
|
590
581
|
},
|
|
591
582
|
"additionalProperties" : false
|
|
592
583
|
},
|
|
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
|
-
},
|
|
620
584
|
"CashPaymentProduct1521SpecificInput" : {
|
|
621
585
|
"type" : "object",
|
|
622
586
|
"properties" : {
|
|
@@ -1126,6 +1090,10 @@
|
|
|
1126
1090
|
"frequencyOfInstallments" : {
|
|
1127
1091
|
"type" : "string"
|
|
1128
1092
|
},
|
|
1093
|
+
"installmentPlanCode" : {
|
|
1094
|
+
"type" : "integer",
|
|
1095
|
+
"maximum" : 2147483647
|
|
1096
|
+
},
|
|
1129
1097
|
"interestRate" : {
|
|
1130
1098
|
"type" : "string"
|
|
1131
1099
|
},
|