connect-sdk-nodejs 4.15.0 → 4.17.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.
@@ -111,7 +111,6 @@ export interface CardFraudResults extends FraudResults {
111
111
  avsResult?: string | null;
112
112
  cvvResult?: string | null;
113
113
  fraugster?: FraugsterResults | null;
114
- microsoftFraudProtection?: MicrosoftFraudResults | null;
115
114
  retailDecisions?: FraudResultsRetailDecisions | null;
116
115
  }
117
116
  export interface CardWithoutCvv extends CardEssentials {
@@ -209,6 +208,7 @@ export interface FraudFieldsShippingDetails {
209
208
  export interface FraudResults {
210
209
  fraudServiceResult?: string | null;
211
210
  inAuth?: InAuth | null;
211
+ microsoftFraudProtection?: MicrosoftFraudResults | null;
212
212
  }
213
213
  export interface FraudResultsRetailDecisions {
214
214
  fraudCode?: string | null;
@@ -68,13 +68,25 @@ export interface AbstractThreeDSecure {
68
68
  skipAuthentication?: boolean | null;
69
69
  transactionRiskLevel?: string | null;
70
70
  }
71
+ export interface AccountFundingRecipient {
72
+ accountNumber?: string | null;
73
+ accountNumberType?: string | null;
74
+ address?: Address | null;
75
+ dateOfBirth?: string | null;
76
+ name?: AfrName | null;
77
+ partialPan?: string | null;
78
+ }
71
79
  export interface AdditionalOrderInput {
80
+ accountFundingRecipient?: AccountFundingRecipient | null;
72
81
  airlineData?: AirlineData | null;
73
82
  installments?: Installments | null;
74
83
  /**
75
84
  * @deprecated Use Order.shoppingCart.amountBreakdown instead
76
85
  */
77
86
  level3SummaryData?: Level3SummaryData | null;
87
+ /**
88
+ * @deprecated No replacement
89
+ */
78
90
  loanRecipient?: LoanRecipient | null;
79
91
  lodgingData?: LodgingData | null;
80
92
  /**
@@ -87,6 +99,10 @@ export interface AdditionalOrderInput {
87
99
  export interface AddressPersonal extends Address {
88
100
  name?: PersonalName | null;
89
101
  }
102
+ export interface AfrName {
103
+ firstName?: string | null;
104
+ surname?: string | null;
105
+ }
90
106
  export interface AmountBreakdown {
91
107
  amount?: number | null;
92
108
  type?: string | null;
@@ -223,6 +239,7 @@ export interface Customer extends CustomerBase {
223
239
  contactDetails?: ContactDetails | null;
224
240
  device?: CustomerDevice | null;
225
241
  fiscalNumber?: string | null;
242
+ isCompany?: boolean | null;
226
243
  isPreviousCustomer?: boolean | null;
227
244
  locale?: string | null;
228
245
  personalInformation?: PersonalInformation | null;
@@ -296,6 +313,7 @@ export interface EInvoicePaymentMethodSpecificInput extends AbstractEInvoicePaym
296
313
  export interface EInvoicePaymentMethodSpecificInputBase extends AbstractEInvoicePaymentMethodSpecificInput {
297
314
  }
298
315
  export interface EInvoicePaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
316
+ fraudResults?: FraudResults | null;
299
317
  paymentProduct9000SpecificOutput?: EInvoicePaymentProduct9000SpecificOutput | null;
300
318
  }
301
319
  export interface EInvoicePaymentProduct9000SpecificInput {
@@ -398,11 +416,29 @@ export interface LineItemLevel3InterchangeInformation {
398
416
  taxAmount?: number | null;
399
417
  unit?: string | null;
400
418
  }
419
+ /**
420
+ * @deprecated No replacement
421
+ */
401
422
  export interface LoanRecipient {
423
+ /**
424
+ * @deprecated No replacement
425
+ */
402
426
  accountNumber?: string | null;
427
+ /**
428
+ * @deprecated No replacement
429
+ */
403
430
  dateOfBirth?: string | null;
431
+ /**
432
+ * @deprecated No replacement
433
+ */
404
434
  partialPan?: string | null;
435
+ /**
436
+ * @deprecated No replacement
437
+ */
405
438
  surname?: string | null;
439
+ /**
440
+ * @deprecated No replacement
441
+ */
406
442
  zip?: string | null;
407
443
  }
408
444
  export interface Merchant {
@@ -529,6 +565,7 @@ export interface OrderReferencesApprovePayment {
529
565
  merchantReference?: string | null;
530
566
  }
531
567
  export interface OrderTypeInformation {
568
+ fundingType?: string | null;
532
569
  purchaseType?: string | null;
533
570
  transactionType?: string | null;
534
571
  usageType?: string | null;
@@ -622,9 +659,15 @@ export interface PaymentStatusOutput extends OrderStatusOutput {
622
659
  isRefundable?: boolean | null;
623
660
  threeDSecureStatus?: string | null;
624
661
  }
662
+ export interface PersonalIdentification {
663
+ idIssuingCountryCode?: string | null;
664
+ idType?: string | null;
665
+ idValue?: string | null;
666
+ }
625
667
  export interface PersonalInformation {
626
668
  dateOfBirth?: string | null;
627
669
  gender?: string | null;
670
+ identification?: PersonalIdentification | null;
628
671
  name?: PersonalName | null;
629
672
  }
630
673
  export interface PersonalName extends PersonalNameBase {
@@ -760,10 +803,6 @@ export interface SchemeTokenData {
760
803
  tokenExpiryDate?: string | null;
761
804
  }
762
805
  export interface SdkDataInput {
763
- /**
764
- * @deprecated No replacement
765
- */
766
- deviceInfo?: string | null;
767
806
  deviceRenderOptions?: DeviceRenderOptions | null;
768
807
  sdkAppId?: string | null;
769
808
  sdkEncryptedData?: string | null;
@@ -63,6 +63,7 @@ export interface PaymentProduct {
63
63
  fields?: PaymentProductField[] | null;
64
64
  fieldsWarning?: string | null;
65
65
  id?: number | null;
66
+ isAuthenticationSupported?: boolean | null;
66
67
  isJavaScriptRequired?: boolean | null;
67
68
  maxAmount?: number | null;
68
69
  minAmount?: number | null;
@@ -9,7 +9,7 @@ exports.date = date;
9
9
  function serverMetaInfo(sdkContext) {
10
10
  const info = {
11
11
  sdkCreator: "Ingenico",
12
- sdkIdentifier: "NodejsServerSDK/v4.15.0",
12
+ sdkIdentifier: "NodejsServerSDK/v4.17.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.15.0",
3
+ "version": "4.17.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": {
@@ -38,9 +38,36 @@
38
38
  },
39
39
  "additionalProperties" : false,
40
40
  "definitions" : {
41
+ "AccountFundingRecipient" : {
42
+ "type" : "object",
43
+ "properties" : {
44
+ "accountNumber" : {
45
+ "type" : "string"
46
+ },
47
+ "accountNumberType" : {
48
+ "type" : "string"
49
+ },
50
+ "address" : {
51
+ "$ref" : "#/definitions/Address"
52
+ },
53
+ "dateOfBirth" : {
54
+ "type" : "string"
55
+ },
56
+ "name" : {
57
+ "$ref" : "#/definitions/AfrName"
58
+ },
59
+ "partialPan" : {
60
+ "type" : "string"
61
+ }
62
+ },
63
+ "additionalProperties" : false
64
+ },
41
65
  "AdditionalOrderInput" : {
42
66
  "type" : "object",
43
67
  "properties" : {
68
+ "accountFundingRecipient" : {
69
+ "$ref" : "#/definitions/AccountFundingRecipient"
70
+ },
44
71
  "airlineData" : {
45
72
  "$ref" : "#/definitions/AirlineData"
46
73
  },
@@ -132,6 +159,18 @@
132
159
  },
133
160
  "additionalProperties" : false
134
161
  },
162
+ "AfrName" : {
163
+ "type" : "object",
164
+ "properties" : {
165
+ "firstName" : {
166
+ "type" : "string"
167
+ },
168
+ "surname" : {
169
+ "type" : "string"
170
+ }
171
+ },
172
+ "additionalProperties" : false
173
+ },
135
174
  "AirlineData" : {
136
175
  "type" : "object",
137
176
  "properties" : {
@@ -561,6 +600,9 @@
561
600
  "fiscalNumber" : {
562
601
  "type" : "string"
563
602
  },
603
+ "isCompany" : {
604
+ "type" : "boolean"
605
+ },
564
606
  "isPreviousCustomer" : {
565
607
  "type" : "boolean"
566
608
  },
@@ -1421,6 +1463,9 @@
1421
1463
  "OrderTypeInformation" : {
1422
1464
  "type" : "object",
1423
1465
  "properties" : {
1466
+ "fundingType" : {
1467
+ "type" : "string"
1468
+ },
1424
1469
  "purchaseType" : {
1425
1470
  "type" : "string"
1426
1471
  },
@@ -1484,6 +1529,21 @@
1484
1529
  },
1485
1530
  "additionalProperties" : false
1486
1531
  },
1532
+ "PersonalIdentification" : {
1533
+ "type" : "object",
1534
+ "properties" : {
1535
+ "idIssuingCountryCode" : {
1536
+ "type" : "string"
1537
+ },
1538
+ "idType" : {
1539
+ "type" : "string"
1540
+ },
1541
+ "idValue" : {
1542
+ "type" : "string"
1543
+ }
1544
+ },
1545
+ "additionalProperties" : false
1546
+ },
1487
1547
  "PersonalInformation" : {
1488
1548
  "type" : "object",
1489
1549
  "properties" : {
@@ -1493,6 +1553,9 @@
1493
1553
  "gender" : {
1494
1554
  "type" : "string"
1495
1555
  },
1556
+ "identification" : {
1557
+ "$ref" : "#/definitions/PersonalIdentification"
1558
+ },
1496
1559
  "name" : {
1497
1560
  "$ref" : "#/definitions/PersonalName"
1498
1561
  }
@@ -1594,9 +1657,6 @@
1594
1657
  "SdkDataInput" : {
1595
1658
  "type" : "object",
1596
1659
  "properties" : {
1597
- "deviceInfo" : {
1598
- "type" : "string"
1599
- },
1600
1660
  "deviceRenderOptions" : {
1601
1661
  "$ref" : "#/definitions/DeviceRenderOptions"
1602
1662
  },
@@ -14,9 +14,36 @@
14
14
  },
15
15
  "additionalProperties" : false,
16
16
  "definitions" : {
17
+ "AccountFundingRecipient" : {
18
+ "type" : "object",
19
+ "properties" : {
20
+ "accountNumber" : {
21
+ "type" : "string"
22
+ },
23
+ "accountNumberType" : {
24
+ "type" : "string"
25
+ },
26
+ "address" : {
27
+ "$ref" : "#/definitions/Address"
28
+ },
29
+ "dateOfBirth" : {
30
+ "type" : "string"
31
+ },
32
+ "name" : {
33
+ "$ref" : "#/definitions/AfrName"
34
+ },
35
+ "partialPan" : {
36
+ "type" : "string"
37
+ }
38
+ },
39
+ "additionalProperties" : false
40
+ },
17
41
  "AdditionalOrderInput" : {
18
42
  "type" : "object",
19
43
  "properties" : {
44
+ "accountFundingRecipient" : {
45
+ "$ref" : "#/definitions/AccountFundingRecipient"
46
+ },
20
47
  "airlineData" : {
21
48
  "$ref" : "#/definitions/AirlineData"
22
49
  },
@@ -108,6 +135,18 @@
108
135
  },
109
136
  "additionalProperties" : false
110
137
  },
138
+ "AfrName" : {
139
+ "type" : "object",
140
+ "properties" : {
141
+ "firstName" : {
142
+ "type" : "string"
143
+ },
144
+ "surname" : {
145
+ "type" : "string"
146
+ }
147
+ },
148
+ "additionalProperties" : false
149
+ },
111
150
  "AirlineData" : {
112
151
  "type" : "object",
113
152
  "properties" : {
@@ -431,6 +470,9 @@
431
470
  "fiscalNumber" : {
432
471
  "type" : "string"
433
472
  },
473
+ "isCompany" : {
474
+ "type" : "boolean"
475
+ },
434
476
  "isPreviousCustomer" : {
435
477
  "type" : "boolean"
436
478
  },
@@ -979,6 +1021,9 @@
979
1021
  "OrderTypeInformation" : {
980
1022
  "type" : "object",
981
1023
  "properties" : {
1024
+ "fundingType" : {
1025
+ "type" : "string"
1026
+ },
982
1027
  "purchaseType" : {
983
1028
  "type" : "string"
984
1029
  },
@@ -1004,6 +1049,21 @@
1004
1049
  },
1005
1050
  "additionalProperties" : false
1006
1051
  },
1052
+ "PersonalIdentification" : {
1053
+ "type" : "object",
1054
+ "properties" : {
1055
+ "idIssuingCountryCode" : {
1056
+ "type" : "string"
1057
+ },
1058
+ "idType" : {
1059
+ "type" : "string"
1060
+ },
1061
+ "idValue" : {
1062
+ "type" : "string"
1063
+ }
1064
+ },
1065
+ "additionalProperties" : false
1066
+ },
1007
1067
  "PersonalInformation" : {
1008
1068
  "type" : "object",
1009
1069
  "properties" : {
@@ -1013,6 +1073,9 @@
1013
1073
  "gender" : {
1014
1074
  "type" : "string"
1015
1075
  },
1076
+ "identification" : {
1077
+ "$ref" : "#/definitions/PersonalIdentification"
1078
+ },
1016
1079
  "name" : {
1017
1080
  "$ref" : "#/definitions/PersonalName"
1018
1081
  }
@@ -44,9 +44,36 @@
44
44
  },
45
45
  "additionalProperties" : false,
46
46
  "definitions" : {
47
+ "AccountFundingRecipient" : {
48
+ "type" : "object",
49
+ "properties" : {
50
+ "accountNumber" : {
51
+ "type" : "string"
52
+ },
53
+ "accountNumberType" : {
54
+ "type" : "string"
55
+ },
56
+ "address" : {
57
+ "$ref" : "#/definitions/Address"
58
+ },
59
+ "dateOfBirth" : {
60
+ "type" : "string"
61
+ },
62
+ "name" : {
63
+ "$ref" : "#/definitions/AfrName"
64
+ },
65
+ "partialPan" : {
66
+ "type" : "string"
67
+ }
68
+ },
69
+ "additionalProperties" : false
70
+ },
47
71
  "AdditionalOrderInput" : {
48
72
  "type" : "object",
49
73
  "properties" : {
74
+ "accountFundingRecipient" : {
75
+ "$ref" : "#/definitions/AccountFundingRecipient"
76
+ },
50
77
  "airlineData" : {
51
78
  "$ref" : "#/definitions/AirlineData"
52
79
  },
@@ -138,6 +165,18 @@
138
165
  },
139
166
  "additionalProperties" : false
140
167
  },
168
+ "AfrName" : {
169
+ "type" : "object",
170
+ "properties" : {
171
+ "firstName" : {
172
+ "type" : "string"
173
+ },
174
+ "surname" : {
175
+ "type" : "string"
176
+ }
177
+ },
178
+ "additionalProperties" : false
179
+ },
141
180
  "AirlineData" : {
142
181
  "type" : "object",
143
182
  "properties" : {
@@ -723,6 +762,9 @@
723
762
  "fiscalNumber" : {
724
763
  "type" : "string"
725
764
  },
765
+ "isCompany" : {
766
+ "type" : "boolean"
767
+ },
726
768
  "isPreviousCustomer" : {
727
769
  "type" : "boolean"
728
770
  },
@@ -1689,6 +1731,9 @@
1689
1731
  "OrderTypeInformation" : {
1690
1732
  "type" : "object",
1691
1733
  "properties" : {
1734
+ "fundingType" : {
1735
+ "type" : "string"
1736
+ },
1692
1737
  "purchaseType" : {
1693
1738
  "type" : "string"
1694
1739
  },
@@ -1714,6 +1759,21 @@
1714
1759
  },
1715
1760
  "additionalProperties" : false
1716
1761
  },
1762
+ "PersonalIdentification" : {
1763
+ "type" : "object",
1764
+ "properties" : {
1765
+ "idIssuingCountryCode" : {
1766
+ "type" : "string"
1767
+ },
1768
+ "idType" : {
1769
+ "type" : "string"
1770
+ },
1771
+ "idValue" : {
1772
+ "type" : "string"
1773
+ }
1774
+ },
1775
+ "additionalProperties" : false
1776
+ },
1717
1777
  "PersonalInformation" : {
1718
1778
  "type" : "object",
1719
1779
  "properties" : {
@@ -1723,6 +1783,9 @@
1723
1783
  "gender" : {
1724
1784
  "type" : "string"
1725
1785
  },
1786
+ "identification" : {
1787
+ "$ref" : "#/definitions/PersonalIdentification"
1788
+ },
1726
1789
  "name" : {
1727
1790
  "$ref" : "#/definitions/PersonalName"
1728
1791
  }
@@ -1938,9 +2001,6 @@
1938
2001
  "SdkDataInput" : {
1939
2002
  "type" : "object",
1940
2003
  "properties" : {
1941
- "deviceInfo" : {
1942
- "type" : "string"
1943
- },
1944
2004
  "deviceRenderOptions" : {
1945
2005
  "$ref" : "#/definitions/DeviceRenderOptions"
1946
2006
  },