mangopay4-nodejs-sdk 1.67.0 → 2.0.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +0 -6
  3. package/docs/templates/class.mustache +0 -0
  4. package/docs/templates/file.mustache +0 -0
  5. package/docs/templates/function.mustache +0 -0
  6. package/docs/templates/index.mustache +0 -0
  7. package/docs/templates/overview.mustache +0 -0
  8. package/lib/apiMethods.js +10 -3
  9. package/lib/models/CardPreAuthorization.js +2 -2
  10. package/lib/models/PayInPaymentType.js +0 -1
  11. package/lib/models/ReportFilterV2.js +2 -1
  12. package/lib/services/Acquiring.js +152 -0
  13. package/lib/services/PayIns.js +0 -18
  14. package/lib/services/index.js +2 -1
  15. package/package.json +16 -24
  16. package/typings/enums.d.ts +0 -1
  17. package/typings/index.d.ts +5 -5
  18. package/typings/index.test-d.ts +0 -15
  19. package/typings/models/acquiring.d.ts +763 -0
  20. package/typings/models/payIn.d.ts +20 -80
  21. package/typings/models/refund.d.ts +1 -0
  22. package/typings/models/reportV2.d.ts +2 -0
  23. package/typings/services/Acquiring.d.ts +44 -0
  24. package/typings/services/PayIns.d.ts +0 -8
  25. package/typings/types.d.ts +0 -2
  26. package/.github/workflows/node.js.yml +0 -32
  27. package/.github/workflows/npm-publish.yml +0 -26
  28. package/.jshintrc +0 -16
  29. package/lib/models/PayInPaymentDetailsPayconiq.js +0 -23
  30. package/test/TestKycPageFile.png +0 -0
  31. package/test/helpers.js +0 -1536
  32. package/test/main.js +0 -10
  33. package/test/mocha.opts +0 -3
  34. package/test/services/BankAccounts.js +0 -46
  35. package/test/services/BankingAliases.js +0 -89
  36. package/test/services/CardPreAuthorizations.js +0 -70
  37. package/test/services/CardRegistrations.js +0 -239
  38. package/test/services/Cards.js +0 -56
  39. package/test/services/Clients.js +0 -235
  40. package/test/services/Conversions.js +0 -319
  41. package/test/services/Deposits.js +0 -148
  42. package/test/services/Disputes.js +0 -542
  43. package/test/services/EMoney.js +0 -54
  44. package/test/services/Events.js +0 -147
  45. package/test/services/Hooks.js +0 -109
  46. package/test/services/Idempotency.js +0 -41
  47. package/test/services/IdentityVerifications.js +0 -68
  48. package/test/services/KycDocuments.js +0 -73
  49. package/test/services/Mandates.js +0 -256
  50. package/test/services/PayIns.js +0 -2748
  51. package/test/services/PayOuts.js +0 -119
  52. package/test/services/RateLimit.js +0 -43
  53. package/test/services/Recipients.js +0 -234
  54. package/test/services/Refunds.js +0 -123
  55. package/test/services/Regulatory.js +0 -45
  56. package/test/services/Reports.js +0 -114
  57. package/test/services/ReportsV2.js +0 -306
  58. package/test/services/Repudiations.js +0 -22
  59. package/test/services/Settlements.js +0 -127
  60. package/test/services/Tokens.js +0 -55
  61. package/test/services/Transfers.js +0 -137
  62. package/test/services/UboDeclarations.js +0 -130
  63. package/test/services/Users.js +0 -1322
  64. package/test/services/VirtualAccounts.js +0 -105
  65. package/test/services/Wallets.js +0 -132
  66. package/test/settlement_sample.csv +0 -8
  67. package/test/settlement_sample_bad.csv +0 -8
package/CHANGELOG.md CHANGED
@@ -1,3 +1,42 @@
1
+ ## [2.0.0] - 2026-05-27
2
+
3
+ > **⚠️ Breaking release.** This version raises the minimum required Node.js version and bumps several dependencies. The runtime API of the SDK is unchanged — no method signatures, models, or TypeScript typings were modified — but please review the notes below before upgrading.
4
+
5
+ ### Breaking change - Minimum Node.js version raised to 22
6
+ - `engines.node` is now `>=22.0.0` (previously `>= v0.10.0`).
7
+ - Installing the SDK on Node < 22 will produce an `EBADENGINE` warning and is no longer supported. Upgrade your runtime before installing `2.0.0`.
8
+ - `@types/node` is now pinned to `22.19.18`. Projects on older `@types/node` may see type drift in transitive types and should align their version.
9
+
10
+ ### Breaking change - Dependency upgrades
11
+ Runtime and dev dependencies have been bumped to current versions to clear transitive vulnerabilities and align with the new Node 22 baseline:
12
+
13
+ - Runtime: `axios` `1.12.0` → `1.16.0`, `form-data` `4.0.4` → `4.0.5`, `promise` `8.1.x` → `8.3.0`, `underscore` `1.12.x` → `1.13.8`, `@types/node` `14.14.x` → `22.19.18`.
14
+ - Dev: `mocha` `9.2.0` → `11.7.5`, `chai` `4.2.x` → `4.5.0`, `sinon` `9.2.x` → `21.0.1`, `typescript` `4.1.x` → `6.0.3`, `ts-node` `^9.1.1` → `10.9.2`, `tsd` `^0.30.4` → `0.33.0`.
15
+ - Projects that depend on the older transitive versions (for example, code relying on Axios `1.12` request/response shapes) should re-test their integration against `2.0.0`.
16
+
17
+ ### Changed - Source repository no longer on GitHub
18
+ - The source repository has been moved off GitHub. The previous `github.com/Mangopay/mangopay2-nodejs-sdk` location is no longer maintained and will not receive new commits, issues, or pull requests.
19
+ - The `repository` field has been removed from `package.json`.
20
+ - This change does not affect consumption: `npm install mangopay4-nodejs-sdk` continues to work exactly as before.
21
+
22
+ ### Fixed - Garbled comment in `CardPreAuthorization`
23
+ - Replaced non-UTF-8 characters in the `IpAddress` JSDoc comment of `lib/models/CardPreAuthorization.js`. No behavior change.
24
+
25
+ ### Notes for upgraders
26
+ - If your project is on Node 16/18/20, upgrade to Node 22 (or newer) before installing `2.0.0`. The `1.x` line remains available on npm for environments that cannot upgrade their runtime yet.
27
+ - No application code changes are required for SDK callers — all service methods, models, and TypeScript typings are unchanged from `1.68.0`.
28
+
29
+ ## [1.68.0] - 2026-03-25
30
+ ### Added - Acquiring pay-in service
31
+ - New `Acquiring` service with `createPayIn` (Card, iDEAL, Apple Pay, Google Pay, PayPal), `createPayInRefund`, `createPayPalDataCollection`, and `createCardValidation` methods
32
+ - TypeScript typings under the `acquiring` namespace (`typings/models/acquiring.d.ts`, `typings/services/Acquiring.d.ts`)
33
+
34
+ ### Breaking change - Payconiq removed
35
+ - Payconiq was discontinued on 4 December 2025; all related code has been removed: `PayInPaymentDetailsPayconiq` model, `PAYCONIQ` enum value, `createPayconiqWeb`/`getPayconiqWeb` methods, and associated TypeScript typings
36
+
37
+ ### Added - Klarna `Discount` field
38
+ - Optional `Discount` field added to `LineItemData` and `CreateLineItem` interfaces in `payIn.d.ts`
39
+
1
40
  ## [1.67.0] - 2026-03-19
2
41
  ### Added - mTLS certificates support
3
42
  - mTLS certificates are now configurable in the SDK via file paths or encoded strings
package/README.md CHANGED
@@ -244,12 +244,6 @@ Sample usage of Mangopay SDK installed with npm in a Node.js project
244
244
  -------------------------------------------------
245
245
  Don't forget to check examples folder !
246
246
 
247
- Contributing
248
- -------------------------------------------------
249
- npm start // installs dependencies and global mocha for testing and jsdox for documentation
250
- npm test // runs the mocha tests
251
- npm run-script documentation // update documentation using jsdox, make sure to have it installed globally
252
-
253
247
  Unit Tests
254
248
  -------------------------------------------------
255
249
  Mocha tests are placed under ``/test/`` folder. To run the tests, make sure you have all dependencies installed.
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/apiMethods.js CHANGED
@@ -50,8 +50,6 @@ module.exports = {
50
50
  "payins_recurring_registration_put": ["/${apiVersion}/${clientId}/recurringpayinregistrations/${id}", "PUT"],
51
51
  "payins_create_recurring_card_direct": ["/${apiVersion}/${clientId}/payins/recurring/card/direct", "POST"],
52
52
  "payins_create_recurring_paypal": ["/${apiVersion}/${clientId}/payins/payment-methods/paypal/recurring", "POST"],
53
- "payins_payconiq-web_create": ["/${apiVersion}/${clientId}/payins/payconiq/web", "POST"],
54
- "payins_payconiqv2-web_create": ["/${apiVersion}/${clientId}/payins/payment-methods/payconiq", "POST"],
55
53
  "payins_create_card_pre_authorized_deposit": ["/${apiVersion}/${clientId}/payins/deposit-preauthorized/direct/full-capture", "POST"],
56
54
  "payins_deposit_preauthorized_prior_to_complement": ["/${apiVersion}/${clientId}/payins/deposit-preauthorized/direct/capture-with-complement", "POST"],
57
55
  "payins_deposit_preauthorized_complement": ["/${apiVersion}/${clientId}/payins/deposit-preauthorized/direct/complement", "POST"],
@@ -272,5 +270,14 @@ module.exports = {
272
270
  "recipients_validate": ["/${apiVersion}/${clientId}/users/${userId}/recipients/validate", "POST"],
273
271
  "recipients_deactivate": ["/${apiVersion}/${clientId}/recipients/${recipientId}", "PUT"],
274
272
 
275
- "pay_by_bank_get_supported_banks": ["/${apiVersion}/${clientId}/payment-methods/openbanking/metadata/supported-banks", "GET"]
273
+ "pay_by_bank_get_supported_banks": ["/${apiVersion}/${clientId}/payment-methods/openbanking/metadata/supported-banks", "GET"],
274
+
275
+ "acquiring_payins_card-direct_create": ["/${apiVersion}/${clientId}/acquiring/payins/card/direct/", "POST"],
276
+ "acquiring_payins_ideal-web_create": ["/${apiVersion}/${clientId}/acquiring/payins/payment-methods/ideal", "POST"],
277
+ "acquiring_payins_applepay-direct_create": ["/${apiVersion}/${clientId}/acquiring/payins/payment-methods/applepay", "POST"],
278
+ "acquiring_payins_googlepay-direct_create": ["/${apiVersion}/${clientId}/acquiring/payins/payment-methods/googlepay", "POST"],
279
+ "acquiring_payins_paypal-web_create": ["/${apiVersion}/${clientId}/acquiring/payins/payment-methods/paypal", "POST"],
280
+ "acquiring_payins_paypal_data_collection_create": ["/${apiVersion}/${clientId}/acquiring/payins/payment-methods/paypal/data-collection", "POST"],
281
+ "acquiring_payins_createrefunds": ["/${apiVersion}/${clientId}/acquiring/payins/${id}/refunds", "POST"],
282
+ "acquiring_card_validation_create": ["/${apiVersion}/${clientId}/acquiring/cards/${id}/validation", "POST"],
276
283
  };
@@ -93,8 +93,8 @@ var CardPreAuthorization = Model.extend({
93
93
  MultiCapture: null,
94
94
 
95
95
  /**
96
- * Is not Mandatory for 3DSv1 (flag Use 3DSV2 Scenario OFF)
97
- * Is mandatory when the flag Use 3DSV2 Scenario is active for (FORCE/DEFAULT/FRICTIONLESS both 3)
96
+ * Is not Mandatory for 3DSv1 (flag Use 3DSV2 Scenario OFF)
97
+ * Is mandatory when the flag Use 3DSV2 Scenario is active for (FORCE/DEFAULT/FRICTIONLESS both 3)
98
98
  */
99
99
  IpAddress: null,
100
100
 
@@ -6,7 +6,6 @@ module.exports = {
6
6
  PayPal: 'PAYPAL',
7
7
  ApplePay: 'APPLEPAY',
8
8
  GooglePay: 'GOOGLE_PAY',
9
- Payconiq: 'PAYCONIQ',
10
9
  Mbway: 'MBWAY',
11
10
  Bancontact: 'BCMC',
12
11
  Bizum: 'BIZUM',
@@ -4,7 +4,8 @@ var ReportFilterV2 = Model.extend({
4
4
  defaults: {
5
5
  Currency: null,
6
6
  UserId: null,
7
- WalletId: null
7
+ WalletId: null,
8
+ SettlementId: null
8
9
  }
9
10
  });
10
11
 
@@ -0,0 +1,152 @@
1
+ const _ = require('underscore');
2
+
3
+ const Service = require('../service');
4
+
5
+ const PayIn = require('../models/PayIn');
6
+ const PayInPaymentDetailsBankWire = require('../models/PayInPaymentDetailsBankWire');
7
+ const PayInPaymentDetailsCard = require('../models/PayInPaymentDetailsCard');
8
+ const PayInPaymentDetailsDirectDebitDirect = require('../models/PayInPaymentDetailsDirectDebitDirect');
9
+ const PayInPaymentDetailsDirectDebitWeb = require('../models/PayInPaymentDetailsDirectDebitWeb');
10
+ const PayInPaymentDetailsPreAuthorized = require('../models/PayInPaymentDetailsPreAuthorized');
11
+ const PayInPaymentDetailsPayPal = require('../models/PayInPaymentDetailsPayPal');
12
+ const PayInExecutionDetailsWeb = require('../models/PayInExecutionDetailsWeb');
13
+ const PayInExecutionDetailsDirect = require('../models/PayInExecutionDetailsDirect');
14
+ const PayInExecutionDetailsBankingAlias = require('../models/PayInExecutionDetailsBankingAlias');
15
+ const PayInPaymentDetailsApplePay = require('../models/PayInPaymentDetailsApplePay');
16
+ const PayInPaymentDetailsGooglePay = require('../models/PayInPaymentDetailsGooglePay');
17
+ const PayInPaymentDetailsMbway = require('../models/PayInPaymentDetailsMbway');
18
+ const PayInPaymentDetailsBancontact = require('../models/PayInPaymentDetailsBancontact');
19
+ const PayInPaymentDetailsBizum = require('../models/PayInPaymentDetailsBizum');
20
+ const Refund = require('../models/Refund');
21
+ const PayInPaymentDetailsMultibanco = require("../models/PayInPaymentDetailsMultibanco");
22
+ const PayInPaymentDetailsSatispay = require("../models/PayInPaymentDetailsSatispay");
23
+ const PayInPaymentDetailsBlik = require("../models/PayInPaymentDetailsBlik");
24
+ const PayInPaymentDetailsKlarna = require("../models/PayInPaymentDetailsKlarna");
25
+ const PayInPaymentDetailsIdeal = require("../models/PayInPaymentDetailsIdeal");
26
+ const PayInPaymentDetailsGiropay = require("../models/PayInPaymentDetailsGiropay");
27
+ const PayInPaymentDetailsSwish = require("../models/PayInPaymentDetailsSwish");
28
+ const PayInPaymentDetailsTwint = require("../models/PayInPaymentDetailsTwint");
29
+ const PayInPaymentDetailsPayByBank = require("../models/PayInPaymentDetailsPayByBank");
30
+ const CardValidation = require('../models/CardValidation');
31
+
32
+
33
+ const Acquiring = Service.extend({
34
+ /**
35
+ * Create new pay-in
36
+ * @param {Object} payIn PayIn object
37
+ * @param {Function} callback Callback function
38
+ * @param {Object} options Request options
39
+ * @return {Object} Request promise
40
+ */
41
+ createPayIn: function (payIn, callback, options) {
42
+ options = this._api._getOptions(callback, options, {
43
+ data: payIn,
44
+ dataClass: PayIn
45
+ });
46
+
47
+ const paymentKey = this.getPaymentKey(payIn);
48
+ const executionKey = this.getExecutionKey(payIn);
49
+
50
+ return this._api.method('acquiring_payins_' + paymentKey + '-' + executionKey + '_create', callback, options);
51
+ },
52
+
53
+ /**
54
+ * Create refund for pay-in object
55
+ * @param {number} payInId PayIn identifier
56
+ * @param {Object} refund Refund data
57
+ * @param {Function} callback Callback function
58
+ * @param {Object} options Request options
59
+ * @return {Object} Request promise
60
+ */
61
+ createPayInRefund: function (payInId, refund, callback, options) {
62
+ options = this._api._getOptions(callback, options, {
63
+ path: {
64
+ id: payInId
65
+ },
66
+ dataClass: Refund,
67
+ data: refund
68
+ });
69
+
70
+ return this._api.method('acquiring_payins_createrefunds', callback, options);
71
+ },
72
+
73
+ /**
74
+ * Send key pre-transaction data such as order details, buyer information,
75
+ * and merchant context before initiating a PayPal payment
76
+ *
77
+ * @param dataCollection The data collection to be created
78
+ * @param callback Callback function
79
+ * @param options Request options
80
+ * @returns {Object} Request promise
81
+ */
82
+ createPayPalDataCollection: function (dataCollection, callback, options) {
83
+ options = this._api._getOptions(callback, options, {
84
+ data: dataCollection
85
+ });
86
+
87
+ return this._api.method('acquiring_payins_paypal_data_collection_create', callback, options);
88
+ },
89
+
90
+ /**
91
+ * Create card validation
92
+ * @param cardId The ID of the card
93
+ * @param cardValidation The create card validation dto
94
+ * @param callback Callback function
95
+ * @param options Request promise
96
+ * @returns {Object}
97
+ */
98
+ createCardValidation: function (cardId, cardValidation, callback, options) {
99
+ options = this._api._getOptions(callback, options, {
100
+ path: {
101
+ id: cardId
102
+ },
103
+ data: cardValidation,
104
+ dataClass: CardValidation
105
+ });
106
+
107
+ return this._api.method('acquiring_card_validation_create', callback, options);
108
+ },
109
+
110
+ getPaymentKey: function (payIn) {
111
+ if (payIn.PaymentType) {
112
+ return payIn.PaymentType.toLowerCase().replaceAll('_', '');
113
+ }
114
+
115
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsBankWire) return 'bankwire';
116
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsCard) return 'card';
117
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsDirectDebitDirect) return 'directdebit';
118
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsDirectDebitWeb) return 'directdebit';
119
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsPreAuthorized) return 'preauthorized';
120
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsPayPal) return 'paypal';
121
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsApplePay) return 'applepay';
122
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsGooglePay) return 'googlepay';
123
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsMbway) return 'mbway';
124
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsBancontact) return 'bcmc';
125
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsBizum) return 'bizum';
126
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsMultibanco) return 'multibanco';
127
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsSatispay) return 'satispay';
128
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsBlik) return 'blik';
129
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsKlarna) return 'klarna';
130
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsIdeal) return 'ideal';
131
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsGiropay) return 'giropay';
132
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsSwish) return 'swish';
133
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsTwint) return 'twint';
134
+ if (payIn.PaymentDetails instanceof PayInPaymentDetailsPayByBank) return 'paybybank';
135
+
136
+ throw new Error(`PaymentType ${payIn.PaymentType} not handled`);
137
+ },
138
+
139
+ getExecutionKey: function (payIn) {
140
+ if (payIn.ExecutionType) {
141
+ return payIn.ExecutionType.toLowerCase();
142
+ }
143
+
144
+ if (payIn.ExecutionDetails instanceof PayInExecutionDetailsWeb) return 'web';
145
+ if (payIn.ExecutionDetails instanceof PayInExecutionDetailsDirect) return 'direct';
146
+ if (payIn.ExecutionDetails instanceof PayInExecutionDetailsBankingAlias) return 'bankingalias';
147
+
148
+ throw new Error(`ExecutionType ${payIn.ExecutionType} not handled`);
149
+ }
150
+ });
151
+
152
+ module.exports = Acquiring;
@@ -24,7 +24,6 @@ var PayInPaymentDetailsBancontact = require('../models/PayInPaymentDetailsBancon
24
24
  var PayInPaymentDetailsBizum = require('../models/PayInPaymentDetailsBizum');
25
25
  var Refund = require('../models/Refund');
26
26
  var PayInRecurringRegistration = require('../models/PayInRecurringRegistration');
27
- var PayInPaymentDetailsPayconiq = require('../models/PayInPaymentDetailsPayconiq');
28
27
  const RecurringPayIn = require('../models/RecurringPayIn');
29
28
  const PayInPaymentDetailsMultibanco = require("../models/PayInPaymentDetailsMultibanco");
30
29
  const PayInPaymentDetailsSatispay = require("../models/PayInPaymentDetailsSatispay");
@@ -359,22 +358,6 @@ var PayIns = Service.extend({
359
358
  return this._api.method('payins_card-web_get_details', callback, options);
360
359
  },
361
360
 
362
- /**
363
- * Create new pay-in Payconiq Web, using the latest API url (/payment-methods/payconiq)
364
- * @param {Object} payIn PayIn object
365
- * @param {Function} callback Callback function
366
- * @param {Object} options Request options
367
- * @return {Object} Request promise
368
- */
369
- createPayconiq: function(payIn, callback, options) {
370
- options = this._api._getOptions(callback, options, {
371
- data: payIn,
372
- dataClass: PayIn
373
- });
374
-
375
- return this._api.method('payins_payconiqv2-web_create', callback, options);
376
- },
377
-
378
361
  /**
379
362
  * Create a pay in intent authorization
380
363
  * @param {Object} payInIntentAuthorization PayInIntentAuthorization object
@@ -745,7 +728,6 @@ var PayIns = Service.extend({
745
728
  if (payIn.PaymentDetails instanceof PayInPaymentDetailsPayPal) return 'paypal';
746
729
  if (payIn.PaymentDetails instanceof PayInPaymentDetailsApplePay) return 'applepay';
747
730
  if (payIn.PaymentDetails instanceof PayInPaymentDetailsGooglePay) return 'googlepay';
748
- if (payIn.PaymentDetails instanceof PayInPaymentDetailsPayconiq) return 'payconiq';
749
731
  if (payIn.PaymentDetails instanceof PayInPaymentDetailsMbway) return 'mbway';
750
732
  if (payIn.PaymentDetails instanceof PayInPaymentDetailsBancontact) return 'bcmc';
751
733
  if (payIn.PaymentDetails instanceof PayInPaymentDetailsBizum) return 'bizum';
@@ -30,5 +30,6 @@ module.exports = {
30
30
  IdentityVerifications: require('./IdentityVerifications'),
31
31
  Recipients: require('./Recipients'),
32
32
  ReportsV2: require('./ReportsV2'),
33
- Settlements: require('./Settlements')
33
+ Settlements: require('./Settlements'),
34
+ Acquiring: require('./Acquiring'),
34
35
  };
package/package.json CHANGED
@@ -1,40 +1,32 @@
1
1
  {
2
2
  "name": "mangopay4-nodejs-sdk",
3
- "version": "1.67.0",
3
+ "version": "2.0.0",
4
4
  "types": "./typings/index.d.ts",
5
5
  "description": "Mangopay Node.js SDK",
6
- "repository": "https://github.com/Mangopay/mangopay2-nodejs-sdk.git",
7
6
  "license": "MIT",
8
- "keywords": [
9
- "mangopay",
10
- "nodejs",
11
- "sdk",
12
- "credit cards",
13
- "api"
14
- ],
15
7
  "engines": {
16
- "node": ">= v0.10.0"
8
+ "node": ">=22.0.0"
17
9
  },
18
10
  "main": "./index.js",
19
11
  "dependencies": {
20
- "@types/node": "14.14.x",
21
- "axios": "1.12.0",
22
- "form-data": "4.0.4",
23
- "promise": "8.1.x",
24
- "underscore": "1.12.x"
12
+ "@types/node": "22.19.18",
13
+ "axios": "1.16.0",
14
+ "form-data": "4.0.5",
15
+ "promise": "8.3.0",
16
+ "underscore": "1.13.8"
25
17
  },
26
18
  "devDependencies": {
27
- "chai": "4.2.x",
28
- "mocha": "9.2.0",
29
- "sinon": "9.2.x",
30
- "tsd": "^0.30.4",
31
- "ts-node": "^9.1.1",
32
- "typescript": "4.1.x"
19
+ "c8": "11.0.0",
20
+ "chai": "4.5.0",
21
+ "mocha": "11.7.5",
22
+ "sinon": "21.0.1",
23
+ "ts-node": "10.9.2",
24
+ "tsd": "0.33.0",
25
+ "typescript": "6.0.3"
33
26
  },
34
27
  "scripts": {
35
- "start": "npm install -g mocha && npm install -g jsdox && npm install",
36
- "documentation": "jsdox -t docs/templates/ -i README -o docs lib/services",
37
28
  "test": "mocha 'test/**/*.js' --recursive --timeout 30000 --ui bdd",
29
+ "test:coverage": "c8 --reporter=lcov --reporter=text pnpm test",
38
30
  "test:types": "tsd"
39
31
  }
40
- }
32
+ }
@@ -10,7 +10,6 @@ export namespace enums {
10
10
  DirectDebit: "DIRECT_DEBIT";
11
11
  Preauthorized: "PREAUTHORIZED";
12
12
  PayPal: "PAYPAL";
13
- Payconiq: "PAYCONIQ";
14
13
  Mbway: "MBWAY";
15
14
  Multibanco: "MULTIBANCO";
16
15
  Satispay: "SATISPAY";
@@ -46,6 +46,7 @@ import { cardPreAuthorization } from "./models/cardPreauthorization";
46
46
  import { entityBase } from "./models/entityBase";
47
47
  import { user } from "./models/user";
48
48
  import { payIn } from "./models/payIn";
49
+ import { acquiring } from "./models/acquiring";
49
50
  import { refund } from "./models/refund";
50
51
  import { repudiation } from "./models/repudiation";
51
52
  import { client } from "./models/client";
@@ -76,6 +77,7 @@ import { identityVerification } from "./models/identityVerification";
76
77
  import { recipient } from "./models/recipient";
77
78
  import { Recipients } from "./services/Recipients";
78
79
  import { Settlements } from "./services/Settlements";
80
+ import { Acquiring } from "./services/Acquiring";
79
81
  import { OptionsHelper } from "./services/OptionsHelper";
80
82
 
81
83
  export = MangoPay;
@@ -116,6 +118,7 @@ declare class MangoPay {
116
118
  IdentityVerifications: IdentityVerifications;
117
119
  Recipients: Recipients;
118
120
  Settlements: Settlements;
121
+ Acquiring: Acquiring;
119
122
  OptionsHelper: OptionsHelper;
120
123
 
121
124
  models: typeof MangoPay.models;
@@ -666,10 +669,6 @@ declare namespace MangoPay {
666
669
  constructor(data: any);
667
670
  }
668
671
 
669
- class PayInPaymentDetailsPayconiq extends PayInPaymentDetails {
670
- constructor(data: any);
671
- }
672
-
673
672
  class PayInPaymentDetailsCardDirect extends PayInPaymentDetails {
674
673
  constructor(data: any);
675
674
  }
@@ -880,6 +879,7 @@ declare namespace MangoPay {
880
879
  conversion,
881
880
  virtualAccount,
882
881
  identityVerification,
883
- recipient
882
+ recipient,
883
+ acquiring
884
884
  };
885
885
  }
@@ -812,21 +812,6 @@ api.PayIns.create({
812
812
  expectType<Mangopay.payIn.BankWireDirectPayInData>(data);
813
813
  });
814
814
 
815
- // create Payconiq PayIn
816
- api.PayIns.create({
817
- PaymentType: "PAYCONIQ",
818
- ExecutionType: "WEB",
819
- Tag: "custom meta",
820
- AuthorId: "user-id",
821
- CreditedWalletId: "wallet-id",
822
- DebitedFunds: {Amount: 500, Currency: "GBP"},
823
- Fees: {Amount: 500, Currency: "GBP"},
824
- ReturnURL: "http://www.my-site.com/returnURL",
825
- Country: "BE"
826
- }).then(data => {
827
- expectType<Mangopay.payIn.PayconiqWebPayInData>(data);
828
- });
829
-
830
815
  api.PayIns.create({
831
816
  PaymentType: "DIRECT_DEBIT",
832
817
  ExecutionType: "DIRECT",