connect-sdk-nodejs 4.0.0 → 4.1.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 +12 -0
- package/lib/model/domain/services/index.d.ts +7 -1
- package/lib/model/services/index.d.ts +7 -0
- package/lib/services/index.js +3 -1
- package/lib/services/index.js.map +1 -1
- package/lib/services/settlementdetails.d.ts +3 -0
- package/lib/services/settlementdetails.js +17 -0
- package/lib/services/settlementdetails.js.map +1 -0
- package/lib/utils/headers.js +1 -1
- package/package.json +1 -1
- package/schemas/payment/CreatePaymentRequest.json +36 -0
|
@@ -164,6 +164,9 @@ 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;
|
|
167
170
|
paymentProduct1521SpecificInput?: CashPaymentProduct1521SpecificInput | null;
|
|
168
171
|
paymentProduct1522SpecificInput?: CashPaymentProduct1522SpecificInput | null;
|
|
169
172
|
paymentProduct1523SpecificInput?: CashPaymentProduct1523SpecificInput | null;
|
|
@@ -187,6 +190,15 @@ export interface CashPaymentProduct1503SpecificInput {
|
|
|
187
190
|
export interface CashPaymentProduct1504SpecificInput {
|
|
188
191
|
returnUrl?: string | null;
|
|
189
192
|
}
|
|
193
|
+
export interface CashPaymentProduct1506SpecificInput {
|
|
194
|
+
returnUrl?: string | null;
|
|
195
|
+
}
|
|
196
|
+
export interface CashPaymentProduct1508SpecificInput {
|
|
197
|
+
returnUrl?: string | null;
|
|
198
|
+
}
|
|
199
|
+
export interface CashPaymentProduct1511SpecificInput {
|
|
200
|
+
returnUrl?: string | null;
|
|
201
|
+
}
|
|
190
202
|
export interface CashPaymentProduct1521SpecificInput {
|
|
191
203
|
returnUrl?: string | null;
|
|
192
204
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BankAccountBban, BankAccountIban } from "../definitions";
|
|
1
|
+
import { AmountOfMoney, BankAccountBban, BankAccountIban } from "../definitions";
|
|
2
2
|
import { BankData, BankDetails, IINDetail, PaymentContext, Swift } from "./definitions";
|
|
3
3
|
export interface BankDetailsRequest extends BankDetails {
|
|
4
4
|
}
|
|
@@ -24,6 +24,12 @@ export interface GetIINDetailsResponse {
|
|
|
24
24
|
export interface GetPrivacyPolicyResponse {
|
|
25
25
|
htmlContent?: string | null;
|
|
26
26
|
}
|
|
27
|
+
export interface SettlementDetails {
|
|
28
|
+
acquirerReferenceNumber?: string | null;
|
|
29
|
+
amountOfMoney?: AmountOfMoney | null;
|
|
30
|
+
paymentId?: string | null;
|
|
31
|
+
retrievalReferenceNumber?: string | null;
|
|
32
|
+
}
|
|
27
33
|
export interface TestConnection {
|
|
28
34
|
result?: string | null;
|
|
29
35
|
}
|
|
@@ -36,6 +36,13 @@ export interface ServicesClient {
|
|
|
36
36
|
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
37
37
|
*/
|
|
38
38
|
testconnection(merchantId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
39
|
+
/**
|
|
40
|
+
* Resource /{merchantId}/services/settlementdetails/{paymentId} - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/services/settlementdetails.html">Get Settlement details</a>
|
|
41
|
+
* @param cb The callback for the response.
|
|
42
|
+
* If the call was successfull, the response body type will be {@link SettlementDetails}.
|
|
43
|
+
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
44
|
+
*/
|
|
45
|
+
settlementdetails(merchantId: string, paymentId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
39
46
|
}
|
|
40
47
|
export interface ConvertAmountParams extends PaymentContext {
|
|
41
48
|
source?: string;
|
package/lib/services/index.js
CHANGED
|
@@ -8,12 +8,14 @@ const bankaccount = require("./bankaccount");
|
|
|
8
8
|
const getIINdetails = require("./getIINdetails");
|
|
9
9
|
const privacypolicy = require("./privacypolicy");
|
|
10
10
|
const testconnection = require("./testconnection");
|
|
11
|
+
const settlementdetails = require("./settlementdetails");
|
|
11
12
|
const servicesClient = {
|
|
12
13
|
convertAmount: convertAmount,
|
|
13
14
|
bankaccount: bankaccount,
|
|
14
15
|
getIINdetails: getIINdetails,
|
|
15
16
|
privacypolicy: privacypolicy,
|
|
16
|
-
testconnection: testconnection
|
|
17
|
+
testconnection: testconnection,
|
|
18
|
+
settlementdetails: settlementdetails
|
|
17
19
|
};
|
|
18
20
|
module.exports = servicesClient;
|
|
19
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,iDAAkD;AAClD,6CAA8C;AAC9C,iDAAkD;AAClD,iDAAkD;AAClD,mDAAoD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,iDAAkD;AAClD,6CAA8C;AAC9C,iDAAkD;AAClD,iDAAkD;AAClD,mDAAoD;AACpD,yDAA0D;AAG1D,MAAM,cAAc,GAAmB;IACrC,aAAa,EAAE,aAAa;IAC5B,WAAW,EAAE,WAAW;IACxB,aAAa,EAAE,aAAa;IAC5B,aAAa,EAAE,aAAa;IAC5B,cAAc,EAAE,cAAc;IAC9B,iBAAiB,EAAE,iBAAiB;CACrC,CAAC;AACF,iBAAS,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This file was auto-generated from the API references found at
|
|
4
|
+
* https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
|
5
|
+
*/
|
|
6
|
+
const communicator = require("../utils/communicator");
|
|
7
|
+
const getSettlementDetails = function (merchantId, paymentId, paymentContext, cb) {
|
|
8
|
+
communicator.json({
|
|
9
|
+
method: "GET",
|
|
10
|
+
modulePath: "/v1/" + merchantId + "/services/settlementdetails/" + paymentId,
|
|
11
|
+
body: null,
|
|
12
|
+
paymentContext: paymentContext,
|
|
13
|
+
cb: cb
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
module.exports = getSettlementDetails;
|
|
17
|
+
//# sourceMappingURL=settlementdetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settlementdetails.js","sourceRoot":"","sources":["../../src/services/settlementdetails.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,sDAAuD;AAGvD,MAAM,oBAAoB,GAAG,UAAS,UAAkB,EAAE,SAAiB,EAAE,cAAqC,EAAE,EAAe;IACjI,YAAY,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,KAAK;QACb,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,8BAA8B,GAAG,SAAS;QAC5E,IAAI,EAAE,IAAI;QACV,cAAc,EAAE,cAAc;QAC9B,EAAE,EAAE,EAAE;KACP,CAAC,CAAC;AACL,CAAC,CAAC;AACF,iBAAS,oBAAoB,CAAC"}
|
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.1.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.1.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,6 +541,15 @@
|
|
|
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
|
+
},
|
|
544
553
|
"paymentProduct1521SpecificInput" : {
|
|
545
554
|
"$ref" : "#/definitions/CashPaymentProduct1521SpecificInput"
|
|
546
555
|
},
|
|
@@ -581,6 +590,33 @@
|
|
|
581
590
|
},
|
|
582
591
|
"additionalProperties" : false
|
|
583
592
|
},
|
|
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
|
+
},
|
|
584
620
|
"CashPaymentProduct1521SpecificInput" : {
|
|
585
621
|
"type" : "object",
|
|
586
622
|
"properties" : {
|