connect-sdk-nodejs 4.12.0 → 4.13.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/capture/definitions/index.d.ts +3 -1
- package/lib/model/domain/definitions/index.d.ts +2 -0
- package/lib/model/domain/payment/definitions/index.d.ts +3 -2
- package/lib/utils/headers.js +1 -1
- package/package.json +1 -1
- package/schemas/hostedcheckout/CreateHostedCheckoutRequest.json +6 -0
- package/schemas/payment/CompletePaymentRequest.json +6 -0
- package/schemas/payment/CreatePaymentRequest.json +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractOrderStatus } from "../../definitions";
|
|
1
|
+
import { AbstractOrderStatus, KeyValuePair } from "../../definitions";
|
|
2
2
|
import { BankTransferPaymentMethodSpecificOutput, CardPaymentMethodSpecificOutput, CashPaymentMethodSpecificOutput, EInvoicePaymentMethodSpecificOutput, InvoicePaymentMethodSpecificOutput, MobilePaymentMethodSpecificOutput, NonSepaDirectDebitPaymentMethodSpecificOutput, OrderOutput, RedirectPaymentMethodSpecificOutput, SepaDirectDebitPaymentMethodSpecificOutput } from "../../payment/definitions";
|
|
3
3
|
export interface Capture extends AbstractOrderStatus {
|
|
4
4
|
captureOutput?: CaptureOutput | null;
|
|
@@ -21,5 +21,7 @@ export interface CaptureOutput extends OrderOutput {
|
|
|
21
21
|
sepaDirectDebitPaymentMethodSpecificOutput?: SepaDirectDebitPaymentMethodSpecificOutput | null;
|
|
22
22
|
}
|
|
23
23
|
export interface CaptureStatusOutput {
|
|
24
|
+
isRetriable?: boolean | null;
|
|
25
|
+
providerRawOutput?: KeyValuePair[] | null;
|
|
24
26
|
statusCode?: number | null;
|
|
25
27
|
}
|
|
@@ -276,6 +276,8 @@ export interface MicrosoftFraudResults {
|
|
|
276
276
|
export interface OrderStatusOutput {
|
|
277
277
|
errors?: APIError[] | null;
|
|
278
278
|
isCancellable?: boolean | null;
|
|
279
|
+
isRetriable?: boolean | null;
|
|
280
|
+
providerRawOutput?: KeyValuePair[] | null;
|
|
279
281
|
statusCategory?: string | null;
|
|
280
282
|
statusCode?: number | null;
|
|
281
283
|
statusCodeChangeDateTime?: string | null;
|
|
@@ -521,6 +521,8 @@ export interface OrderReferences {
|
|
|
521
521
|
invoiceData?: OrderInvoiceData | null;
|
|
522
522
|
merchantOrderId?: number | null;
|
|
523
523
|
merchantReference?: string | null;
|
|
524
|
+
providerId?: string | null;
|
|
525
|
+
providerMerchantId?: string | null;
|
|
524
526
|
}
|
|
525
527
|
export interface OrderReferencesApprovePayment {
|
|
526
528
|
merchantReference?: string | null;
|
|
@@ -617,8 +619,6 @@ export interface PaymentReferences {
|
|
|
617
619
|
export interface PaymentStatusOutput extends OrderStatusOutput {
|
|
618
620
|
isAuthorized?: boolean | null;
|
|
619
621
|
isRefundable?: boolean | null;
|
|
620
|
-
isRetriable?: boolean | null;
|
|
621
|
-
providerRawOutput?: KeyValuePair[] | null;
|
|
622
622
|
threeDSecureStatus?: string | null;
|
|
623
623
|
}
|
|
624
624
|
export interface PersonalInformation {
|
|
@@ -715,6 +715,7 @@ export interface RedirectionData {
|
|
|
715
715
|
export interface RefundBankMethodSpecificOutput extends RefundMethodSpecificOutput {
|
|
716
716
|
}
|
|
717
717
|
export interface RefundCardMethodSpecificOutput extends RefundMethodSpecificOutput {
|
|
718
|
+
authorisationCode?: string | null;
|
|
718
719
|
}
|
|
719
720
|
export interface RefundCashMethodSpecificOutput extends RefundMethodSpecificOutput {
|
|
720
721
|
}
|
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.13.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.13.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": {
|