connect-sdk-nodejs 6.1.0 → 6.2.1

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.1.0",
12
+ sdkIdentifier: "NodejsServerSDK/v6.2.1",
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
  }
@@ -802,6 +820,11 @@ export interface DecryptedPaymentData {
802
820
  pan?: string | null;
803
821
  paymentMethod?: string | null;
804
822
  }
823
+ export interface DeferredBillingDetails extends BaseBillingDetails {
824
+ deferredPaymentDate?: string | null;
825
+ freeCancellationDate?: string | null;
826
+ freeCancellationDateTimeZone?: string | null;
827
+ }
805
828
  export interface DeviceFingerprintDetails {
806
829
  paymentId?: string | null;
807
830
  rawDeviceFingerprintOutput?: string | null;
@@ -1373,29 +1396,26 @@ export interface MobilePaymentData {
1373
1396
  dpan?: string | null;
1374
1397
  expiryDate?: string | null;
1375
1398
  }
1376
- export interface MobilePaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
1377
- authorizationMode?: string | null;
1378
- customerReference?: string | null;
1399
+ export interface MobilePaymentMethodSpecificInput extends AbstractMobilePaymentMethodSpecificInput {
1379
1400
  decryptedPaymentData?: DecryptedPaymentData | null;
1380
1401
  encryptedPaymentData?: string | null;
1402
+ isRecurring?: boolean | null;
1403
+ merchantInitiatedReasonIndicator?: string | null;
1381
1404
  paymentProduct320SpecificInput?: MobilePaymentProduct320SpecificInput | null;
1382
- requiresApproval?: boolean | null;
1383
- skipFraudService?: boolean | null;
1384
1405
  }
1385
- export interface MobilePaymentMethodSpecificInputHostedCheckout extends AbstractPaymentMethodSpecificInput {
1386
- authorizationMode?: string | null;
1387
- customerReference?: string | null;
1406
+ export interface MobilePaymentMethodSpecificInputHostedCheckout extends AbstractMobilePaymentMethodSpecificInput {
1388
1407
  paymentProduct302SpecificInput?: MobilePaymentProduct302SpecificInputHostedCheckout | null;
1389
1408
  paymentProduct320SpecificInput?: MobilePaymentProduct320SpecificInputHostedCheckout | null;
1390
- requiresApproval?: boolean | null;
1391
- skipFraudService?: boolean | null;
1392
1409
  }
1393
1410
  export interface MobilePaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
1394
1411
  authorisationCode?: string | null;
1395
1412
  fraudResults?: CardFraudResults | null;
1413
+ initialSchemeTransactionId?: string | null;
1396
1414
  network?: string | null;
1397
1415
  paymentData?: MobilePaymentData | null;
1416
+ schemeTransactionId?: string | null;
1398
1417
  threeDSecureResults?: ThreeDSecureResults | null;
1418
+ token?: string | null;
1399
1419
  }
1400
1420
  export interface MobilePaymentProduct302SpecificInputHostedCheckout {
1401
1421
  businessName?: string | null;
@@ -1628,6 +1648,16 @@ export interface PaymentProduct {
1628
1648
  export interface PaymentProduct302SpecificData {
1629
1649
  networks?: string[] | null;
1630
1650
  }
1651
+ export interface PaymentProduct302SpecificInput {
1652
+ automaticReloadBilling?: AutomaticReloadBillingDetails | null;
1653
+ billingAgreement?: string | null;
1654
+ deferredBilling?: DeferredBillingDetails | null;
1655
+ managementUrl?: string | null;
1656
+ paymentDescription?: string | null;
1657
+ regularBilling?: RecurringBillingDetails | null;
1658
+ tokenNotificationUrl?: string | null;
1659
+ trialBilling?: RecurringBillingDetails | null;
1660
+ }
1631
1661
  export interface PaymentProduct3201SpecificOutput {
1632
1662
  card?: CardEssentials | null;
1633
1663
  }
@@ -1855,8 +1885,13 @@ export interface RangeValidator {
1855
1885
  maxValue?: number | null;
1856
1886
  minValue?: number | null;
1857
1887
  }
1888
+ export interface RecurringBillingDetails extends BaseBillingDetails {
1889
+ }
1858
1890
  export interface RecurringPaymentsData {
1891
+ paymentProduct302SpecificInput?: PaymentProduct302SpecificInput | null;
1892
+ recurringEndDate?: string | null;
1859
1893
  recurringInterval?: Frequency | null;
1894
+ recurringStartDate?: string | null;
1860
1895
  trialInformation?: TrialInformation | null;
1861
1896
  }
1862
1897
  export interface RedirectData extends RedirectDataBase {
@@ -2241,6 +2276,7 @@ export interface TrialInformation {
2241
2276
  amountOfMoneyAfterTrial?: AmountOfMoney | null;
2242
2277
  endDate?: string | null;
2243
2278
  isRecurring?: boolean | null;
2279
+ startDate?: string | null;
2244
2280
  trialPeriod?: TrialPeriod | null;
2245
2281
  trialPeriodRecurring?: Frequency | null;
2246
2282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connect-sdk-nodejs",
3
- "version": "6.1.0",
3
+ "version": "6.2.1",
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,24 @@
735
748
  },
736
749
  "additionalProperties" : false
737
750
  },
751
+ "DeferredBillingDetails" : {
752
+ "type" : "object",
753
+ "properties" : {
754
+ "deferredPaymentDate" : {
755
+ "type" : "string"
756
+ },
757
+ "description" : {
758
+ "type" : "string"
759
+ },
760
+ "freeCancellationDate" : {
761
+ "type" : "string"
762
+ },
763
+ "freeCancellationDateTimeZone" : {
764
+ "type" : "string"
765
+ }
766
+ },
767
+ "additionalProperties" : false
768
+ },
738
769
  "DeviceRenderOptions" : {
739
770
  "type" : "object",
740
771
  "properties" : {
@@ -1292,6 +1323,9 @@
1292
1323
  "customerReference" : {
1293
1324
  "type" : "string"
1294
1325
  },
1326
+ "initialSchemeTransactionId" : {
1327
+ "type" : "string"
1328
+ },
1295
1329
  "paymentProduct302SpecificInput" : {
1296
1330
  "$ref" : "#/definitions/MobilePaymentProduct302SpecificInputHostedCheckout"
1297
1331
  },
@@ -1302,11 +1336,26 @@
1302
1336
  "type" : "integer",
1303
1337
  "maximum" : 2147483647
1304
1338
  },
1339
+ "recurring" : {
1340
+ "$ref" : "#/definitions/CardRecurrenceDetails"
1341
+ },
1305
1342
  "requiresApproval" : {
1306
1343
  "type" : "boolean"
1307
1344
  },
1308
1345
  "skipFraudService" : {
1309
1346
  "type" : "boolean"
1347
+ },
1348
+ "token" : {
1349
+ "type" : "string"
1350
+ },
1351
+ "tokenize" : {
1352
+ "type" : "boolean"
1353
+ },
1354
+ "unscheduledCardOnFileRequestor" : {
1355
+ "type" : "string"
1356
+ },
1357
+ "unscheduledCardOnFileSequenceIndicator" : {
1358
+ "type" : "string"
1310
1359
  }
1311
1360
  },
1312
1361
  "additionalProperties" : false
@@ -1509,6 +1558,36 @@
1509
1558
  },
1510
1559
  "additionalProperties" : false
1511
1560
  },
1561
+ "PaymentProduct302SpecificInput" : {
1562
+ "type" : "object",
1563
+ "properties" : {
1564
+ "automaticReloadBilling" : {
1565
+ "$ref" : "#/definitions/AutomaticReloadBillingDetails"
1566
+ },
1567
+ "billingAgreement" : {
1568
+ "type" : "string"
1569
+ },
1570
+ "deferredBilling" : {
1571
+ "$ref" : "#/definitions/DeferredBillingDetails"
1572
+ },
1573
+ "managementUrl" : {
1574
+ "type" : "string"
1575
+ },
1576
+ "paymentDescription" : {
1577
+ "type" : "string"
1578
+ },
1579
+ "regularBilling" : {
1580
+ "$ref" : "#/definitions/RecurringBillingDetails"
1581
+ },
1582
+ "tokenNotificationUrl" : {
1583
+ "type" : "string"
1584
+ },
1585
+ "trialBilling" : {
1586
+ "$ref" : "#/definitions/RecurringBillingDetails"
1587
+ }
1588
+ },
1589
+ "additionalProperties" : false
1590
+ },
1512
1591
  "PaymentProductFilter" : {
1513
1592
  "type" : "object",
1514
1593
  "properties" : {
@@ -1598,12 +1677,30 @@
1598
1677
  },
1599
1678
  "additionalProperties" : false
1600
1679
  },
1680
+ "RecurringBillingDetails" : {
1681
+ "type" : "object",
1682
+ "properties" : {
1683
+ "description" : {
1684
+ "type" : "string"
1685
+ }
1686
+ },
1687
+ "additionalProperties" : false
1688
+ },
1601
1689
  "RecurringPaymentsData" : {
1602
1690
  "type" : "object",
1603
1691
  "properties" : {
1692
+ "paymentProduct302SpecificInput" : {
1693
+ "$ref" : "#/definitions/PaymentProduct302SpecificInput"
1694
+ },
1695
+ "recurringEndDate" : {
1696
+ "type" : "string"
1697
+ },
1604
1698
  "recurringInterval" : {
1605
1699
  "$ref" : "#/definitions/Frequency"
1606
1700
  },
1701
+ "recurringStartDate" : {
1702
+ "type" : "string"
1703
+ },
1607
1704
  "trialInformation" : {
1608
1705
  "$ref" : "#/definitions/TrialInformation"
1609
1706
  }
@@ -1917,6 +2014,9 @@
1917
2014
  "isRecurring" : {
1918
2015
  "type" : "boolean"
1919
2016
  },
2017
+ "startDate" : {
2018
+ "type" : "string"
2019
+ },
1920
2020
  "trialPeriod" : {
1921
2021
  "$ref" : "#/definitions/TrialPeriod"
1922
2022
  },
@@ -1514,6 +1514,15 @@
1514
1514
  "encryptedPaymentData" : {
1515
1515
  "type" : "string"
1516
1516
  },
1517
+ "initialSchemeTransactionId" : {
1518
+ "type" : "string"
1519
+ },
1520
+ "isRecurring" : {
1521
+ "type" : "boolean"
1522
+ },
1523
+ "merchantInitiatedReasonIndicator" : {
1524
+ "type" : "string"
1525
+ },
1517
1526
  "paymentProduct320SpecificInput" : {
1518
1527
  "$ref" : "#/definitions/MobilePaymentProduct320SpecificInput"
1519
1528
  },
@@ -1521,11 +1530,26 @@
1521
1530
  "type" : "integer",
1522
1531
  "maximum" : 2147483647
1523
1532
  },
1533
+ "recurring" : {
1534
+ "$ref" : "#/definitions/CardRecurrenceDetails"
1535
+ },
1524
1536
  "requiresApproval" : {
1525
1537
  "type" : "boolean"
1526
1538
  },
1527
1539
  "skipFraudService" : {
1528
1540
  "type" : "boolean"
1541
+ },
1542
+ "token" : {
1543
+ "type" : "string"
1544
+ },
1545
+ "tokenize" : {
1546
+ "type" : "boolean"
1547
+ },
1548
+ "unscheduledCardOnFileRequestor" : {
1549
+ "type" : "string"
1550
+ },
1551
+ "unscheduledCardOnFileSequenceIndicator" : {
1552
+ "type" : "string"
1529
1553
  }
1530
1554
  },
1531
1555
  "additionalProperties" : false