connect-sdk-nodejs 5.5.0 → 5.6.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.
@@ -9,7 +9,7 @@ exports.date = date;
9
9
  function serverMetaInfo(sdkContext) {
10
10
  const info = {
11
11
  sdkCreator: "Worldline",
12
- sdkIdentifier: "NodejsServerSDK/v5.5.0",
12
+ sdkIdentifier: "NodejsServerSDK/v5.6.0",
13
13
  platformIdentifier: `${process.env["OS"]} Node.js/${process.versions.node}`,
14
14
  integrator: sdkContext.getIntegrator()
15
15
  };
@@ -65,6 +65,10 @@ export interface AbstractRedirectPaymentMethodSpecificInput extends AbstractPaym
65
65
  }
66
66
  export interface AbstractRedirectPaymentProduct4101SpecificInput {
67
67
  }
68
+ export interface AbstractRedirectPaymentProduct838SpecificInput {
69
+ interoperabilityData?: string | null;
70
+ interoperabilityToken?: string | null;
71
+ }
68
72
  export interface AbstractRedirectPaymentProduct840SpecificInput {
69
73
  addressSelectionAtPayPal?: boolean | null;
70
74
  }
@@ -351,25 +355,35 @@ export interface CaptureOutput extends OrderOutput {
351
355
  bankTransferPaymentMethodSpecificOutput?: BankTransferPaymentMethodSpecificOutput | null;
352
356
  cardPaymentMethodSpecificOutput?: CardPaymentMethodSpecificOutput | null;
353
357
  cashPaymentMethodSpecificOutput?: CashPaymentMethodSpecificOutput | null;
354
- directDebitPaymentMethodSpecificOutput?: NonSepaDirectDebitPaymentMethodSpecificOutput | null;
355
- eInvoicePaymentMethodSpecificOutput?: EInvoicePaymentMethodSpecificOutput | null;
356
- invoicePaymentMethodSpecificOutput?: InvoicePaymentMethodSpecificOutput | null;
357
- mobilePaymentMethodSpecificOutput?: MobilePaymentMethodSpecificOutput | null;
358
358
  paymentMethod?: string | null;
359
359
  redirectPaymentMethodSpecificOutput?: RedirectPaymentMethodSpecificOutput | null;
360
360
  reversalReason?: string | null;
361
361
  sepaDirectDebitPaymentMethodSpecificOutput?: SepaDirectDebitPaymentMethodSpecificOutput | null;
362
362
  }
363
+ export interface CapturePaymentOrder {
364
+ additionalInput?: CapturePaymentOrderAdditionalInput | null;
365
+ references?: CapturePaymentOrderReferences | null;
366
+ }
367
+ export interface CapturePaymentOrderAdditionalInput {
368
+ airlineData?: AirlineData | null;
369
+ lodgingData?: LodgingData | null;
370
+ }
371
+ export interface CapturePaymentOrderReferences {
372
+ merchantCaptureReference?: string | null;
373
+ }
363
374
  export interface CapturePaymentRequest {
364
375
  amount?: number | null;
365
376
  isFinal?: boolean | null;
377
+ order?: CapturePaymentOrder | null;
366
378
  }
367
379
  export interface CaptureResponse extends Capture {
368
380
  }
369
381
  export interface CaptureStatusOutput {
382
+ isRefundable?: boolean | null;
370
383
  isRetriable?: boolean | null;
371
384
  providerRawOutput?: KeyValuePair[] | null;
372
385
  statusCode?: number | null;
386
+ statusCodeChangeDateTime?: string | null;
373
387
  }
374
388
  export interface CapturesResponse {
375
389
  captures?: Capture[] | null;
@@ -1468,10 +1482,12 @@ export interface OrderLineDetails {
1468
1482
  naicsCommodityCode?: string | null;
1469
1483
  productCategory?: string | null;
1470
1484
  productCode?: string | null;
1485
+ productImageUrl?: string | null;
1471
1486
  productName?: string | null;
1472
1487
  productPrice?: number | null;
1473
1488
  productSku?: string | null;
1474
1489
  productType?: string | null;
1490
+ productUrl?: string | null;
1475
1491
  quantity?: number | null;
1476
1492
  taxAmount?: number | null;
1477
1493
  unit?: string | null;
@@ -1735,6 +1751,7 @@ export interface PaymentProducts {
1735
1751
  paymentProducts?: PaymentProduct[] | null;
1736
1752
  }
1737
1753
  export interface PaymentReferences {
1754
+ merchantCaptureReference?: string | null;
1738
1755
  merchantOrderId?: number | null;
1739
1756
  merchantReference?: string | null;
1740
1757
  paymentReference?: string | null;
@@ -1838,6 +1855,7 @@ export interface RedirectPaymentMethodSpecificInput extends AbstractRedirectPaym
1838
1855
  isRecurring?: boolean | null;
1839
1856
  paymentProduct4101SpecificInput?: RedirectPaymentProduct4101SpecificInput | null;
1840
1857
  paymentProduct809SpecificInput?: RedirectPaymentProduct809SpecificInput | null;
1858
+ paymentProduct838SpecificInput?: RedirectPaymentProduct838SpecificInput | null;
1841
1859
  paymentProduct840SpecificInput?: RedirectPaymentProduct840SpecificInput | null;
1842
1860
  paymentProduct861SpecificInput?: RedirectPaymentProduct861SpecificInput | null;
1843
1861
  paymentProduct863SpecificInput?: RedirectPaymentProduct863SpecificInput | null;
@@ -1851,6 +1869,7 @@ export interface RedirectPaymentMethodSpecificInput extends AbstractRedirectPaym
1851
1869
  }
1852
1870
  export interface RedirectPaymentMethodSpecificInputBase extends AbstractRedirectPaymentMethodSpecificInput {
1853
1871
  paymentProduct4101SpecificInput?: RedirectPaymentProduct4101SpecificInputBase | null;
1872
+ paymentProduct838SpecificInput?: RedirectPaymentProduct838SpecificInputBase | null;
1854
1873
  paymentProduct840SpecificInput?: RedirectPaymentProduct840SpecificInputBase | null;
1855
1874
  }
1856
1875
  export interface RedirectPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
@@ -1879,6 +1898,10 @@ export interface RedirectPaymentProduct809SpecificInput {
1879
1898
  expirationPeriod?: string | null;
1880
1899
  issuerId?: string | null;
1881
1900
  }
1901
+ export interface RedirectPaymentProduct838SpecificInput extends AbstractRedirectPaymentProduct838SpecificInput {
1902
+ }
1903
+ export interface RedirectPaymentProduct838SpecificInputBase extends AbstractRedirectPaymentProduct838SpecificInput {
1904
+ }
1882
1905
  export interface RedirectPaymentProduct840SpecificInput extends AbstractRedirectPaymentProduct840SpecificInput {
1883
1906
  /**
1884
1907
  * @deprecated Use Order.references.descriptor instead
@@ -2081,9 +2104,11 @@ export interface SessionResponse {
2081
2104
  export interface Shipping {
2082
2105
  address?: AddressPersonal | null;
2083
2106
  addressIndicator?: string | null;
2107
+ carrier?: string | null;
2084
2108
  comments?: string | null;
2085
2109
  emailAddress?: string | null;
2086
2110
  firstUsageDate?: string | null;
2111
+ instructions?: string | null;
2087
2112
  isFirstUsage?: boolean | null;
2088
2113
  shippedFromZip?: string | null;
2089
2114
  trackingNumber?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connect-sdk-nodejs",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API",
5
5
  "homepage": "https://github.com/Worldline-Global-Collect/connect-sdk-nodejs#readme",
6
6
  "bugs": {
@@ -50,7 +50,7 @@
50
50
  "@typescript-eslint/parser": "^2.34.0",
51
51
  "body-parser": "^1.20.3",
52
52
  "eslint": "^7.32.0",
53
- "express": "^4.21.0",
53
+ "express": "^4.21.2",
54
54
  "husky": "^4.3.8",
55
55
  "jest": "^28.1.3",
56
56
  "jest-junit": "^16.0.0",
@@ -8,7 +8,344 @@
8
8
  },
9
9
  "isFinal" : {
10
10
  "type" : "boolean"
11
+ },
12
+ "order" : {
13
+ "$ref" : "#/definitions/CapturePaymentOrder"
11
14
  }
12
15
  },
13
- "additionalProperties" : false
16
+ "additionalProperties" : false,
17
+ "definitions" : {
18
+ "AirlineData" : {
19
+ "type" : "object",
20
+ "properties" : {
21
+ "agentNumericCode" : {
22
+ "type" : "string"
23
+ },
24
+ "code" : {
25
+ "type" : "string"
26
+ },
27
+ "flightDate" : {
28
+ "type" : "string"
29
+ },
30
+ "flightLegs" : {
31
+ "type" : "array",
32
+ "items" : {
33
+ "$ref" : "#/definitions/AirlineFlightLeg"
34
+ },
35
+ "minItems" : 0,
36
+ "uniqueItems" : false
37
+ },
38
+ "invoiceNumber" : {
39
+ "type" : "string"
40
+ },
41
+ "isETicket" : {
42
+ "type" : "boolean"
43
+ },
44
+ "isRegisteredCustomer" : {
45
+ "type" : "boolean"
46
+ },
47
+ "isRestrictedTicket" : {
48
+ "type" : "boolean"
49
+ },
50
+ "isThirdParty" : {
51
+ "type" : "boolean"
52
+ },
53
+ "issueDate" : {
54
+ "type" : "string"
55
+ },
56
+ "merchantCustomerId" : {
57
+ "type" : "string"
58
+ },
59
+ "name" : {
60
+ "type" : "string"
61
+ },
62
+ "numberInParty" : {
63
+ "type" : "integer",
64
+ "maximum" : 2147483647
65
+ },
66
+ "passengerName" : {
67
+ "type" : "string"
68
+ },
69
+ "passengers" : {
70
+ "type" : "array",
71
+ "items" : {
72
+ "$ref" : "#/definitions/AirlinePassenger"
73
+ },
74
+ "minItems" : 0,
75
+ "uniqueItems" : false
76
+ },
77
+ "placeOfIssue" : {
78
+ "type" : "string"
79
+ },
80
+ "pnr" : {
81
+ "type" : "string"
82
+ },
83
+ "pointOfSale" : {
84
+ "type" : "string"
85
+ },
86
+ "posCityCode" : {
87
+ "type" : "string"
88
+ },
89
+ "ticketDeliveryMethod" : {
90
+ "type" : "string"
91
+ },
92
+ "ticketNumber" : {
93
+ "type" : "string"
94
+ },
95
+ "totalFare" : {
96
+ "type" : "integer",
97
+ "maximum" : 10000
98
+ },
99
+ "totalFee" : {
100
+ "type" : "integer",
101
+ "maximum" : 10000
102
+ },
103
+ "totalTaxes" : {
104
+ "type" : "integer",
105
+ "maximum" : 10000
106
+ },
107
+ "travelAgencyName" : {
108
+ "type" : "string"
109
+ }
110
+ },
111
+ "additionalProperties" : false
112
+ },
113
+ "AirlineFlightLeg" : {
114
+ "type" : "object",
115
+ "properties" : {
116
+ "airlineClass" : {
117
+ "type" : "string"
118
+ },
119
+ "arrivalAirport" : {
120
+ "type" : "string"
121
+ },
122
+ "arrivalTime" : {
123
+ "type" : "string"
124
+ },
125
+ "carrierCode" : {
126
+ "type" : "string"
127
+ },
128
+ "conjunctionTicket" : {
129
+ "type" : "string"
130
+ },
131
+ "couponNumber" : {
132
+ "type" : "string"
133
+ },
134
+ "date" : {
135
+ "type" : "string"
136
+ },
137
+ "departureTime" : {
138
+ "type" : "string"
139
+ },
140
+ "endorsementOrRestriction" : {
141
+ "type" : "string"
142
+ },
143
+ "exchangeTicket" : {
144
+ "type" : "string"
145
+ },
146
+ "fare" : {
147
+ "type" : "string"
148
+ },
149
+ "fareBasis" : {
150
+ "type" : "string"
151
+ },
152
+ "fee" : {
153
+ "type" : "integer",
154
+ "maximum" : 10000
155
+ },
156
+ "flightNumber" : {
157
+ "type" : "string"
158
+ },
159
+ "number" : {
160
+ "type" : "integer",
161
+ "maximum" : 2147483647
162
+ },
163
+ "originAirport" : {
164
+ "type" : "string"
165
+ },
166
+ "passengerClass" : {
167
+ "type" : "string"
168
+ },
169
+ "serviceClass" : {
170
+ "type" : "string"
171
+ },
172
+ "stopoverCode" : {
173
+ "type" : "string"
174
+ },
175
+ "taxes" : {
176
+ "type" : "integer",
177
+ "maximum" : 10000
178
+ }
179
+ },
180
+ "additionalProperties" : false
181
+ },
182
+ "AirlinePassenger" : {
183
+ "type" : "object",
184
+ "properties" : {
185
+ "firstName" : {
186
+ "type" : "string"
187
+ },
188
+ "surname" : {
189
+ "type" : "string"
190
+ },
191
+ "surnamePrefix" : {
192
+ "type" : "string"
193
+ },
194
+ "title" : {
195
+ "type" : "string"
196
+ }
197
+ },
198
+ "additionalProperties" : false
199
+ },
200
+ "CapturePaymentOrder" : {
201
+ "type" : "object",
202
+ "properties" : {
203
+ "additionalInput" : {
204
+ "$ref" : "#/definitions/CapturePaymentOrderAdditionalInput"
205
+ },
206
+ "references" : {
207
+ "$ref" : "#/definitions/CapturePaymentOrderReferences"
208
+ }
209
+ },
210
+ "additionalProperties" : false
211
+ },
212
+ "CapturePaymentOrderAdditionalInput" : {
213
+ "type" : "object",
214
+ "properties" : {
215
+ "airlineData" : {
216
+ "$ref" : "#/definitions/AirlineData"
217
+ },
218
+ "lodgingData" : {
219
+ "$ref" : "#/definitions/LodgingData"
220
+ }
221
+ },
222
+ "additionalProperties" : false
223
+ },
224
+ "CapturePaymentOrderReferences" : {
225
+ "type" : "object",
226
+ "properties" : {
227
+ "merchantCaptureReference" : {
228
+ "type" : "string"
229
+ }
230
+ },
231
+ "additionalProperties" : false
232
+ },
233
+ "LodgingCharge" : {
234
+ "type" : "object",
235
+ "properties" : {
236
+ "chargeAmount" : {
237
+ "type" : "integer",
238
+ "maximum" : 9223372036854775807
239
+ },
240
+ "chargeAmountCurrencyCode" : {
241
+ "type" : "string"
242
+ },
243
+ "chargeType" : {
244
+ "type" : "string"
245
+ }
246
+ },
247
+ "additionalProperties" : false
248
+ },
249
+ "LodgingData" : {
250
+ "type" : "object",
251
+ "properties" : {
252
+ "charges" : {
253
+ "type" : "array",
254
+ "items" : {
255
+ "$ref" : "#/definitions/LodgingCharge"
256
+ },
257
+ "minItems" : 0,
258
+ "uniqueItems" : false
259
+ },
260
+ "checkInDate" : {
261
+ "type" : "string"
262
+ },
263
+ "checkOutDate" : {
264
+ "type" : "string"
265
+ },
266
+ "folioNumber" : {
267
+ "type" : "string"
268
+ },
269
+ "isConfirmedReservation" : {
270
+ "type" : "boolean"
271
+ },
272
+ "isFacilityFireSafetyConform" : {
273
+ "type" : "boolean"
274
+ },
275
+ "isNoShow" : {
276
+ "type" : "boolean"
277
+ },
278
+ "isPreferenceSmokingRoom" : {
279
+ "type" : "boolean"
280
+ },
281
+ "numberOfAdults" : {
282
+ "type" : "integer",
283
+ "maximum" : 2147483647
284
+ },
285
+ "numberOfNights" : {
286
+ "type" : "integer",
287
+ "maximum" : 2147483647
288
+ },
289
+ "numberOfRooms" : {
290
+ "type" : "integer",
291
+ "maximum" : 2147483647
292
+ },
293
+ "programCode" : {
294
+ "type" : "string"
295
+ },
296
+ "propertyCustomerServicePhoneNumber" : {
297
+ "type" : "string"
298
+ },
299
+ "propertyPhoneNumber" : {
300
+ "type" : "string"
301
+ },
302
+ "renterName" : {
303
+ "type" : "string"
304
+ },
305
+ "rooms" : {
306
+ "type" : "array",
307
+ "items" : {
308
+ "$ref" : "#/definitions/LodgingRoom"
309
+ },
310
+ "minItems" : 0,
311
+ "uniqueItems" : false
312
+ }
313
+ },
314
+ "additionalProperties" : false
315
+ },
316
+ "LodgingRoom" : {
317
+ "type" : "object",
318
+ "properties" : {
319
+ "dailyRoomRate" : {
320
+ "type" : "string"
321
+ },
322
+ "dailyRoomRateCurrencyCode" : {
323
+ "type" : "string"
324
+ },
325
+ "dailyRoomTaxAmount" : {
326
+ "type" : "string"
327
+ },
328
+ "dailyRoomTaxAmountCurrencyCode" : {
329
+ "type" : "string"
330
+ },
331
+ "numberOfNightsAtRoomRate" : {
332
+ "type" : "integer",
333
+ "maximum" : 2147483647
334
+ },
335
+ "roomLocation" : {
336
+ "type" : "string"
337
+ },
338
+ "roomNumber" : {
339
+ "type" : "string"
340
+ },
341
+ "typeOfBed" : {
342
+ "type" : "string"
343
+ },
344
+ "typeOfRoom" : {
345
+ "type" : "string"
346
+ }
347
+ },
348
+ "additionalProperties" : false
349
+ }
350
+ }
14
351
  }
@@ -972,6 +972,9 @@
972
972
  "productCode" : {
973
973
  "type" : "string"
974
974
  },
975
+ "productImageUrl" : {
976
+ "type" : "string"
977
+ },
975
978
  "productName" : {
976
979
  "type" : "string"
977
980
  },
@@ -985,6 +988,9 @@
985
988
  "productType" : {
986
989
  "type" : "string"
987
990
  },
991
+ "productUrl" : {
992
+ "type" : "string"
993
+ },
988
994
  "quantity" : {
989
995
  "type" : "integer",
990
996
  "maximum" : 9223372036854775807
@@ -1160,6 +1166,9 @@
1160
1166
  "addressIndicator" : {
1161
1167
  "type" : "string"
1162
1168
  },
1169
+ "carrier" : {
1170
+ "type" : "string"
1171
+ },
1163
1172
  "comments" : {
1164
1173
  "type" : "string"
1165
1174
  },
@@ -1169,6 +1178,9 @@
1169
1178
  "firstUsageDate" : {
1170
1179
  "type" : "string"
1171
1180
  },
1181
+ "instructions" : {
1182
+ "type" : "string"
1183
+ },
1172
1184
  "isFirstUsage" : {
1173
1185
  "type" : "boolean"
1174
1186
  },
@@ -1417,6 +1417,9 @@
1417
1417
  "productCode" : {
1418
1418
  "type" : "string"
1419
1419
  },
1420
+ "productImageUrl" : {
1421
+ "type" : "string"
1422
+ },
1420
1423
  "productName" : {
1421
1424
  "type" : "string"
1422
1425
  },
@@ -1430,6 +1433,9 @@
1430
1433
  "productType" : {
1431
1434
  "type" : "string"
1432
1435
  },
1436
+ "productUrl" : {
1437
+ "type" : "string"
1438
+ },
1433
1439
  "quantity" : {
1434
1440
  "type" : "integer",
1435
1441
  "maximum" : 9223372036854775807
@@ -1614,6 +1620,9 @@
1614
1620
  "paymentProduct4101SpecificInput" : {
1615
1621
  "$ref" : "#/definitions/RedirectPaymentProduct4101SpecificInputBase"
1616
1622
  },
1623
+ "paymentProduct838SpecificInput" : {
1624
+ "$ref" : "#/definitions/RedirectPaymentProduct838SpecificInputBase"
1625
+ },
1617
1626
  "paymentProduct840SpecificInput" : {
1618
1627
  "$ref" : "#/definitions/RedirectPaymentProduct840SpecificInputBase"
1619
1628
  },
@@ -1645,6 +1654,18 @@
1645
1654
  },
1646
1655
  "additionalProperties" : false
1647
1656
  },
1657
+ "RedirectPaymentProduct838SpecificInputBase" : {
1658
+ "type" : "object",
1659
+ "properties" : {
1660
+ "interoperabilityData" : {
1661
+ "type" : "string"
1662
+ },
1663
+ "interoperabilityToken" : {
1664
+ "type" : "string"
1665
+ }
1666
+ },
1667
+ "additionalProperties" : false
1668
+ },
1648
1669
  "RedirectPaymentProduct840SpecificInputBase" : {
1649
1670
  "type" : "object",
1650
1671
  "properties" : {
@@ -1772,6 +1793,9 @@
1772
1793
  "addressIndicator" : {
1773
1794
  "type" : "string"
1774
1795
  },
1796
+ "carrier" : {
1797
+ "type" : "string"
1798
+ },
1775
1799
  "comments" : {
1776
1800
  "type" : "string"
1777
1801
  },
@@ -1781,6 +1805,9 @@
1781
1805
  "firstUsageDate" : {
1782
1806
  "type" : "string"
1783
1807
  },
1808
+ "instructions" : {
1809
+ "type" : "string"
1810
+ },
1784
1811
  "isFirstUsage" : {
1785
1812
  "type" : "boolean"
1786
1813
  },
@@ -1685,6 +1685,9 @@
1685
1685
  "productCode" : {
1686
1686
  "type" : "string"
1687
1687
  },
1688
+ "productImageUrl" : {
1689
+ "type" : "string"
1690
+ },
1688
1691
  "productName" : {
1689
1692
  "type" : "string"
1690
1693
  },
@@ -1698,6 +1701,9 @@
1698
1701
  "productType" : {
1699
1702
  "type" : "string"
1700
1703
  },
1704
+ "productUrl" : {
1705
+ "type" : "string"
1706
+ },
1701
1707
  "quantity" : {
1702
1708
  "type" : "integer",
1703
1709
  "maximum" : 9223372036854775807
@@ -1838,6 +1844,9 @@
1838
1844
  "paymentProduct809SpecificInput" : {
1839
1845
  "$ref" : "#/definitions/RedirectPaymentProduct809SpecificInput"
1840
1846
  },
1847
+ "paymentProduct838SpecificInput" : {
1848
+ "$ref" : "#/definitions/RedirectPaymentProduct838SpecificInput"
1849
+ },
1841
1850
  "paymentProduct840SpecificInput" : {
1842
1851
  "$ref" : "#/definitions/RedirectPaymentProduct840SpecificInput"
1843
1852
  },
@@ -1905,6 +1914,18 @@
1905
1914
  },
1906
1915
  "additionalProperties" : false
1907
1916
  },
1917
+ "RedirectPaymentProduct838SpecificInput" : {
1918
+ "type" : "object",
1919
+ "properties" : {
1920
+ "interoperabilityData" : {
1921
+ "type" : "string"
1922
+ },
1923
+ "interoperabilityToken" : {
1924
+ "type" : "string"
1925
+ }
1926
+ },
1927
+ "additionalProperties" : false
1928
+ },
1908
1929
  "RedirectPaymentProduct840SpecificInput" : {
1909
1930
  "type" : "object",
1910
1931
  "properties" : {
@@ -2125,6 +2146,9 @@
2125
2146
  "addressIndicator" : {
2126
2147
  "type" : "string"
2127
2148
  },
2149
+ "carrier" : {
2150
+ "type" : "string"
2151
+ },
2128
2152
  "comments" : {
2129
2153
  "type" : "string"
2130
2154
  },
@@ -2134,6 +2158,9 @@
2134
2158
  "firstUsageDate" : {
2135
2159
  "type" : "string"
2136
2160
  },
2161
+ "instructions" : {
2162
+ "type" : "string"
2163
+ },
2137
2164
  "isFirstUsage" : {
2138
2165
  "type" : "boolean"
2139
2166
  },