connect-sdk-nodejs 6.5.0 → 6.7.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/utils/headers.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.date = date;
|
|
|
9
9
|
function serverMetaInfo(sdkContext) {
|
|
10
10
|
const info = {
|
|
11
11
|
sdkCreator: "Worldline",
|
|
12
|
-
sdkIdentifier: "NodejsServerSDK/v6.
|
|
12
|
+
sdkIdentifier: "NodejsServerSDK/v6.7.0",
|
|
13
13
|
platformIdentifier: `${process.env["OS"]} Node.js/${process.versions.node}`,
|
|
14
14
|
integrator: sdkContext.getIntegrator()
|
|
15
15
|
};
|
|
@@ -381,6 +381,7 @@ export interface CaptureOutput extends OrderOutput {
|
|
|
381
381
|
export interface CapturePaymentOrder {
|
|
382
382
|
additionalInput?: CapturePaymentOrderAdditionalInput | null;
|
|
383
383
|
references?: CapturePaymentOrderReferences | null;
|
|
384
|
+
shipping?: Shipping | null;
|
|
384
385
|
}
|
|
385
386
|
export interface CapturePaymentOrderAdditionalInput {
|
|
386
387
|
airlineData?: AirlineData | null;
|
|
@@ -424,6 +425,7 @@ export interface CardFraudResults extends FraudResults {
|
|
|
424
425
|
}
|
|
425
426
|
export interface CardPaymentMethodSpecificInput extends AbstractCardPaymentMethodSpecificInput {
|
|
426
427
|
card?: Card | null;
|
|
428
|
+
clickToPay?: ClickToPayInput | null;
|
|
427
429
|
/**
|
|
428
430
|
* @deprecated Use threeDSecure.externalCardholderAuthenticationData instead
|
|
429
431
|
*/
|
|
@@ -443,6 +445,7 @@ export interface CardPaymentMethodSpecificInputBase extends AbstractCardPaymentM
|
|
|
443
445
|
export interface CardPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
|
|
444
446
|
authorisationCode?: string | null;
|
|
445
447
|
card?: CardEssentials | null;
|
|
448
|
+
clickToPayUsed?: boolean | null;
|
|
446
449
|
fraudResults?: CardFraudResults | null;
|
|
447
450
|
initialSchemeTransactionId?: string | null;
|
|
448
451
|
networkTokenData?: NetworkTokenData | null;
|
|
@@ -533,9 +536,12 @@ export interface ClickToPayConfigurationVisa extends ClickToPaySchemeConfigurati
|
|
|
533
536
|
export interface ClickToPayDisplayHints {
|
|
534
537
|
logo?: string | null;
|
|
535
538
|
}
|
|
539
|
+
export interface ClickToPayInput {
|
|
540
|
+
checkoutResponseSignature?: string | null;
|
|
541
|
+
}
|
|
536
542
|
export interface ClickToPaySchemeConfigurationBase {
|
|
537
|
-
srcDpaId?: string | null;
|
|
538
543
|
srcInitiatorId?: string | null;
|
|
544
|
+
srciDpaId?: string | null;
|
|
539
545
|
}
|
|
540
546
|
export interface CompanyInformation {
|
|
541
547
|
dateOfIncorporation?: string | null;
|
|
@@ -1146,6 +1152,7 @@ export interface GiftCardPurchase {
|
|
|
1146
1152
|
numberOfGiftCards?: number | null;
|
|
1147
1153
|
}
|
|
1148
1154
|
export interface HostedCheckoutSpecificInput {
|
|
1155
|
+
allowClickToPay?: boolean | null;
|
|
1149
1156
|
isRecurring?: boolean | null;
|
|
1150
1157
|
locale?: string | null;
|
|
1151
1158
|
paymentProductFilters?: PaymentProductFiltersHostedCheckout | null;
|
|
@@ -1654,6 +1661,7 @@ export interface PaymentProduct {
|
|
|
1654
1661
|
acquirerCountry?: string | null;
|
|
1655
1662
|
allowsClickToPay?: boolean | null;
|
|
1656
1663
|
allowsInstallments?: boolean | null;
|
|
1664
|
+
allowsMultiplePartialCaptures?: boolean | null;
|
|
1657
1665
|
allowsRecurring?: boolean | null;
|
|
1658
1666
|
allowsTokenization?: boolean | null;
|
|
1659
1667
|
authenticationIndicator?: AuthenticationIndicator | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connect-sdk-nodejs",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.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": {
|
|
@@ -15,6 +15,39 @@
|
|
|
15
15
|
},
|
|
16
16
|
"additionalProperties" : false,
|
|
17
17
|
"definitions" : {
|
|
18
|
+
"AddressPersonal" : {
|
|
19
|
+
"type" : "object",
|
|
20
|
+
"properties" : {
|
|
21
|
+
"additionalInfo" : {
|
|
22
|
+
"type" : "string"
|
|
23
|
+
},
|
|
24
|
+
"city" : {
|
|
25
|
+
"type" : "string"
|
|
26
|
+
},
|
|
27
|
+
"countryCode" : {
|
|
28
|
+
"type" : "string"
|
|
29
|
+
},
|
|
30
|
+
"houseNumber" : {
|
|
31
|
+
"type" : "string"
|
|
32
|
+
},
|
|
33
|
+
"name" : {
|
|
34
|
+
"$ref" : "#/definitions/PersonalName"
|
|
35
|
+
},
|
|
36
|
+
"state" : {
|
|
37
|
+
"type" : "string"
|
|
38
|
+
},
|
|
39
|
+
"stateCode" : {
|
|
40
|
+
"type" : "string"
|
|
41
|
+
},
|
|
42
|
+
"street" : {
|
|
43
|
+
"type" : "string"
|
|
44
|
+
},
|
|
45
|
+
"zip" : {
|
|
46
|
+
"type" : "string"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties" : false
|
|
50
|
+
},
|
|
18
51
|
"AirlineData" : {
|
|
19
52
|
"type" : "object",
|
|
20
53
|
"properties" : {
|
|
@@ -205,6 +238,9 @@
|
|
|
205
238
|
},
|
|
206
239
|
"references" : {
|
|
207
240
|
"$ref" : "#/definitions/CapturePaymentOrderReferences"
|
|
241
|
+
},
|
|
242
|
+
"shipping" : {
|
|
243
|
+
"$ref" : "#/definitions/Shipping"
|
|
208
244
|
}
|
|
209
245
|
},
|
|
210
246
|
"additionalProperties" : false
|
|
@@ -346,6 +382,63 @@
|
|
|
346
382
|
}
|
|
347
383
|
},
|
|
348
384
|
"additionalProperties" : false
|
|
385
|
+
},
|
|
386
|
+
"PersonalName" : {
|
|
387
|
+
"type" : "object",
|
|
388
|
+
"properties" : {
|
|
389
|
+
"firstName" : {
|
|
390
|
+
"type" : "string"
|
|
391
|
+
},
|
|
392
|
+
"surname" : {
|
|
393
|
+
"type" : "string"
|
|
394
|
+
},
|
|
395
|
+
"surnamePrefix" : {
|
|
396
|
+
"type" : "string"
|
|
397
|
+
},
|
|
398
|
+
"title" : {
|
|
399
|
+
"type" : "string"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"additionalProperties" : false
|
|
403
|
+
},
|
|
404
|
+
"Shipping" : {
|
|
405
|
+
"type" : "object",
|
|
406
|
+
"properties" : {
|
|
407
|
+
"address" : {
|
|
408
|
+
"$ref" : "#/definitions/AddressPersonal"
|
|
409
|
+
},
|
|
410
|
+
"addressIndicator" : {
|
|
411
|
+
"type" : "string"
|
|
412
|
+
},
|
|
413
|
+
"carrier" : {
|
|
414
|
+
"type" : "string"
|
|
415
|
+
},
|
|
416
|
+
"comments" : {
|
|
417
|
+
"type" : "string"
|
|
418
|
+
},
|
|
419
|
+
"emailAddress" : {
|
|
420
|
+
"type" : "string"
|
|
421
|
+
},
|
|
422
|
+
"firstUsageDate" : {
|
|
423
|
+
"type" : "string"
|
|
424
|
+
},
|
|
425
|
+
"instructions" : {
|
|
426
|
+
"type" : "string"
|
|
427
|
+
},
|
|
428
|
+
"isFirstUsage" : {
|
|
429
|
+
"type" : "boolean"
|
|
430
|
+
},
|
|
431
|
+
"shippedFromZip" : {
|
|
432
|
+
"type" : "string"
|
|
433
|
+
},
|
|
434
|
+
"trackingNumber" : {
|
|
435
|
+
"type" : "string"
|
|
436
|
+
},
|
|
437
|
+
"type" : {
|
|
438
|
+
"type" : "string"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"additionalProperties" : false
|
|
349
442
|
}
|
|
350
443
|
}
|
|
351
444
|
}
|
|
@@ -501,6 +501,9 @@
|
|
|
501
501
|
"card" : {
|
|
502
502
|
"$ref" : "#/definitions/Card"
|
|
503
503
|
},
|
|
504
|
+
"clickToPay" : {
|
|
505
|
+
"$ref" : "#/definitions/ClickToPayInput"
|
|
506
|
+
},
|
|
504
507
|
"customerReference" : {
|
|
505
508
|
"type" : "string"
|
|
506
509
|
},
|
|
@@ -723,6 +726,15 @@
|
|
|
723
726
|
},
|
|
724
727
|
"additionalProperties" : false
|
|
725
728
|
},
|
|
729
|
+
"ClickToPayInput" : {
|
|
730
|
+
"type" : "object",
|
|
731
|
+
"properties" : {
|
|
732
|
+
"checkoutResponseSignature" : {
|
|
733
|
+
"type" : "string"
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
"additionalProperties" : false
|
|
737
|
+
},
|
|
726
738
|
"CompanyInformation" : {
|
|
727
739
|
"type" : "object",
|
|
728
740
|
"properties" : {
|