@medipass/web-sdk 11.71.1 → 11.71.2-chore-refund-modal-instructions.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.
Files changed (91) 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/applePay.js +1 -1
  7. package/lib/resources/applications.js +1 -1
  8. package/lib/resources/attachments.js +1 -1
  9. package/lib/resources/auth.js +1 -1
  10. package/lib/resources/blacklist.js +1 -1
  11. package/lib/resources/bulk-submits.js +1 -1
  12. package/lib/resources/bulk-uploads.js +1 -1
  13. package/lib/resources/business-email-log.js +1 -1
  14. package/lib/resources/business-profiles.js +1 -1
  15. package/lib/resources/businesses.js +1 -1
  16. package/lib/resources/claim-items.js +1 -1
  17. package/lib/resources/devices.js +1 -1
  18. package/lib/resources/doc-accounts.js +1 -1
  19. package/lib/resources/documents.js +1 -1
  20. package/lib/resources/emails.js +1 -1
  21. package/lib/resources/filter-options.js +1 -1
  22. package/lib/resources/form-application-templates.js +1 -1
  23. package/lib/resources/form-applications.js +1 -1
  24. package/lib/resources/forms.js +1 -1
  25. package/lib/resources/funder-services.js +1 -1
  26. package/lib/resources/funder-settings.js +1 -1
  27. package/lib/resources/funder-values.js +1 -1
  28. package/lib/resources/funders.js +1 -1
  29. package/lib/resources/futures.js +1 -1
  30. package/lib/resources/health-fund-accounts.js +1 -1
  31. package/lib/resources/health-fund-settings.js +1 -1
  32. package/lib/resources/healthfunds.js +1 -1
  33. package/lib/resources/icare.js +1 -1
  34. package/lib/resources/icditems.js +1 -1
  35. package/lib/resources/invoice-scans.js +1 -1
  36. package/lib/resources/jhcs.js +1 -1
  37. package/lib/resources/kyc.js +1 -1
  38. package/lib/resources/logs.js +1 -1
  39. package/lib/resources/members.js +1 -1
  40. package/lib/resources/message-mappings.js +1 -1
  41. package/lib/resources/minions.js +1 -1
  42. package/lib/resources/modalities.js +1 -1
  43. package/lib/resources/notes.js +1 -1
  44. package/lib/resources/onboarding-applications.js +1 -1
  45. package/lib/resources/onboarding-requests.js +1 -1
  46. package/lib/resources/ops.js +1 -1
  47. package/lib/resources/organisations.js +1 -1
  48. package/lib/resources/partners.js +1 -1
  49. package/lib/resources/patients.js +1 -1
  50. package/lib/resources/payments.js +1 -1
  51. package/lib/resources/pms.js +1 -1
  52. package/lib/resources/practice-profiles.js +1 -1
  53. package/lib/resources/practice-types.js +1 -1
  54. package/lib/resources/practices.js +1 -1
  55. package/lib/resources/products.js +1 -1
  56. package/lib/resources/professional-categories.js +1 -1
  57. package/lib/resources/provider-number-types.js +1 -1
  58. package/lib/resources/provider-registration-types.js +1 -1
  59. package/lib/resources/provider-requests.js +1 -1
  60. package/lib/resources/provider-types.js +1 -1
  61. package/lib/resources/qbe.js +1 -1
  62. package/lib/resources/ref-sources.js +1 -1
  63. package/lib/resources/risk.js +1 -1
  64. package/lib/resources/rnas.js +1 -1
  65. package/lib/resources/roles.js +1 -1
  66. package/lib/resources/self-checkout-sessions.js +1 -1
  67. package/lib/resources/services.js +1 -1
  68. package/lib/resources/settlements.js +1 -1
  69. package/lib/resources/sign-up.js +1 -1
  70. package/lib/resources/specialties.js +1 -1
  71. package/lib/resources/staff-profiles.js +1 -1
  72. package/lib/resources/staff.js +1 -1
  73. package/lib/resources/statistics.js +1 -1
  74. package/lib/resources/subscriptions.js +1 -1
  75. package/lib/resources/terminals.js +1 -1
  76. package/lib/resources/transaction-export.js +1 -1
  77. package/lib/resources/transactions.d.ts +18 -2
  78. package/lib/resources/transactions.js +2 -1
  79. package/lib/resources/triggers.js +1 -1
  80. package/lib/resources/vendors.js +1 -1
  81. package/lib/resources/verify.js +1 -1
  82. package/lib/resources/workers.js +1 -1
  83. package/lib/resources/workflow-exceptions.js +1 -1
  84. package/lib/services/aws.js +1 -1
  85. package/lib/services/version.js +1 -1
  86. package/lib/{staff-ab81252c.js → staff-ec550dca.js} +122 -76
  87. package/lib/utils/application.js +1 -1
  88. package/lib/utils/professions.js +1 -1
  89. package/lib/utils/request.js +1 -1
  90. package/lib/utils/staff.js +1 -1
  91. package/package.json +2 -2
@@ -18799,6 +18799,10 @@ var pathTransactionPaymentRefund = function pathTransactionPaymentRefund(transac
18799
18799
  return "/transactions/" + transactionId + "/payments/" + paymentId + "/refunds";
18800
18800
  };
18801
18801
 
18802
+ var pathTransactionStandaloneRefund = function pathTransactionStandaloneRefund(transactionId, paymentId) {
18803
+ return "/transactions/" + transactionId + "/payments/" + paymentId + "/standalonerefunds";
18804
+ };
18805
+
18802
18806
  var pathTransactionPaymentVoid = function pathTransactionPaymentVoid(transactionId, paymentId) {
18803
18807
  return "/transactions/" + transactionId + "/payments/" + paymentId + "/voids";
18804
18808
  };
@@ -21156,14 +21160,14 @@ var terminalCancellation = /*#__PURE__*/function () {
21156
21160
  return _ref58.apply(this, arguments);
21157
21161
  };
21158
21162
  }();
21163
+
21159
21164
  /**
21160
21165
  * Refund transaction's payment
21161
21166
  * @param {String} transactionId - TransactionId
21162
21167
  * @param {String} paymentId - PaymentId
21163
- * @param {Object} body - Request body
21168
+ * @param {RefundPaymentRequestBody} body - Request body
21164
21169
  * @param {Object} opts - Additional options
21165
21170
  */
21166
-
21167
21171
  var refundPayment = /*#__PURE__*/function () {
21168
21172
  var _ref59 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee59(transactionId, paymentId, body, opts) {
21169
21173
  return _regeneratorRuntime__default["default"].wrap(function _callee59$(_context59) {
@@ -21197,14 +21201,14 @@ var refundPayment = /*#__PURE__*/function () {
21197
21201
  };
21198
21202
  }();
21199
21203
  /**
21200
- * Void transaction's payment
21204
+ * Perform a standalone refund of a transaction's payment
21201
21205
  * @param {String} transactionId - TransactionId
21202
21206
  * @param {String} paymentId - PaymentId
21203
- * @param {Object} body - Request body
21207
+ * @param {RefundPaymentRequestBody} body - Request body
21204
21208
  * @param {Object} opts - Additional options
21205
21209
  */
21206
21210
 
21207
- var voidPayment = /*#__PURE__*/function () {
21211
+ var standaloneRefund = /*#__PURE__*/function () {
21208
21212
  var _ref60 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee60(transactionId, paymentId, body, opts) {
21209
21213
  return _regeneratorRuntime__default["default"].wrap(function _callee60$(_context60) {
21210
21214
  while (1) {
@@ -21218,7 +21222,7 @@ var voidPayment = /*#__PURE__*/function () {
21218
21222
  transactionId: transactionId
21219
21223
  }, opts.hyperMediaEndpoint);
21220
21224
  return _context60.abrupt("return", request(_objectSpread$9({}, opts, {
21221
- path: pathTransactionPaymentVoid(transactionId, paymentId)
21225
+ path: pathTransactionStandaloneRefund(transactionId, paymentId)
21222
21226
  }), {
21223
21227
  method: 'post',
21224
21228
  data: body
@@ -21232,18 +21236,20 @@ var voidPayment = /*#__PURE__*/function () {
21232
21236
  }, _callee60);
21233
21237
  }));
21234
21238
 
21235
- return function voidPayment(_x192, _x193, _x194, _x195) {
21239
+ return function standaloneRefund(_x192, _x193, _x194, _x195) {
21236
21240
  return _ref60.apply(this, arguments);
21237
21241
  };
21238
21242
  }();
21239
21243
  /**
21240
- * Create ECLIPSE invoice - In Patient
21244
+ * Void transaction's payment
21245
+ * @param {String} transactionId - TransactionId
21246
+ * @param {String} paymentId - PaymentId
21241
21247
  * @param {Object} body - Request body
21242
21248
  * @param {Object} opts - Additional options
21243
21249
  */
21244
21250
 
21245
- var createEclipseInPatientInvoice = /*#__PURE__*/function () {
21246
- var _ref61 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee61(body, opts) {
21251
+ var voidPayment = /*#__PURE__*/function () {
21252
+ var _ref61 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee61(transactionId, paymentId, body, opts) {
21247
21253
  return _regeneratorRuntime__default["default"].wrap(function _callee61$(_context61) {
21248
21254
  while (1) {
21249
21255
  switch (_context61.prev = _context61.next) {
@@ -21252,14 +21258,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
21252
21258
  opts = {};
21253
21259
  }
21254
21260
 
21261
+ utils_doesParamExist["default"]({
21262
+ transactionId: transactionId
21263
+ }, opts.hyperMediaEndpoint);
21255
21264
  return _context61.abrupt("return", request(_objectSpread$9({}, opts, {
21256
- path: pathCreateEclipseInPatientInvoice()
21265
+ path: pathTransactionPaymentVoid(transactionId, paymentId)
21257
21266
  }), {
21258
21267
  method: 'post',
21259
21268
  data: body
21260
21269
  }));
21261
21270
 
21262
- case 2:
21271
+ case 3:
21263
21272
  case "end":
21264
21273
  return _context61.stop();
21265
21274
  }
@@ -21267,17 +21276,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
21267
21276
  }, _callee61);
21268
21277
  }));
21269
21278
 
21270
- return function createEclipseInPatientInvoice(_x196, _x197) {
21279
+ return function voidPayment(_x196, _x197, _x198, _x199) {
21271
21280
  return _ref61.apply(this, arguments);
21272
21281
  };
21273
21282
  }();
21274
21283
  /**
21275
- * Create ECLIPSE invoice - Overseas
21284
+ * Create ECLIPSE invoice - In Patient
21276
21285
  * @param {Object} body - Request body
21277
21286
  * @param {Object} opts - Additional options
21278
21287
  */
21279
21288
 
21280
- var createEclipseOverseasInvoice = /*#__PURE__*/function () {
21289
+ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
21281
21290
  var _ref62 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee62(body, opts) {
21282
21291
  return _regeneratorRuntime__default["default"].wrap(function _callee62$(_context62) {
21283
21292
  while (1) {
@@ -21288,7 +21297,7 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
21288
21297
  }
21289
21298
 
21290
21299
  return _context62.abrupt("return", request(_objectSpread$9({}, opts, {
21291
- path: pathCreateEclipseOverseasInvoice()
21300
+ path: pathCreateEclipseInPatientInvoice()
21292
21301
  }), {
21293
21302
  method: 'post',
21294
21303
  data: body
@@ -21302,17 +21311,17 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
21302
21311
  }, _callee62);
21303
21312
  }));
21304
21313
 
21305
- return function createEclipseOverseasInvoice(_x198, _x199) {
21314
+ return function createEclipseInPatientInvoice(_x200, _x201) {
21306
21315
  return _ref62.apply(this, arguments);
21307
21316
  };
21308
21317
  }();
21309
21318
  /**
21310
- * Create ECLIPSE invoice - Online Eligibility Check
21319
+ * Create ECLIPSE invoice - Overseas
21311
21320
  * @param {Object} body - Request body
21312
21321
  * @param {Object} opts - Additional options
21313
21322
  */
21314
21323
 
21315
- var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
21324
+ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
21316
21325
  var _ref63 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee63(body, opts) {
21317
21326
  return _regeneratorRuntime__default["default"].wrap(function _callee63$(_context63) {
21318
21327
  while (1) {
@@ -21323,7 +21332,7 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
21323
21332
  }
21324
21333
 
21325
21334
  return _context63.abrupt("return", request(_objectSpread$9({}, opts, {
21326
- path: pathCreateEclipseOnlineEligibilityCheckInvoice()
21335
+ path: pathCreateEclipseOverseasInvoice()
21327
21336
  }), {
21328
21337
  method: 'post',
21329
21338
  data: body
@@ -21337,19 +21346,18 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
21337
21346
  }, _callee63);
21338
21347
  }));
21339
21348
 
21340
- return function createEclipseOnlineEligibilityCheckInvoice(_x200, _x201) {
21349
+ return function createEclipseOverseasInvoice(_x202, _x203) {
21341
21350
  return _ref63.apply(this, arguments);
21342
21351
  };
21343
21352
  }();
21344
21353
  /**
21345
- * Get business ECLIPSE transaction payment report
21346
- * @param {String} businessId - Business ID
21347
- * @param {String} transactionId - Transaction ID
21354
+ * Create ECLIPSE invoice - Online Eligibility Check
21355
+ * @param {Object} body - Request body
21348
21356
  * @param {Object} opts - Additional options
21349
21357
  */
21350
21358
 
21351
- var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
21352
- var _ref64 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee64(businessId, transactionId, query, opts) {
21359
+ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
21360
+ var _ref64 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee64(body, opts) {
21353
21361
  return _regeneratorRuntime__default["default"].wrap(function _callee64$(_context64) {
21354
21362
  while (1) {
21355
21363
  switch (_context64.prev = _context64.next) {
@@ -21358,18 +21366,14 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
21358
21366
  opts = {};
21359
21367
  }
21360
21368
 
21361
- utils_doesParamExist["default"]({
21362
- businessId: businessId,
21363
- transactionId: transactionId
21364
- }, opts.hyperMediaEndpoint);
21365
21369
  return _context64.abrupt("return", request(_objectSpread$9({}, opts, {
21366
- path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
21370
+ path: pathCreateEclipseOnlineEligibilityCheckInvoice()
21367
21371
  }), {
21368
- method: 'get',
21369
- params: query
21372
+ method: 'post',
21373
+ data: body
21370
21374
  }));
21371
21375
 
21372
- case 3:
21376
+ case 2:
21373
21377
  case "end":
21374
21378
  return _context64.stop();
21375
21379
  }
@@ -21377,18 +21381,18 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
21377
21381
  }, _callee64);
21378
21382
  }));
21379
21383
 
21380
- return function getBusinessEclipseTransactionPaymentReport(_x202, _x203, _x204, _x205) {
21384
+ return function createEclipseOnlineEligibilityCheckInvoice(_x204, _x205) {
21381
21385
  return _ref64.apply(this, arguments);
21382
21386
  };
21383
21387
  }();
21384
21388
  /**
21385
- * Get business ECLIPSE transaction processing report
21389
+ * Get business ECLIPSE transaction payment report
21386
21390
  * @param {String} businessId - Business ID
21387
21391
  * @param {String} transactionId - Transaction ID
21388
21392
  * @param {Object} opts - Additional options
21389
21393
  */
21390
21394
 
21391
- var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
21395
+ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
21392
21396
  var _ref65 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee65(businessId, transactionId, query, opts) {
21393
21397
  return _regeneratorRuntime__default["default"].wrap(function _callee65$(_context65) {
21394
21398
  while (1) {
@@ -21403,7 +21407,7 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
21403
21407
  transactionId: transactionId
21404
21408
  }, opts.hyperMediaEndpoint);
21405
21409
  return _context65.abrupt("return", request(_objectSpread$9({}, opts, {
21406
- path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
21410
+ path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
21407
21411
  }), {
21408
21412
  method: 'get',
21409
21413
  params: query
@@ -21417,19 +21421,19 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
21417
21421
  }, _callee65);
21418
21422
  }));
21419
21423
 
21420
- return function getBusinessEclipseTransactionProcessingReport(_x206, _x207, _x208, _x209) {
21424
+ return function getBusinessEclipseTransactionPaymentReport(_x206, _x207, _x208, _x209) {
21421
21425
  return _ref65.apply(this, arguments);
21422
21426
  };
21423
21427
  }();
21424
21428
  /**
21425
- * Reconciles a claim
21426
- * @param {String} transactionId - TransactionId
21427
- * @param {String} claimId - ClaimId
21429
+ * Get business ECLIPSE transaction processing report
21430
+ * @param {String} businessId - Business ID
21431
+ * @param {String} transactionId - Transaction ID
21428
21432
  * @param {Object} opts - Additional options
21429
21433
  */
21430
21434
 
21431
- var reconcileClaim = /*#__PURE__*/function () {
21432
- var _ref66 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee66(transactionId, claimId, opts) {
21435
+ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
21436
+ var _ref66 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee66(businessId, transactionId, query, opts) {
21433
21437
  return _regeneratorRuntime__default["default"].wrap(function _callee66$(_context66) {
21434
21438
  while (1) {
21435
21439
  switch (_context66.prev = _context66.next) {
@@ -21439,12 +21443,14 @@ var reconcileClaim = /*#__PURE__*/function () {
21439
21443
  }
21440
21444
 
21441
21445
  utils_doesParamExist["default"]({
21446
+ businessId: businessId,
21442
21447
  transactionId: transactionId
21443
21448
  }, opts.hyperMediaEndpoint);
21444
21449
  return _context66.abrupt("return", request(_objectSpread$9({}, opts, {
21445
- path: pathReconcileClaim(transactionId, claimId)
21450
+ path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
21446
21451
  }), {
21447
- method: 'post'
21452
+ method: 'get',
21453
+ params: query
21448
21454
  }));
21449
21455
 
21450
21456
  case 3:
@@ -21455,18 +21461,19 @@ var reconcileClaim = /*#__PURE__*/function () {
21455
21461
  }, _callee66);
21456
21462
  }));
21457
21463
 
21458
- return function reconcileClaim(_x210, _x211, _x212) {
21464
+ return function getBusinessEclipseTransactionProcessingReport(_x210, _x211, _x212, _x213) {
21459
21465
  return _ref66.apply(this, arguments);
21460
21466
  };
21461
21467
  }();
21462
21468
  /**
21463
- * Save draft for ECLIPSE invoice - In Patient
21464
- * @param {Object} body - Request body
21469
+ * Reconciles a claim
21470
+ * @param {String} transactionId - TransactionId
21471
+ * @param {String} claimId - ClaimId
21465
21472
  * @param {Object} opts - Additional options
21466
21473
  */
21467
21474
 
21468
- var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
21469
- var _ref67 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee67(body, opts) {
21475
+ var reconcileClaim = /*#__PURE__*/function () {
21476
+ var _ref67 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee67(transactionId, claimId, opts) {
21470
21477
  return _regeneratorRuntime__default["default"].wrap(function _callee67$(_context67) {
21471
21478
  while (1) {
21472
21479
  switch (_context67.prev = _context67.next) {
@@ -21475,14 +21482,16 @@ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
21475
21482
  opts = {};
21476
21483
  }
21477
21484
 
21485
+ utils_doesParamExist["default"]({
21486
+ transactionId: transactionId
21487
+ }, opts.hyperMediaEndpoint);
21478
21488
  return _context67.abrupt("return", request(_objectSpread$9({}, opts, {
21479
- path: pathSaveDraftEclipseInPatientInvoice()
21489
+ path: pathReconcileClaim(transactionId, claimId)
21480
21490
  }), {
21481
- method: 'post',
21482
- data: body
21491
+ method: 'post'
21483
21492
  }));
21484
21493
 
21485
- case 2:
21494
+ case 3:
21486
21495
  case "end":
21487
21496
  return _context67.stop();
21488
21497
  }
@@ -21490,17 +21499,17 @@ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
21490
21499
  }, _callee67);
21491
21500
  }));
21492
21501
 
21493
- return function saveDraftEclipseInPatientInvoice(_x213, _x214) {
21502
+ return function reconcileClaim(_x214, _x215, _x216) {
21494
21503
  return _ref67.apply(this, arguments);
21495
21504
  };
21496
21505
  }();
21497
21506
  /**
21498
- * Save draft ECLIPSE invoice - Overseas
21507
+ * Save draft for ECLIPSE invoice - In Patient
21499
21508
  * @param {Object} body - Request body
21500
21509
  * @param {Object} opts - Additional options
21501
21510
  */
21502
21511
 
21503
- var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
21512
+ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
21504
21513
  var _ref68 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee68(body, opts) {
21505
21514
  return _regeneratorRuntime__default["default"].wrap(function _callee68$(_context68) {
21506
21515
  while (1) {
@@ -21511,7 +21520,7 @@ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
21511
21520
  }
21512
21521
 
21513
21522
  return _context68.abrupt("return", request(_objectSpread$9({}, opts, {
21514
- path: pathSaveDraftEclipseOverseasInvoice()
21523
+ path: pathSaveDraftEclipseInPatientInvoice()
21515
21524
  }), {
21516
21525
  method: 'post',
21517
21526
  data: body
@@ -21525,17 +21534,17 @@ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
21525
21534
  }, _callee68);
21526
21535
  }));
21527
21536
 
21528
- return function saveDraftEclipseOverseasInvoice(_x215, _x216) {
21537
+ return function saveDraftEclipseInPatientInvoice(_x217, _x218) {
21529
21538
  return _ref68.apply(this, arguments);
21530
21539
  };
21531
21540
  }();
21532
21541
  /**
21533
- * Create PHI invoice
21542
+ * Save draft ECLIPSE invoice - Overseas
21534
21543
  * @param {Object} body - Request body
21535
21544
  * @param {Object} opts - Additional options
21536
21545
  */
21537
21546
 
21538
- var createPhiInvoice = /*#__PURE__*/function () {
21547
+ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
21539
21548
  var _ref69 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee69(body, opts) {
21540
21549
  return _regeneratorRuntime__default["default"].wrap(function _callee69$(_context69) {
21541
21550
  while (1) {
@@ -21546,7 +21555,7 @@ var createPhiInvoice = /*#__PURE__*/function () {
21546
21555
  }
21547
21556
 
21548
21557
  return _context69.abrupt("return", request(_objectSpread$9({}, opts, {
21549
- path: pathPhiInvoice()
21558
+ path: pathSaveDraftEclipseOverseasInvoice()
21550
21559
  }), {
21551
21560
  method: 'post',
21552
21561
  data: body
@@ -21560,17 +21569,17 @@ var createPhiInvoice = /*#__PURE__*/function () {
21560
21569
  }, _callee69);
21561
21570
  }));
21562
21571
 
21563
- return function createPhiInvoice(_x217, _x218) {
21572
+ return function saveDraftEclipseOverseasInvoice(_x219, _x220) {
21564
21573
  return _ref69.apply(this, arguments);
21565
21574
  };
21566
21575
  }();
21567
21576
  /**
21568
- * Create a PHI quote
21577
+ * Create PHI invoice
21569
21578
  * @param {Object} body - Request body
21570
21579
  * @param {Object} opts - Additional options
21571
21580
  */
21572
21581
 
21573
- var createPhiQuote = /*#__PURE__*/function () {
21582
+ var createPhiInvoice = /*#__PURE__*/function () {
21574
21583
  var _ref70 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee70(body, opts) {
21575
21584
  return _regeneratorRuntime__default["default"].wrap(function _callee70$(_context70) {
21576
21585
  while (1) {
@@ -21581,7 +21590,7 @@ var createPhiQuote = /*#__PURE__*/function () {
21581
21590
  }
21582
21591
 
21583
21592
  return _context70.abrupt("return", request(_objectSpread$9({}, opts, {
21584
- path: pathPhiQuote()
21593
+ path: pathPhiInvoice()
21585
21594
  }), {
21586
21595
  method: 'post',
21587
21596
  data: body
@@ -21595,10 +21604,45 @@ var createPhiQuote = /*#__PURE__*/function () {
21595
21604
  }, _callee70);
21596
21605
  }));
21597
21606
 
21598
- return function createPhiQuote(_x219, _x220) {
21607
+ return function createPhiInvoice(_x221, _x222) {
21599
21608
  return _ref70.apply(this, arguments);
21600
21609
  };
21601
21610
  }();
21611
+ /**
21612
+ * Create a PHI quote
21613
+ * @param {Object} body - Request body
21614
+ * @param {Object} opts - Additional options
21615
+ */
21616
+
21617
+ var createPhiQuote = /*#__PURE__*/function () {
21618
+ var _ref71 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee71(body, opts) {
21619
+ return _regeneratorRuntime__default["default"].wrap(function _callee71$(_context71) {
21620
+ while (1) {
21621
+ switch (_context71.prev = _context71.next) {
21622
+ case 0:
21623
+ if (opts === void 0) {
21624
+ opts = {};
21625
+ }
21626
+
21627
+ return _context71.abrupt("return", request(_objectSpread$9({}, opts, {
21628
+ path: pathPhiQuote()
21629
+ }), {
21630
+ method: 'post',
21631
+ data: body
21632
+ }));
21633
+
21634
+ case 2:
21635
+ case "end":
21636
+ return _context71.stop();
21637
+ }
21638
+ }
21639
+ }, _callee71);
21640
+ }));
21641
+
21642
+ return function createPhiQuote(_x223, _x224) {
21643
+ return _ref71.apply(this, arguments);
21644
+ };
21645
+ }();
21602
21646
 
21603
21647
  /**
21604
21648
  * Email invoice
@@ -21607,10 +21651,10 @@ var createPhiQuote = /*#__PURE__*/function () {
21607
21651
  * @param {Object} opts - Additional options
21608
21652
  */
21609
21653
  var emailInvoice = /*#__PURE__*/function () {
21610
- var _ref71 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee71(transactionId, body, opts) {
21611
- return _regeneratorRuntime__default["default"].wrap(function _callee71$(_context71) {
21654
+ var _ref72 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee72(transactionId, body, opts) {
21655
+ return _regeneratorRuntime__default["default"].wrap(function _callee72$(_context72) {
21612
21656
  while (1) {
21613
- switch (_context71.prev = _context71.next) {
21657
+ switch (_context72.prev = _context72.next) {
21614
21658
  case 0:
21615
21659
  if (opts === void 0) {
21616
21660
  opts = {};
@@ -21619,7 +21663,7 @@ var emailInvoice = /*#__PURE__*/function () {
21619
21663
  utils_doesParamExist["default"]({
21620
21664
  transactionId: transactionId
21621
21665
  }, opts.hyperMediaEndpoint);
21622
- return _context71.abrupt("return", request(_objectSpread$9({}, opts, {
21666
+ return _context72.abrupt("return", request(_objectSpread$9({}, opts, {
21623
21667
  path: pathEmailInvoice(transactionId)
21624
21668
  }), {
21625
21669
  method: 'post',
@@ -21628,14 +21672,14 @@ var emailInvoice = /*#__PURE__*/function () {
21628
21672
 
21629
21673
  case 3:
21630
21674
  case "end":
21631
- return _context71.stop();
21675
+ return _context72.stop();
21632
21676
  }
21633
21677
  }
21634
- }, _callee71);
21678
+ }, _callee72);
21635
21679
  }));
21636
21680
 
21637
- return function emailInvoice(_x221, _x222, _x223) {
21638
- return _ref71.apply(this, arguments);
21681
+ return function emailInvoice(_x225, _x226, _x227) {
21682
+ return _ref72.apply(this, arguments);
21639
21683
  };
21640
21684
  }();
21641
21685
 
@@ -21700,6 +21744,7 @@ var transactions = /*#__PURE__*/Object.freeze({
21700
21744
  terminalInput: terminalInput,
21701
21745
  terminalCancellation: terminalCancellation,
21702
21746
  refundPayment: refundPayment,
21747
+ standaloneRefund: standaloneRefund,
21703
21748
  voidPayment: voidPayment,
21704
21749
  createEclipseInPatientInvoice: createEclipseInPatientInvoice,
21705
21750
  createEclipseOverseasInvoice: createEclipseOverseasInvoice,
@@ -24488,6 +24533,7 @@ exports.specialties = specialties;
24488
24533
  exports.staff = staff;
24489
24534
  exports.staffProfiles = staffProfiles;
24490
24535
  exports.staffUtils = staffUtils;
24536
+ exports.standaloneRefund = standaloneRefund;
24491
24537
  exports.statistics = statistics;
24492
24538
  exports.stripBottleneckOpts = stripBottleneckOpts;
24493
24539
  exports.submit = submit;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('@babel/runtime/regenerator');
6
6
  require('@babel/runtime/helpers/asyncToGenerator');
7
- var utils_request = require('../staff-ab81252c.js');
7
+ var utils_request = require('../staff-ec550dca.js');
8
8
  require('@babel/runtime/helpers/defineProperty');
9
9
  require('lodash/merge');
10
10
  require('lodash/uniq');
@@ -7,7 +7,7 @@ require('@babel/runtime/helpers/defineProperty');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('lodash/uniq');
9
9
  require('lodash/flatten');
10
- var utils_request = require('../staff-ab81252c.js');
10
+ var utils_request = require('../staff-ec550dca.js');
11
11
  require('lodash/merge');
12
12
  require('axios');
13
13
  require('date-fns/differenceInSeconds');
@@ -7,7 +7,7 @@ require('@babel/runtime/helpers/asyncToGenerator');
7
7
  require('@babel/runtime/helpers/defineProperty');
8
8
  require('@medipass/utils/sentry');
9
9
  require('lodash/get');
10
- var utils_request = require('../staff-ab81252c.js');
10
+ var utils_request = require('../staff-ec550dca.js');
11
11
  require('./get-axios-error.js');
12
12
  require('lodash/merge');
13
13
  require('lodash/uniq');
@@ -7,7 +7,7 @@ require('@babel/runtime/regenerator');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('lodash/merge');
9
9
  require('lodash/uniq');
10
- var utils_request = require('../staff-ab81252c.js');
10
+ var utils_request = require('../staff-ec550dca.js');
11
11
  require('axios');
12
12
  require('date-fns/differenceInSeconds');
13
13
  require('jwt-decode');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "11.71.1",
3
+ "version": "11.71.2-chore-refund-modal-instructions.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -59,5 +59,5 @@
59
59
  "resolutions": {
60
60
  "react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
61
61
  },
62
- "gitHead": "54bb9717700ee081ef57bb319cc5648523100dc9"
62
+ "gitHead": "dc13921e05a2e0570da639bf13d6f67b52feefa0"
63
63
  }