@medipass/web-sdk 11.53.1-feature-tailwind-migration-heading-component.0 → 11.53.1-feature-void-payment.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 (87) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/resources/abr.js +1 -1
  3. package/lib/resources/accounts.js +1 -1
  4. package/lib/resources/actions.js +1 -1
  5. package/lib/resources/api-keys.js +1 -1
  6. package/lib/resources/applications.js +1 -1
  7. package/lib/resources/attachments.js +1 -1
  8. package/lib/resources/auth.js +1 -1
  9. package/lib/resources/blacklist.js +1 -1
  10. package/lib/resources/bulk-submits.js +1 -1
  11. package/lib/resources/bulk-uploads.js +1 -1
  12. package/lib/resources/business-profiles.js +1 -1
  13. package/lib/resources/businesses.js +1 -1
  14. package/lib/resources/claim-items.js +1 -1
  15. package/lib/resources/devices.js +1 -1
  16. package/lib/resources/doc-accounts.js +1 -1
  17. package/lib/resources/documents.js +1 -1
  18. package/lib/resources/emails.js +1 -1
  19. package/lib/resources/filter-options.js +1 -1
  20. package/lib/resources/form-application-templates.js +1 -1
  21. package/lib/resources/form-applications.js +1 -1
  22. package/lib/resources/forms.js +1 -1
  23. package/lib/resources/funder-services.js +1 -1
  24. package/lib/resources/funder-settings.js +1 -1
  25. package/lib/resources/funder-values.js +1 -1
  26. package/lib/resources/funders.js +1 -1
  27. package/lib/resources/futures.js +1 -1
  28. package/lib/resources/health-fund-accounts.js +1 -1
  29. package/lib/resources/health-fund-settings.js +1 -1
  30. package/lib/resources/healthfunds.js +1 -1
  31. package/lib/resources/icditems.js +1 -1
  32. package/lib/resources/invoice-scans.js +1 -1
  33. package/lib/resources/jhcs.js +1 -1
  34. package/lib/resources/kyc.js +1 -1
  35. package/lib/resources/logs.js +1 -1
  36. package/lib/resources/members.js +1 -1
  37. package/lib/resources/message-mappings.js +1 -1
  38. package/lib/resources/minions.js +1 -1
  39. package/lib/resources/modalities.js +1 -1
  40. package/lib/resources/notes.js +1 -1
  41. package/lib/resources/onboarding-applications.js +1 -1
  42. package/lib/resources/onboarding-requests.js +1 -1
  43. package/lib/resources/ops.js +1 -1
  44. package/lib/resources/organisations.js +1 -1
  45. package/lib/resources/partners.js +1 -1
  46. package/lib/resources/patients.js +1 -1
  47. package/lib/resources/payments.js +1 -1
  48. package/lib/resources/pms.js +1 -1
  49. package/lib/resources/practice-profiles.js +1 -1
  50. package/lib/resources/practice-types.js +1 -1
  51. package/lib/resources/practices.js +1 -1
  52. package/lib/resources/products.js +1 -1
  53. package/lib/resources/professional-categories.js +1 -1
  54. package/lib/resources/provider-number-types.js +1 -1
  55. package/lib/resources/provider-registration-types.js +1 -1
  56. package/lib/resources/provider-requests.js +1 -1
  57. package/lib/resources/provider-types.js +1 -1
  58. package/lib/resources/ref-sources.js +1 -1
  59. package/lib/resources/risk.js +1 -1
  60. package/lib/resources/rnas.js +1 -1
  61. package/lib/resources/roles.js +1 -1
  62. package/lib/resources/self-checkout-sessions.js +1 -1
  63. package/lib/resources/services.js +1 -1
  64. package/lib/resources/settlements.js +1 -1
  65. package/lib/resources/sign-up.js +1 -1
  66. package/lib/resources/specialties.js +1 -1
  67. package/lib/resources/staff-profiles.js +1 -1
  68. package/lib/resources/staff.js +1 -1
  69. package/lib/resources/statistics.js +1 -1
  70. package/lib/resources/subscriptions.js +1 -1
  71. package/lib/resources/terminals.js +1 -1
  72. package/lib/resources/transaction-export.js +1 -1
  73. package/lib/resources/transactions.d.ts +8 -0
  74. package/lib/resources/transactions.js +2 -1
  75. package/lib/resources/triggers.js +1 -1
  76. package/lib/resources/vendors.js +1 -1
  77. package/lib/resources/verify.js +1 -1
  78. package/lib/resources/workers.js +1 -1
  79. package/lib/resources/workflow-exceptions.js +1 -1
  80. package/lib/services/aws.js +1 -1
  81. package/lib/services/version.js +1 -1
  82. package/lib/{staff-c7aa7e0e.js → staff-8cf9d456.js} +103 -57
  83. package/lib/utils/application.js +1 -1
  84. package/lib/utils/professions.js +1 -1
  85. package/lib/utils/request.js +1 -1
  86. package/lib/utils/staff.js +1 -1
  87. package/package.json +3 -3
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -425,6 +425,14 @@ export declare const terminalCancellation: (transactionId: string, body: Record<
425
425
  * @param {Object} opts - Additional options
426
426
  */
427
427
  export declare const refundPayment: (transactionId: string, paymentId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
428
+ /**
429
+ * Void transaction's payment
430
+ * @param {String} transactionId - TransactionId
431
+ * @param {String} paymentId - PaymentId
432
+ * @param {Object} body - Request body
433
+ * @param {Object} opts - Additional options
434
+ */
435
+ export declare const voidPayment: (transactionId: string, paymentId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
428
436
  /**
429
437
  * Create ECLIPSE invoice - In Patient
430
438
  * @param {Object} body - Request body
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -114,3 +114,4 @@ exports.unarchive = request.unarchive;
114
114
  exports.updateClaim = request.updateClaim;
115
115
  exports.updateTransaction = request.updateTransaction;
116
116
  exports.validateTransaction = request.validateTransaction;
117
+ exports.voidPayment = request.voidPayment;
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('../utils/get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('../utils/param-error.js');
@@ -17782,6 +17782,10 @@ var pathTransactionPaymentRefund = function pathTransactionPaymentRefund(transac
17782
17782
  return "/transactions/" + transactionId + "/payments/" + paymentId + "/refunds";
17783
17783
  };
17784
17784
 
17785
+ var pathTransactionPaymentVoid = function pathTransactionPaymentVoid(transactionId, paymentId) {
17786
+ return "/transactions/" + transactionId + "/payments/" + paymentId + "/voids";
17787
+ };
17788
+
17785
17789
  var pathCreateEclipseInPatientInvoice = function pathCreateEclipseInPatientInvoice() {
17786
17790
  return "/transactions/invoices/eclipse/imcw";
17787
17791
  };
@@ -20168,13 +20172,15 @@ var refundPayment = /*#__PURE__*/function () {
20168
20172
  };
20169
20173
  }();
20170
20174
  /**
20171
- * Create ECLIPSE invoice - In Patient
20175
+ * Void transaction's payment
20176
+ * @param {String} transactionId - TransactionId
20177
+ * @param {String} paymentId - PaymentId
20172
20178
  * @param {Object} body - Request body
20173
20179
  * @param {Object} opts - Additional options
20174
20180
  */
20175
20181
 
20176
- var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20177
- var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(body, opts) {
20182
+ var voidPayment = /*#__PURE__*/function () {
20183
+ var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(transactionId, paymentId, body, opts) {
20178
20184
  return _regeneratorRuntime.wrap(function _callee60$(_context60) {
20179
20185
  while (1) {
20180
20186
  switch (_context60.prev = _context60.next) {
@@ -20183,14 +20189,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20183
20189
  opts = {};
20184
20190
  }
20185
20191
 
20192
+ doesParamExist.default({
20193
+ transactionId: transactionId
20194
+ }, opts.hyperMediaEndpoint);
20186
20195
  return _context60.abrupt("return", request(_objectSpread$18({}, opts, {
20187
- path: pathCreateEclipseInPatientInvoice()
20196
+ path: pathTransactionPaymentVoid(transactionId, paymentId)
20188
20197
  }), {
20189
20198
  method: 'post',
20190
20199
  data: body
20191
20200
  }));
20192
20201
 
20193
- case 2:
20202
+ case 3:
20194
20203
  case "end":
20195
20204
  return _context60.stop();
20196
20205
  }
@@ -20198,17 +20207,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20198
20207
  }, _callee60);
20199
20208
  }));
20200
20209
 
20201
- return function createEclipseInPatientInvoice(_x192, _x193) {
20210
+ return function voidPayment(_x192, _x193, _x194, _x195) {
20202
20211
  return _ref60.apply(this, arguments);
20203
20212
  };
20204
20213
  }();
20205
20214
  /**
20206
- * Create ECLIPSE invoice - Overseas
20215
+ * Create ECLIPSE invoice - In Patient
20207
20216
  * @param {Object} body - Request body
20208
20217
  * @param {Object} opts - Additional options
20209
20218
  */
20210
20219
 
20211
- var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20220
+ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20212
20221
  var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(body, opts) {
20213
20222
  return _regeneratorRuntime.wrap(function _callee61$(_context61) {
20214
20223
  while (1) {
@@ -20219,7 +20228,7 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20219
20228
  }
20220
20229
 
20221
20230
  return _context61.abrupt("return", request(_objectSpread$18({}, opts, {
20222
- path: pathCreateEclipseOverseasInvoice()
20231
+ path: pathCreateEclipseInPatientInvoice()
20223
20232
  }), {
20224
20233
  method: 'post',
20225
20234
  data: body
@@ -20233,17 +20242,17 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20233
20242
  }, _callee61);
20234
20243
  }));
20235
20244
 
20236
- return function createEclipseOverseasInvoice(_x194, _x195) {
20245
+ return function createEclipseInPatientInvoice(_x196, _x197) {
20237
20246
  return _ref61.apply(this, arguments);
20238
20247
  };
20239
20248
  }();
20240
20249
  /**
20241
- * Create ECLIPSE invoice - Online Eligibility Check
20250
+ * Create ECLIPSE invoice - Overseas
20242
20251
  * @param {Object} body - Request body
20243
20252
  * @param {Object} opts - Additional options
20244
20253
  */
20245
20254
 
20246
- var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20255
+ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20247
20256
  var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(body, opts) {
20248
20257
  return _regeneratorRuntime.wrap(function _callee62$(_context62) {
20249
20258
  while (1) {
@@ -20254,7 +20263,7 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20254
20263
  }
20255
20264
 
20256
20265
  return _context62.abrupt("return", request(_objectSpread$18({}, opts, {
20257
- path: pathCreateEclipseOnlineEligibilityCheckInvoice()
20266
+ path: pathCreateEclipseOverseasInvoice()
20258
20267
  }), {
20259
20268
  method: 'post',
20260
20269
  data: body
@@ -20268,19 +20277,18 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20268
20277
  }, _callee62);
20269
20278
  }));
20270
20279
 
20271
- return function createEclipseOnlineEligibilityCheckInvoice(_x196, _x197) {
20280
+ return function createEclipseOverseasInvoice(_x198, _x199) {
20272
20281
  return _ref62.apply(this, arguments);
20273
20282
  };
20274
20283
  }();
20275
20284
  /**
20276
- * Get business ECLIPSE transaction payment report
20277
- * @param {String} businessId - Business ID
20278
- * @param {String} transactionId - Transaction ID
20285
+ * Create ECLIPSE invoice - Online Eligibility Check
20286
+ * @param {Object} body - Request body
20279
20287
  * @param {Object} opts - Additional options
20280
20288
  */
20281
20289
 
20282
- var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20283
- var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(businessId, transactionId, query, opts) {
20290
+ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20291
+ var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(body, opts) {
20284
20292
  return _regeneratorRuntime.wrap(function _callee63$(_context63) {
20285
20293
  while (1) {
20286
20294
  switch (_context63.prev = _context63.next) {
@@ -20289,18 +20297,14 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20289
20297
  opts = {};
20290
20298
  }
20291
20299
 
20292
- doesParamExist.default({
20293
- businessId: businessId,
20294
- transactionId: transactionId
20295
- }, opts.hyperMediaEndpoint);
20296
20300
  return _context63.abrupt("return", request(_objectSpread$18({}, opts, {
20297
- path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
20301
+ path: pathCreateEclipseOnlineEligibilityCheckInvoice()
20298
20302
  }), {
20299
- method: 'get',
20300
- params: query
20303
+ method: 'post',
20304
+ data: body
20301
20305
  }));
20302
20306
 
20303
- case 3:
20307
+ case 2:
20304
20308
  case "end":
20305
20309
  return _context63.stop();
20306
20310
  }
@@ -20308,18 +20312,18 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20308
20312
  }, _callee63);
20309
20313
  }));
20310
20314
 
20311
- return function getBusinessEclipseTransactionPaymentReport(_x198, _x199, _x200, _x201) {
20315
+ return function createEclipseOnlineEligibilityCheckInvoice(_x200, _x201) {
20312
20316
  return _ref63.apply(this, arguments);
20313
20317
  };
20314
20318
  }();
20315
20319
  /**
20316
- * Get business ECLIPSE transaction processing report
20320
+ * Get business ECLIPSE transaction payment report
20317
20321
  * @param {String} businessId - Business ID
20318
20322
  * @param {String} transactionId - Transaction ID
20319
20323
  * @param {Object} opts - Additional options
20320
20324
  */
20321
20325
 
20322
- var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20326
+ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20323
20327
  var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(businessId, transactionId, query, opts) {
20324
20328
  return _regeneratorRuntime.wrap(function _callee64$(_context64) {
20325
20329
  while (1) {
@@ -20334,7 +20338,7 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20334
20338
  transactionId: transactionId
20335
20339
  }, opts.hyperMediaEndpoint);
20336
20340
  return _context64.abrupt("return", request(_objectSpread$18({}, opts, {
20337
- path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
20341
+ path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
20338
20342
  }), {
20339
20343
  method: 'get',
20340
20344
  params: query
@@ -20348,19 +20352,19 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20348
20352
  }, _callee64);
20349
20353
  }));
20350
20354
 
20351
- return function getBusinessEclipseTransactionProcessingReport(_x202, _x203, _x204, _x205) {
20355
+ return function getBusinessEclipseTransactionPaymentReport(_x202, _x203, _x204, _x205) {
20352
20356
  return _ref64.apply(this, arguments);
20353
20357
  };
20354
20358
  }();
20355
20359
  /**
20356
- * Reconciles a claim
20357
- * @param {String} transactionId - TransactionId
20358
- * @param {String} claimId - ClaimId
20360
+ * Get business ECLIPSE transaction processing report
20361
+ * @param {String} businessId - Business ID
20362
+ * @param {String} transactionId - Transaction ID
20359
20363
  * @param {Object} opts - Additional options
20360
20364
  */
20361
20365
 
20362
- var reconcileClaim = /*#__PURE__*/function () {
20363
- var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(transactionId, claimId, opts) {
20366
+ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20367
+ var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(businessId, transactionId, query, opts) {
20364
20368
  return _regeneratorRuntime.wrap(function _callee65$(_context65) {
20365
20369
  while (1) {
20366
20370
  switch (_context65.prev = _context65.next) {
@@ -20370,12 +20374,14 @@ var reconcileClaim = /*#__PURE__*/function () {
20370
20374
  }
20371
20375
 
20372
20376
  doesParamExist.default({
20377
+ businessId: businessId,
20373
20378
  transactionId: transactionId
20374
20379
  }, opts.hyperMediaEndpoint);
20375
20380
  return _context65.abrupt("return", request(_objectSpread$18({}, opts, {
20376
- path: pathReconcileClaim(transactionId, claimId)
20381
+ path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
20377
20382
  }), {
20378
- method: 'post'
20383
+ method: 'get',
20384
+ params: query
20379
20385
  }));
20380
20386
 
20381
20387
  case 3:
@@ -20386,18 +20392,19 @@ var reconcileClaim = /*#__PURE__*/function () {
20386
20392
  }, _callee65);
20387
20393
  }));
20388
20394
 
20389
- return function reconcileClaim(_x206, _x207, _x208) {
20395
+ return function getBusinessEclipseTransactionProcessingReport(_x206, _x207, _x208, _x209) {
20390
20396
  return _ref65.apply(this, arguments);
20391
20397
  };
20392
20398
  }();
20393
20399
  /**
20394
- * Save draft for ECLIPSE invoice - In Patient
20395
- * @param {Object} body - Request body
20400
+ * Reconciles a claim
20401
+ * @param {String} transactionId - TransactionId
20402
+ * @param {String} claimId - ClaimId
20396
20403
  * @param {Object} opts - Additional options
20397
20404
  */
20398
20405
 
20399
- var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20400
- var _ref66 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(body, opts) {
20406
+ var reconcileClaim = /*#__PURE__*/function () {
20407
+ var _ref66 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(transactionId, claimId, opts) {
20401
20408
  return _regeneratorRuntime.wrap(function _callee66$(_context66) {
20402
20409
  while (1) {
20403
20410
  switch (_context66.prev = _context66.next) {
@@ -20406,14 +20413,16 @@ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20406
20413
  opts = {};
20407
20414
  }
20408
20415
 
20416
+ doesParamExist.default({
20417
+ transactionId: transactionId
20418
+ }, opts.hyperMediaEndpoint);
20409
20419
  return _context66.abrupt("return", request(_objectSpread$18({}, opts, {
20410
- path: pathSaveDraftEclipseInPatientInvoice()
20420
+ path: pathReconcileClaim(transactionId, claimId)
20411
20421
  }), {
20412
- method: 'post',
20413
- data: body
20422
+ method: 'post'
20414
20423
  }));
20415
20424
 
20416
- case 2:
20425
+ case 3:
20417
20426
  case "end":
20418
20427
  return _context66.stop();
20419
20428
  }
@@ -20421,17 +20430,17 @@ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20421
20430
  }, _callee66);
20422
20431
  }));
20423
20432
 
20424
- return function saveDraftEclipseInPatientInvoice(_x209, _x210) {
20433
+ return function reconcileClaim(_x210, _x211, _x212) {
20425
20434
  return _ref66.apply(this, arguments);
20426
20435
  };
20427
20436
  }();
20428
20437
  /**
20429
- * Save draft ECLIPSE invoice - Overseas
20438
+ * Save draft for ECLIPSE invoice - In Patient
20430
20439
  * @param {Object} body - Request body
20431
20440
  * @param {Object} opts - Additional options
20432
20441
  */
20433
20442
 
20434
- var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20443
+ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20435
20444
  var _ref67 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(body, opts) {
20436
20445
  return _regeneratorRuntime.wrap(function _callee67$(_context67) {
20437
20446
  while (1) {
@@ -20442,7 +20451,7 @@ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20442
20451
  }
20443
20452
 
20444
20453
  return _context67.abrupt("return", request(_objectSpread$18({}, opts, {
20445
- path: pathSaveDraftEclipseOverseasInvoice()
20454
+ path: pathSaveDraftEclipseInPatientInvoice()
20446
20455
  }), {
20447
20456
  method: 'post',
20448
20457
  data: body
@@ -20456,17 +20465,17 @@ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20456
20465
  }, _callee67);
20457
20466
  }));
20458
20467
 
20459
- return function saveDraftEclipseOverseasInvoice(_x211, _x212) {
20468
+ return function saveDraftEclipseInPatientInvoice(_x213, _x214) {
20460
20469
  return _ref67.apply(this, arguments);
20461
20470
  };
20462
20471
  }();
20463
20472
  /**
20464
- * Create PHI invoice
20473
+ * Save draft ECLIPSE invoice - Overseas
20465
20474
  * @param {Object} body - Request body
20466
20475
  * @param {Object} opts - Additional options
20467
20476
  */
20468
20477
 
20469
- var createPhiInvoice = /*#__PURE__*/function () {
20478
+ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20470
20479
  var _ref68 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(body, opts) {
20471
20480
  return _regeneratorRuntime.wrap(function _callee68$(_context68) {
20472
20481
  while (1) {
@@ -20477,7 +20486,7 @@ var createPhiInvoice = /*#__PURE__*/function () {
20477
20486
  }
20478
20487
 
20479
20488
  return _context68.abrupt("return", request(_objectSpread$18({}, opts, {
20480
- path: pathPhiInvoice()
20489
+ path: pathSaveDraftEclipseOverseasInvoice()
20481
20490
  }), {
20482
20491
  method: 'post',
20483
20492
  data: body
@@ -20491,10 +20500,45 @@ var createPhiInvoice = /*#__PURE__*/function () {
20491
20500
  }, _callee68);
20492
20501
  }));
20493
20502
 
20494
- return function createPhiInvoice(_x213, _x214) {
20503
+ return function saveDraftEclipseOverseasInvoice(_x215, _x216) {
20495
20504
  return _ref68.apply(this, arguments);
20496
20505
  };
20497
20506
  }();
20507
+ /**
20508
+ * Create PHI invoice
20509
+ * @param {Object} body - Request body
20510
+ * @param {Object} opts - Additional options
20511
+ */
20512
+
20513
+ var createPhiInvoice = /*#__PURE__*/function () {
20514
+ var _ref69 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(body, opts) {
20515
+ return _regeneratorRuntime.wrap(function _callee69$(_context69) {
20516
+ while (1) {
20517
+ switch (_context69.prev = _context69.next) {
20518
+ case 0:
20519
+ if (opts === void 0) {
20520
+ opts = {};
20521
+ }
20522
+
20523
+ return _context69.abrupt("return", request(_objectSpread$18({}, opts, {
20524
+ path: pathPhiInvoice()
20525
+ }), {
20526
+ method: 'post',
20527
+ data: body
20528
+ }));
20529
+
20530
+ case 2:
20531
+ case "end":
20532
+ return _context69.stop();
20533
+ }
20534
+ }
20535
+ }, _callee69);
20536
+ }));
20537
+
20538
+ return function createPhiInvoice(_x217, _x218) {
20539
+ return _ref69.apply(this, arguments);
20540
+ };
20541
+ }();
20498
20542
 
20499
20543
  var transactions = /*#__PURE__*/Object.freeze({
20500
20544
  __proto__: null,
@@ -20557,6 +20601,7 @@ var transactions = /*#__PURE__*/Object.freeze({
20557
20601
  terminalInput: terminalInput,
20558
20602
  terminalCancellation: terminalCancellation,
20559
20603
  refundPayment: refundPayment,
20604
+ voidPayment: voidPayment,
20560
20605
  createEclipseInPatientInvoice: createEclipseInPatientInvoice,
20561
20606
  createEclipseOverseasInvoice: createEclipseOverseasInvoice,
20562
20607
  createEclipseOnlineEligibilityCheckInvoice: createEclipseOnlineEligibilityCheckInvoice,
@@ -23318,5 +23363,6 @@ exports.verifyPartnerAccount = verifyPartnerAccount;
23318
23363
  exports.verifyPracticeKyc = verifyPracticeKyc;
23319
23364
  exports.verifyStaffMember = verifyStaffMember;
23320
23365
  exports.versions = versions;
23366
+ exports.voidPayment = voidPayment;
23321
23367
  exports.workers = workers;
23322
23368
  exports.workflowExceptions = workflowExceptions;
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-c7aa7e0e.js');
17
+ var request = require('../staff-8cf9d456.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');