connect-sdk-nodejs 4.11.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/hostedcheckout/definitions/index.d.ts +1 -0
- package/lib/model/domain/payment/definitions/index.d.ts +6 -1
- 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 +9 -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;
|
|
@@ -2,6 +2,7 @@ import { AbstractPaymentMethodSpecificInput, KeyValuePair, PaymentProductFilter
|
|
|
2
2
|
import { GPayThreeDSecure, Payment, PaymentCreationReferences } from "../../payment/definitions";
|
|
3
3
|
export interface CreatedPaymentOutput {
|
|
4
4
|
displayedData?: DisplayedData | null;
|
|
5
|
+
isCheckedRememberMe?: boolean | null;
|
|
5
6
|
payment?: Payment | null;
|
|
6
7
|
paymentCreationReferences?: PaymentCreationReferences | null;
|
|
7
8
|
/**
|
|
@@ -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;
|
|
@@ -541,6 +543,7 @@ export interface PaymentAccountOnFile {
|
|
|
541
543
|
numberOfCardOnFileCreationAttemptsLast24Hours?: number | null;
|
|
542
544
|
}
|
|
543
545
|
export interface PaymentCreationOutput extends PaymentCreationReferences {
|
|
546
|
+
isCheckedRememberMe?: boolean | null;
|
|
544
547
|
isNewToken?: boolean | null;
|
|
545
548
|
token?: string | null;
|
|
546
549
|
tokenizationSucceeded?: boolean | null;
|
|
@@ -609,13 +612,13 @@ export interface PaymentReferences {
|
|
|
609
612
|
merchantReference?: string | null;
|
|
610
613
|
paymentReference?: string | null;
|
|
611
614
|
providerId?: string | null;
|
|
615
|
+
providerMerchantId?: string | null;
|
|
612
616
|
providerReference?: string | null;
|
|
613
617
|
referenceOrigPayment?: string | null;
|
|
614
618
|
}
|
|
615
619
|
export interface PaymentStatusOutput extends OrderStatusOutput {
|
|
616
620
|
isAuthorized?: boolean | null;
|
|
617
621
|
isRefundable?: boolean | null;
|
|
618
|
-
isRetriable?: boolean | null;
|
|
619
622
|
threeDSecureStatus?: string | null;
|
|
620
623
|
}
|
|
621
624
|
export interface PersonalInformation {
|
|
@@ -712,6 +715,7 @@ export interface RedirectionData {
|
|
|
712
715
|
export interface RefundBankMethodSpecificOutput extends RefundMethodSpecificOutput {
|
|
713
716
|
}
|
|
714
717
|
export interface RefundCardMethodSpecificOutput extends RefundMethodSpecificOutput {
|
|
718
|
+
authorisationCode?: string | null;
|
|
715
719
|
}
|
|
716
720
|
export interface RefundCashMethodSpecificOutput extends RefundMethodSpecificOutput {
|
|
717
721
|
}
|
|
@@ -747,6 +751,7 @@ export interface RefundPaymentProduct840SpecificOutput {
|
|
|
747
751
|
customerAccount?: RefundPaymentProduct840CustomerAccount | null;
|
|
748
752
|
}
|
|
749
753
|
export interface SchemeTokenData {
|
|
754
|
+
cardholderName?: string | null;
|
|
750
755
|
cryptogram?: string | null;
|
|
751
756
|
eci?: string | null;
|
|
752
757
|
networkToken?: string | null;
|
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": {
|
|
@@ -1673,6 +1673,12 @@
|
|
|
1673
1673
|
},
|
|
1674
1674
|
"merchantReference" : {
|
|
1675
1675
|
"type" : "string"
|
|
1676
|
+
},
|
|
1677
|
+
"providerId" : {
|
|
1678
|
+
"type" : "string"
|
|
1679
|
+
},
|
|
1680
|
+
"providerMerchantId" : {
|
|
1681
|
+
"type" : "string"
|
|
1676
1682
|
}
|
|
1677
1683
|
},
|
|
1678
1684
|
"additionalProperties" : false
|
|
@@ -1908,6 +1914,9 @@
|
|
|
1908
1914
|
"SchemeTokenData" : {
|
|
1909
1915
|
"type" : "object",
|
|
1910
1916
|
"properties" : {
|
|
1917
|
+
"cardholderName" : {
|
|
1918
|
+
"type" : "string"
|
|
1919
|
+
},
|
|
1911
1920
|
"cryptogram" : {
|
|
1912
1921
|
"type" : "string"
|
|
1913
1922
|
},
|