connect-sdk-nodejs 6.2.0 → 6.3.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/v6.2.0",
12
+ sdkIdentifier: "NodejsServerSDK/v6.3.0",
13
13
  platformIdentifier: `${process.env["OS"]} Node.js/${process.versions.node}`,
14
14
  integrator: sdkContext.getIntegrator()
15
15
  };
@@ -45,6 +45,18 @@ export interface AbstractIndicator {
45
45
  name?: string | null;
46
46
  value?: string | null;
47
47
  }
48
+ export interface AbstractMobilePaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
49
+ authorizationMode?: string | null;
50
+ customerReference?: string | null;
51
+ initialSchemeTransactionId?: string | null;
52
+ recurring?: CardRecurrenceDetails | null;
53
+ requiresApproval?: boolean | null;
54
+ skipFraudService?: boolean | null;
55
+ token?: string | null;
56
+ tokenize?: boolean | null;
57
+ unscheduledCardOnFileRequestor?: string | null;
58
+ unscheduledCardOnFileSequenceIndicator?: string | null;
59
+ }
48
60
  export interface AbstractOrderStatus {
49
61
  id?: string | null;
50
62
  }
@@ -258,6 +270,9 @@ export interface ApproveTokenRequest extends MandateApproval {
258
270
  }
259
271
  export interface AuthenticationIndicator extends AbstractIndicator {
260
272
  }
273
+ export interface AutomaticReloadBillingDetails extends BaseBillingDetails {
274
+ automaticReloadPaymentThresholdAmount?: number | null;
275
+ }
261
276
  export interface BankAccount {
262
277
  accountHolderName?: string | null;
263
278
  }
@@ -318,6 +333,9 @@ export interface BankTransferPayoutMethodSpecificInput extends AbstractPayoutMet
318
333
  payoutText?: string | null;
319
334
  swiftCode?: string | null;
320
335
  }
336
+ export interface BaseBillingDetails {
337
+ description?: string | null;
338
+ }
321
339
  export interface BoletoBancarioRequirednessValidator {
322
340
  fiscalNumberLength?: number | null;
323
341
  }
@@ -454,6 +472,8 @@ export interface CashPaymentMethodSpecificInput extends AbstractCashPaymentMetho
454
472
  */
455
473
  paymentProduct1503SpecificInput?: CashPaymentProduct1503SpecificInput | null;
456
474
  paymentProduct1504SpecificInput?: CashPaymentProduct1504SpecificInput | null;
475
+ paymentProduct1506SpecificInput?: CashPaymentProduct1506SpecificInput | null;
476
+ paymentProduct1508SpecificInput?: CashPaymentProduct1508SpecificInput | null;
457
477
  paymentProduct1521SpecificInput?: CashPaymentProduct1521SpecificInput | null;
458
478
  paymentProduct1522SpecificInput?: CashPaymentProduct1522SpecificInput | null;
459
479
  paymentProduct1523SpecificInput?: CashPaymentProduct1523SpecificInput | null;
@@ -476,6 +496,10 @@ export interface CashPaymentProduct1503SpecificInput {
476
496
  }
477
497
  export interface CashPaymentProduct1504SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
478
498
  }
499
+ export interface CashPaymentProduct1506SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
500
+ }
501
+ export interface CashPaymentProduct1508SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
502
+ }
479
503
  export interface CashPaymentProduct1521SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
480
504
  }
481
505
  export interface CashPaymentProduct1522SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
@@ -489,6 +513,20 @@ export interface CashPaymentProduct1526SpecificInput extends CashPaymentProductW
489
513
  export interface CashPaymentProductWithRedirectSpecificInputBase {
490
514
  returnUrl?: string | null;
491
515
  }
516
+ export interface ClickToPayConfiguration {
517
+ mastercard?: ClickToPayConfigurationMastercard | null;
518
+ visa?: ClickToPayConfigurationVisa | null;
519
+ }
520
+ export interface ClickToPayConfigurationMastercard extends ClickToPaySchemeConfigurationBase {
521
+ }
522
+ export interface ClickToPayConfigurationVisa extends ClickToPaySchemeConfigurationBase {
523
+ encryptionKey?: string | null;
524
+ nModulus?: string | null;
525
+ }
526
+ export interface ClickToPaySchemeConfigurationBase {
527
+ srcDpaId?: string | null;
528
+ srcInitiatorId?: string | null;
529
+ }
492
530
  export interface CompanyInformation {
493
531
  dateOfIncorporation?: string | null;
494
532
  name?: string | null;
@@ -802,6 +840,12 @@ export interface DecryptedPaymentData {
802
840
  pan?: string | null;
803
841
  paymentMethod?: string | null;
804
842
  }
843
+ export interface DeferredBillingDetails extends BaseBillingDetails {
844
+ deferredPaymentAmount?: number | null;
845
+ deferredPaymentDate?: string | null;
846
+ freeCancellationDate?: string | null;
847
+ freeCancellationDateTimeZone?: string | null;
848
+ }
805
849
  export interface DeviceFingerprintDetails {
806
850
  paymentId?: string | null;
807
851
  rawDeviceFingerprintOutput?: string | null;
@@ -1373,29 +1417,26 @@ export interface MobilePaymentData {
1373
1417
  dpan?: string | null;
1374
1418
  expiryDate?: string | null;
1375
1419
  }
1376
- export interface MobilePaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
1377
- authorizationMode?: string | null;
1378
- customerReference?: string | null;
1420
+ export interface MobilePaymentMethodSpecificInput extends AbstractMobilePaymentMethodSpecificInput {
1379
1421
  decryptedPaymentData?: DecryptedPaymentData | null;
1380
1422
  encryptedPaymentData?: string | null;
1423
+ isRecurring?: boolean | null;
1424
+ merchantInitiatedReasonIndicator?: string | null;
1381
1425
  paymentProduct320SpecificInput?: MobilePaymentProduct320SpecificInput | null;
1382
- requiresApproval?: boolean | null;
1383
- skipFraudService?: boolean | null;
1384
1426
  }
1385
- export interface MobilePaymentMethodSpecificInputHostedCheckout extends AbstractPaymentMethodSpecificInput {
1386
- authorizationMode?: string | null;
1387
- customerReference?: string | null;
1427
+ export interface MobilePaymentMethodSpecificInputHostedCheckout extends AbstractMobilePaymentMethodSpecificInput {
1388
1428
  paymentProduct302SpecificInput?: MobilePaymentProduct302SpecificInputHostedCheckout | null;
1389
1429
  paymentProduct320SpecificInput?: MobilePaymentProduct320SpecificInputHostedCheckout | null;
1390
- requiresApproval?: boolean | null;
1391
- skipFraudService?: boolean | null;
1392
1430
  }
1393
1431
  export interface MobilePaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
1394
1432
  authorisationCode?: string | null;
1395
1433
  fraudResults?: CardFraudResults | null;
1434
+ initialSchemeTransactionId?: string | null;
1396
1435
  network?: string | null;
1397
1436
  paymentData?: MobilePaymentData | null;
1437
+ schemeTransactionId?: string | null;
1398
1438
  threeDSecureResults?: ThreeDSecureResults | null;
1439
+ token?: string | null;
1399
1440
  }
1400
1441
  export interface MobilePaymentProduct302SpecificInputHostedCheckout {
1401
1442
  businessName?: string | null;
@@ -1601,12 +1642,14 @@ export interface PaymentOutput extends OrderOutput {
1601
1642
  export interface PaymentProduct {
1602
1643
  accountsOnFile?: AccountOnFile[] | null;
1603
1644
  acquirerCountry?: string | null;
1645
+ allowsClickToPay?: boolean | null;
1604
1646
  allowsInstallments?: boolean | null;
1605
1647
  allowsRecurring?: boolean | null;
1606
1648
  allowsTokenization?: boolean | null;
1607
1649
  authenticationIndicator?: AuthenticationIndicator | null;
1608
1650
  autoTokenized?: boolean | null;
1609
1651
  canBeIframed?: boolean | null;
1652
+ clickToPayConfiguration?: ClickToPayConfiguration | null;
1610
1653
  deviceFingerprintEnabled?: boolean | null;
1611
1654
  displayHints?: PaymentProductDisplayHints | null;
1612
1655
  fields?: PaymentProductField[] | null;
@@ -1628,6 +1671,16 @@ export interface PaymentProduct {
1628
1671
  export interface PaymentProduct302SpecificData {
1629
1672
  networks?: string[] | null;
1630
1673
  }
1674
+ export interface PaymentProduct302SpecificInput {
1675
+ automaticReloadBilling?: AutomaticReloadBillingDetails | null;
1676
+ billingAgreement?: string | null;
1677
+ deferredBilling?: DeferredBillingDetails | null;
1678
+ managementUrl?: string | null;
1679
+ paymentDescription?: string | null;
1680
+ regularBilling?: RecurringBillingDetails | null;
1681
+ tokenNotificationUrl?: string | null;
1682
+ trialBilling?: RecurringBillingDetails | null;
1683
+ }
1631
1684
  export interface PaymentProduct3201SpecificOutput {
1632
1685
  card?: CardEssentials | null;
1633
1686
  }
@@ -1745,7 +1798,9 @@ export interface PaymentProductFiltersHostedCheckout {
1745
1798
  }
1746
1799
  export interface PaymentProductGroup {
1747
1800
  accountsOnFile?: AccountOnFile[] | null;
1801
+ allowsClickToPay?: boolean | null;
1748
1802
  allowsInstallments?: boolean | null;
1803
+ clickToPayConfiguration?: ClickToPayConfiguration | null;
1749
1804
  deviceFingerprintEnabled?: boolean | null;
1750
1805
  displayHints?: PaymentProductDisplayHints | null;
1751
1806
  fields?: PaymentProductField[] | null;
@@ -1855,8 +1910,13 @@ export interface RangeValidator {
1855
1910
  maxValue?: number | null;
1856
1911
  minValue?: number | null;
1857
1912
  }
1913
+ export interface RecurringBillingDetails extends BaseBillingDetails {
1914
+ }
1858
1915
  export interface RecurringPaymentsData {
1916
+ paymentProduct302SpecificInput?: PaymentProduct302SpecificInput | null;
1917
+ recurringEndDate?: string | null;
1859
1918
  recurringInterval?: Frequency | null;
1919
+ recurringStartDate?: string | null;
1860
1920
  trialInformation?: TrialInformation | null;
1861
1921
  }
1862
1922
  export interface RedirectData extends RedirectDataBase {
@@ -2241,6 +2301,7 @@ export interface TrialInformation {
2241
2301
  amountOfMoneyAfterTrial?: AmountOfMoney | null;
2242
2302
  endDate?: string | null;
2243
2303
  isRecurring?: boolean | null;
2304
+ startDate?: string | null;
2244
2305
  trialPeriod?: TrialPeriod | null;
2245
2306
  trialPeriodRecurring?: Frequency | null;
2246
2307
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connect-sdk-nodejs",
3
- "version": "6.2.0",
3
+ "version": "6.3.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": {
@@ -379,6 +379,19 @@
379
379
  },
380
380
  "additionalProperties" : false
381
381
  },
382
+ "AutomaticReloadBillingDetails" : {
383
+ "type" : "object",
384
+ "properties" : {
385
+ "automaticReloadPaymentThresholdAmount" : {
386
+ "type" : "integer",
387
+ "maximum" : 9223372036854775807
388
+ },
389
+ "description" : {
390
+ "type" : "string"
391
+ }
392
+ },
393
+ "additionalProperties" : false
394
+ },
382
395
  "BankAccountIban" : {
383
396
  "type" : "object",
384
397
  "properties" : {
@@ -735,6 +748,28 @@
735
748
  },
736
749
  "additionalProperties" : false
737
750
  },
751
+ "DeferredBillingDetails" : {
752
+ "type" : "object",
753
+ "properties" : {
754
+ "deferredPaymentAmount" : {
755
+ "type" : "integer",
756
+ "maximum" : 9223372036854775807
757
+ },
758
+ "deferredPaymentDate" : {
759
+ "type" : "string"
760
+ },
761
+ "description" : {
762
+ "type" : "string"
763
+ },
764
+ "freeCancellationDate" : {
765
+ "type" : "string"
766
+ },
767
+ "freeCancellationDateTimeZone" : {
768
+ "type" : "string"
769
+ }
770
+ },
771
+ "additionalProperties" : false
772
+ },
738
773
  "DeviceRenderOptions" : {
739
774
  "type" : "object",
740
775
  "properties" : {
@@ -1292,6 +1327,9 @@
1292
1327
  "customerReference" : {
1293
1328
  "type" : "string"
1294
1329
  },
1330
+ "initialSchemeTransactionId" : {
1331
+ "type" : "string"
1332
+ },
1295
1333
  "paymentProduct302SpecificInput" : {
1296
1334
  "$ref" : "#/definitions/MobilePaymentProduct302SpecificInputHostedCheckout"
1297
1335
  },
@@ -1302,11 +1340,26 @@
1302
1340
  "type" : "integer",
1303
1341
  "maximum" : 2147483647
1304
1342
  },
1343
+ "recurring" : {
1344
+ "$ref" : "#/definitions/CardRecurrenceDetails"
1345
+ },
1305
1346
  "requiresApproval" : {
1306
1347
  "type" : "boolean"
1307
1348
  },
1308
1349
  "skipFraudService" : {
1309
1350
  "type" : "boolean"
1351
+ },
1352
+ "token" : {
1353
+ "type" : "string"
1354
+ },
1355
+ "tokenize" : {
1356
+ "type" : "boolean"
1357
+ },
1358
+ "unscheduledCardOnFileRequestor" : {
1359
+ "type" : "string"
1360
+ },
1361
+ "unscheduledCardOnFileSequenceIndicator" : {
1362
+ "type" : "string"
1310
1363
  }
1311
1364
  },
1312
1365
  "additionalProperties" : false
@@ -1509,6 +1562,36 @@
1509
1562
  },
1510
1563
  "additionalProperties" : false
1511
1564
  },
1565
+ "PaymentProduct302SpecificInput" : {
1566
+ "type" : "object",
1567
+ "properties" : {
1568
+ "automaticReloadBilling" : {
1569
+ "$ref" : "#/definitions/AutomaticReloadBillingDetails"
1570
+ },
1571
+ "billingAgreement" : {
1572
+ "type" : "string"
1573
+ },
1574
+ "deferredBilling" : {
1575
+ "$ref" : "#/definitions/DeferredBillingDetails"
1576
+ },
1577
+ "managementUrl" : {
1578
+ "type" : "string"
1579
+ },
1580
+ "paymentDescription" : {
1581
+ "type" : "string"
1582
+ },
1583
+ "regularBilling" : {
1584
+ "$ref" : "#/definitions/RecurringBillingDetails"
1585
+ },
1586
+ "tokenNotificationUrl" : {
1587
+ "type" : "string"
1588
+ },
1589
+ "trialBilling" : {
1590
+ "$ref" : "#/definitions/RecurringBillingDetails"
1591
+ }
1592
+ },
1593
+ "additionalProperties" : false
1594
+ },
1512
1595
  "PaymentProductFilter" : {
1513
1596
  "type" : "object",
1514
1597
  "properties" : {
@@ -1598,12 +1681,30 @@
1598
1681
  },
1599
1682
  "additionalProperties" : false
1600
1683
  },
1684
+ "RecurringBillingDetails" : {
1685
+ "type" : "object",
1686
+ "properties" : {
1687
+ "description" : {
1688
+ "type" : "string"
1689
+ }
1690
+ },
1691
+ "additionalProperties" : false
1692
+ },
1601
1693
  "RecurringPaymentsData" : {
1602
1694
  "type" : "object",
1603
1695
  "properties" : {
1696
+ "paymentProduct302SpecificInput" : {
1697
+ "$ref" : "#/definitions/PaymentProduct302SpecificInput"
1698
+ },
1699
+ "recurringEndDate" : {
1700
+ "type" : "string"
1701
+ },
1604
1702
  "recurringInterval" : {
1605
1703
  "$ref" : "#/definitions/Frequency"
1606
1704
  },
1705
+ "recurringStartDate" : {
1706
+ "type" : "string"
1707
+ },
1607
1708
  "trialInformation" : {
1608
1709
  "$ref" : "#/definitions/TrialInformation"
1609
1710
  }
@@ -1917,6 +2018,9 @@
1917
2018
  "isRecurring" : {
1918
2019
  "type" : "boolean"
1919
2020
  },
2021
+ "startDate" : {
2022
+ "type" : "string"
2023
+ },
1920
2024
  "trialPeriod" : {
1921
2025
  "$ref" : "#/definitions/TrialPeriod"
1922
2026
  },
@@ -590,6 +590,12 @@
590
590
  "paymentProduct1504SpecificInput" : {
591
591
  "$ref" : "#/definitions/CashPaymentProduct1504SpecificInput"
592
592
  },
593
+ "paymentProduct1506SpecificInput" : {
594
+ "$ref" : "#/definitions/CashPaymentProduct1506SpecificInput"
595
+ },
596
+ "paymentProduct1508SpecificInput" : {
597
+ "$ref" : "#/definitions/CashPaymentProduct1508SpecificInput"
598
+ },
593
599
  "paymentProduct1521SpecificInput" : {
594
600
  "$ref" : "#/definitions/CashPaymentProduct1521SpecificInput"
595
601
  },
@@ -630,6 +636,24 @@
630
636
  },
631
637
  "additionalProperties" : false
632
638
  },
639
+ "CashPaymentProduct1506SpecificInput" : {
640
+ "type" : "object",
641
+ "properties" : {
642
+ "returnUrl" : {
643
+ "type" : "string"
644
+ }
645
+ },
646
+ "additionalProperties" : false
647
+ },
648
+ "CashPaymentProduct1508SpecificInput" : {
649
+ "type" : "object",
650
+ "properties" : {
651
+ "returnUrl" : {
652
+ "type" : "string"
653
+ }
654
+ },
655
+ "additionalProperties" : false
656
+ },
633
657
  "CashPaymentProduct1521SpecificInput" : {
634
658
  "type" : "object",
635
659
  "properties" : {
@@ -1514,6 +1538,15 @@
1514
1538
  "encryptedPaymentData" : {
1515
1539
  "type" : "string"
1516
1540
  },
1541
+ "initialSchemeTransactionId" : {
1542
+ "type" : "string"
1543
+ },
1544
+ "isRecurring" : {
1545
+ "type" : "boolean"
1546
+ },
1547
+ "merchantInitiatedReasonIndicator" : {
1548
+ "type" : "string"
1549
+ },
1517
1550
  "paymentProduct320SpecificInput" : {
1518
1551
  "$ref" : "#/definitions/MobilePaymentProduct320SpecificInput"
1519
1552
  },
@@ -1521,11 +1554,26 @@
1521
1554
  "type" : "integer",
1522
1555
  "maximum" : 2147483647
1523
1556
  },
1557
+ "recurring" : {
1558
+ "$ref" : "#/definitions/CardRecurrenceDetails"
1559
+ },
1524
1560
  "requiresApproval" : {
1525
1561
  "type" : "boolean"
1526
1562
  },
1527
1563
  "skipFraudService" : {
1528
1564
  "type" : "boolean"
1565
+ },
1566
+ "token" : {
1567
+ "type" : "string"
1568
+ },
1569
+ "tokenize" : {
1570
+ "type" : "boolean"
1571
+ },
1572
+ "unscheduledCardOnFileRequestor" : {
1573
+ "type" : "string"
1574
+ },
1575
+ "unscheduledCardOnFileSequenceIndicator" : {
1576
+ "type" : "string"
1529
1577
  }
1530
1578
  },
1531
1579
  "additionalProperties" : false