@medipass/web-sdk 11.23.0 → 11.23.2-fix-main-page-back-button.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 (83) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/index.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/bulk-uploads.js +1 -1
  10. package/lib/resources/business-profiles.js +1 -1
  11. package/lib/resources/businesses.js +1 -1
  12. package/lib/resources/claim-items.js +1 -1
  13. package/lib/resources/devices.js +1 -1
  14. package/lib/resources/doc-accounts.js +1 -1
  15. package/lib/resources/documents.js +1 -1
  16. package/lib/resources/emails.js +1 -1
  17. package/lib/resources/form-application-templates.js +1 -1
  18. package/lib/resources/form-applications.js +1 -1
  19. package/lib/resources/forms.js +1 -1
  20. package/lib/resources/funder-settings.js +1 -1
  21. package/lib/resources/funders.js +1 -1
  22. package/lib/resources/futures.js +1 -1
  23. package/lib/resources/health-fund-accounts.js +1 -1
  24. package/lib/resources/health-fund-settings.js +1 -1
  25. package/lib/resources/healthfunds.js +1 -1
  26. package/lib/resources/icditems.js +1 -1
  27. package/lib/resources/invoice-scans.js +1 -1
  28. package/lib/resources/jhcs.js +1 -1
  29. package/lib/resources/kyc.js +1 -1
  30. package/lib/resources/logs.js +1 -1
  31. package/lib/resources/members.js +1 -1
  32. package/lib/resources/message-mappings.js +1 -1
  33. package/lib/resources/minions.js +1 -1
  34. package/lib/resources/modalities.js +1 -1
  35. package/lib/resources/notes.js +1 -1
  36. package/lib/resources/onboarding-applications.js +1 -1
  37. package/lib/resources/onboarding-requests.js +1 -1
  38. package/lib/resources/ops.js +2 -1
  39. package/lib/resources/ops.js.flow +12 -0
  40. package/lib/resources/organisations.js +1 -1
  41. package/lib/resources/partners.js +1 -1
  42. package/lib/resources/patients.js +1 -1
  43. package/lib/resources/payments.js +1 -1
  44. package/lib/resources/pms.js +1 -1
  45. package/lib/resources/practice-profiles.js +1 -1
  46. package/lib/resources/practice-types.js +1 -1
  47. package/lib/resources/practices.js +1 -1
  48. package/lib/resources/products.js +1 -1
  49. package/lib/resources/professional-categories.js +1 -1
  50. package/lib/resources/provider-number-types.js +1 -1
  51. package/lib/resources/provider-registration-types.js +1 -1
  52. package/lib/resources/provider-requests.js +1 -1
  53. package/lib/resources/provider-types.js +1 -1
  54. package/lib/resources/ref-sources.js +1 -1
  55. package/lib/resources/risk.js +1 -1
  56. package/lib/resources/rnas.js +1 -1
  57. package/lib/resources/roles.js +1 -1
  58. package/lib/resources/self-checkout-sessions.js +1 -1
  59. package/lib/resources/services.js +1 -1
  60. package/lib/resources/settlements.js +1 -1
  61. package/lib/resources/sign-up.js +1 -1
  62. package/lib/resources/specialties.js +1 -1
  63. package/lib/resources/staff-profiles.js +1 -1
  64. package/lib/resources/staff.js +1 -1
  65. package/lib/resources/statistics.js +1 -1
  66. package/lib/resources/subscriptions.js +1 -1
  67. package/lib/resources/terminals.js +1 -1
  68. package/lib/resources/transaction-export.js +1 -1
  69. package/lib/resources/transactions.js +2 -1
  70. package/lib/resources/transactions.js.flow +16 -0
  71. package/lib/resources/triggers.js +1 -1
  72. package/lib/resources/vendors.js +1 -1
  73. package/lib/resources/verify.js +1 -1
  74. package/lib/resources/workers.js +1 -1
  75. package/lib/resources/workflow-exceptions.js +1 -1
  76. package/lib/services/aws.js +1 -1
  77. package/lib/services/version.js +1 -1
  78. package/lib/{staff-d6dc9736.js → staff-23d3c9e0.js} +440 -370
  79. package/lib/utils/application.js +1 -1
  80. package/lib/utils/professions.js +1 -1
  81. package/lib/utils/request.js +1 -1
  82. package/lib/utils/staff.js +1 -1
  83. package/package.json +2 -2
@@ -8850,6 +8850,7 @@ function ownKeys$A(object, enumerableOnly) { var keys = Object.keys(object); if
8850
8850
  function _objectSpread$A(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$A(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$A(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
8851
8851
  var PATH__OPS_DEPLOYMENTS = '/ops/deployments';
8852
8852
  var PATH__OPS_SERVICES = '/ops/services';
8853
+ var PATH__OPS_DECRTPT = '/ops/decrypt';
8853
8854
 
8854
8855
  var pathOpsDeployment = function pathOpsDeployment(deploymentId) {
8855
8856
  return "/ops/deployments/" + deploymentId;
@@ -9041,6 +9042,28 @@ var updateService = function updateService(serviceId, body, opts) {
9041
9042
  data: body
9042
9043
  });
9043
9044
  };
9045
+ /**
9046
+ * Decrypt Service
9047
+ * @param {String} serviceId - Service ID
9048
+ * @param {Object} body - Request body
9049
+ * @param {Object} opts - Additional options
9050
+ */
9051
+
9052
+ var decrypt = function decrypt(serviceId, body, opts) {
9053
+ if (opts === void 0) {
9054
+ opts = {};
9055
+ }
9056
+
9057
+ doesParamExist.default({
9058
+ serviceId: serviceId
9059
+ }, opts.hyperMediaEndpoint);
9060
+ return request(_objectSpread$A({}, opts, {
9061
+ path: PATH__OPS_DECRTPT
9062
+ }), {
9063
+ method: 'post',
9064
+ data: body
9065
+ });
9066
+ };
9044
9067
 
9045
9068
  var ops = /*#__PURE__*/Object.freeze({
9046
9069
  __proto__: null,
@@ -9051,7 +9074,8 @@ var ops = /*#__PURE__*/Object.freeze({
9051
9074
  getDeployment: getDeployment,
9052
9075
  getServices: getServices,
9053
9076
  getService: getService,
9054
- updateService: updateService
9077
+ updateService: updateService,
9078
+ decrypt: decrypt
9055
9079
  });
9056
9080
 
9057
9081
  function ownKeys$B(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
@@ -16742,6 +16766,10 @@ var pathBusinessPracticeInvoices = function pathBusinessPracticeInvoices(busines
16742
16766
  return "/businesses/" + businessId + "/practices/" + practiceId + "/invoices";
16743
16767
  };
16744
16768
 
16769
+ var pathBusinessTransactionQuotes = function pathBusinessTransactionQuotes(businessId) {
16770
+ return "/businesses/" + businessId + "/transactions/quotes";
16771
+ };
16772
+
16745
16773
  var pathBusinessPracticeStaffQuotes = function pathBusinessPracticeStaffQuotes(businessId, practiceId, staffId) {
16746
16774
  return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/quotes";
16747
16775
  };
@@ -17212,6 +17240,45 @@ var createBusinessPracticeInvoice = /*#__PURE__*/function () {
17212
17240
  /**
17213
17241
  * Create a quote for a business
17214
17242
  * @param {String} businessId - Business ID
17243
+ * @param {Object} body - Request body
17244
+ * @param {Object} opts - Additional options
17245
+ */
17246
+
17247
+ var createBusinessTransactionQuote = /*#__PURE__*/function () {
17248
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(businessId, body, opts) {
17249
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
17250
+ while (1) {
17251
+ switch (_context9.prev = _context9.next) {
17252
+ case 0:
17253
+ if (opts === void 0) {
17254
+ opts = {};
17255
+ }
17256
+
17257
+ doesParamExist.default({
17258
+ businessId: businessId
17259
+ }, opts.hyperMediaEndpoint);
17260
+ return _context9.abrupt("return", request(_objectSpread$12({}, opts, {
17261
+ path: pathBusinessTransactionQuotes(businessId)
17262
+ }), {
17263
+ method: 'post',
17264
+ data: body
17265
+ }));
17266
+
17267
+ case 3:
17268
+ case "end":
17269
+ return _context9.stop();
17270
+ }
17271
+ }
17272
+ }, _callee9);
17273
+ }));
17274
+
17275
+ return function createBusinessTransactionQuote(_x28, _x29, _x30) {
17276
+ return _ref9.apply(this, arguments);
17277
+ };
17278
+ }();
17279
+ /**
17280
+ * Create a quote for a staff
17281
+ * @param {String} businessId - Business ID
17215
17282
  * @param {String} practiceId - Practice ID
17216
17283
  * @param {String} staffId - Staff ID
17217
17284
  * @param {Object} body - Request body
@@ -17219,10 +17286,10 @@ var createBusinessPracticeInvoice = /*#__PURE__*/function () {
17219
17286
  */
17220
17287
 
17221
17288
  var createBusinessPracticeStaffMemberQuote = /*#__PURE__*/function () {
17222
- var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(businessId, practiceId, staffId, body, opts) {
17223
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
17289
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(businessId, practiceId, staffId, body, opts) {
17290
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
17224
17291
  while (1) {
17225
- switch (_context9.prev = _context9.next) {
17292
+ switch (_context10.prev = _context10.next) {
17226
17293
  case 0:
17227
17294
  if (opts === void 0) {
17228
17295
  opts = {};
@@ -17233,7 +17300,7 @@ var createBusinessPracticeStaffMemberQuote = /*#__PURE__*/function () {
17233
17300
  practiceId: practiceId,
17234
17301
  staffId: staffId
17235
17302
  }, opts.hyperMediaEndpoint);
17236
- return _context9.abrupt("return", request(_objectSpread$12({}, opts, {
17303
+ return _context10.abrupt("return", request(_objectSpread$12({}, opts, {
17237
17304
  path: pathBusinessPracticeStaffQuotes(businessId, practiceId, staffId)
17238
17305
  }), {
17239
17306
  method: 'post',
@@ -17242,14 +17309,14 @@ var createBusinessPracticeStaffMemberQuote = /*#__PURE__*/function () {
17242
17309
 
17243
17310
  case 3:
17244
17311
  case "end":
17245
- return _context9.stop();
17312
+ return _context10.stop();
17246
17313
  }
17247
17314
  }
17248
- }, _callee9);
17315
+ }, _callee10);
17249
17316
  }));
17250
17317
 
17251
- return function createBusinessPracticeStaffMemberQuote(_x28, _x29, _x30, _x31, _x32) {
17252
- return _ref9.apply(this, arguments);
17318
+ return function createBusinessPracticeStaffMemberQuote(_x31, _x32, _x33, _x34, _x35) {
17319
+ return _ref10.apply(this, arguments);
17253
17320
  };
17254
17321
  }();
17255
17322
  /**
@@ -17262,11 +17329,11 @@ var createBusinessPracticeStaffMemberQuote = /*#__PURE__*/function () {
17262
17329
  */
17263
17330
 
17264
17331
  var createPayment = /*#__PURE__*/function () {
17265
- var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(transactionId, source, nonce, body, opts) {
17332
+ var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(transactionId, source, nonce, body, opts) {
17266
17333
  var newBody;
17267
- return _regeneratorRuntime.wrap(function _callee10$(_context10) {
17334
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
17268
17335
  while (1) {
17269
- switch (_context10.prev = _context10.next) {
17336
+ switch (_context11.prev = _context11.next) {
17270
17337
  case 0:
17271
17338
  if (opts === void 0) {
17272
17339
  opts = {};
@@ -17284,7 +17351,7 @@ var createPayment = /*#__PURE__*/function () {
17284
17351
  };
17285
17352
  }
17286
17353
 
17287
- return _context10.abrupt("return", request(_objectSpread$12({}, opts, {
17354
+ return _context11.abrupt("return", request(_objectSpread$12({}, opts, {
17288
17355
  path: pathTransactionByTransactionId(transactionId) + "/payments"
17289
17356
  }), {
17290
17357
  method: 'post',
@@ -17293,14 +17360,14 @@ var createPayment = /*#__PURE__*/function () {
17293
17360
 
17294
17361
  case 5:
17295
17362
  case "end":
17296
- return _context10.stop();
17363
+ return _context11.stop();
17297
17364
  }
17298
17365
  }
17299
- }, _callee10);
17366
+ }, _callee11);
17300
17367
  }));
17301
17368
 
17302
- return function createPayment(_x33, _x34, _x35, _x36, _x37) {
17303
- return _ref10.apply(this, arguments);
17369
+ return function createPayment(_x36, _x37, _x38, _x39, _x40) {
17370
+ return _ref11.apply(this, arguments);
17304
17371
  };
17305
17372
  }();
17306
17373
  /**
@@ -17311,10 +17378,10 @@ var createPayment = /*#__PURE__*/function () {
17311
17378
  */
17312
17379
 
17313
17380
  var createPaymentRequest = /*#__PURE__*/function () {
17314
- var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(transactionId, body, opts) {
17315
- return _regeneratorRuntime.wrap(function _callee11$(_context11) {
17381
+ var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(transactionId, body, opts) {
17382
+ return _regeneratorRuntime.wrap(function _callee12$(_context12) {
17316
17383
  while (1) {
17317
- switch (_context11.prev = _context11.next) {
17384
+ switch (_context12.prev = _context12.next) {
17318
17385
  case 0:
17319
17386
  if (opts === void 0) {
17320
17387
  opts = {};
@@ -17323,7 +17390,7 @@ var createPaymentRequest = /*#__PURE__*/function () {
17323
17390
  doesParamExist.default({
17324
17391
  transactionId: transactionId
17325
17392
  }, opts.hyperMediaEndpoint);
17326
- return _context11.abrupt("return", request(_objectSpread$12({}, opts, {
17393
+ return _context12.abrupt("return", request(_objectSpread$12({}, opts, {
17327
17394
  path: pathTransactionByTransactionId(transactionId) + "/paymentrequests"
17328
17395
  }), {
17329
17396
  method: 'post',
@@ -17332,14 +17399,14 @@ var createPaymentRequest = /*#__PURE__*/function () {
17332
17399
 
17333
17400
  case 3:
17334
17401
  case "end":
17335
- return _context11.stop();
17402
+ return _context12.stop();
17336
17403
  }
17337
17404
  }
17338
- }, _callee11);
17405
+ }, _callee12);
17339
17406
  }));
17340
17407
 
17341
- return function createPaymentRequest(_x38, _x39, _x40) {
17342
- return _ref11.apply(this, arguments);
17408
+ return function createPaymentRequest(_x41, _x42, _x43) {
17409
+ return _ref12.apply(this, arguments);
17343
17410
  };
17344
17411
  }();
17345
17412
  /**
@@ -17350,10 +17417,10 @@ var createPaymentRequest = /*#__PURE__*/function () {
17350
17417
  */
17351
17418
 
17352
17419
  var completeQuote = /*#__PURE__*/function () {
17353
- var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(transactionId, memberId, opts) {
17354
- return _regeneratorRuntime.wrap(function _callee12$(_context12) {
17420
+ var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(transactionId, memberId, opts) {
17421
+ return _regeneratorRuntime.wrap(function _callee13$(_context13) {
17355
17422
  while (1) {
17356
- switch (_context12.prev = _context12.next) {
17423
+ switch (_context13.prev = _context13.next) {
17357
17424
  case 0:
17358
17425
  if (opts === void 0) {
17359
17426
  opts = {};
@@ -17363,7 +17430,7 @@ var completeQuote = /*#__PURE__*/function () {
17363
17430
  transactionId: transactionId,
17364
17431
  memberId: memberId
17365
17432
  }, opts.hyperMediaEndpoint);
17366
- return _context12.abrupt("return", request(_objectSpread$12({}, opts, {
17433
+ return _context13.abrupt("return", request(_objectSpread$12({}, opts, {
17367
17434
  path: pathTransactionByTransactionId(transactionId) + "/completequote"
17368
17435
  }), {
17369
17436
  method: 'post',
@@ -17374,14 +17441,14 @@ var completeQuote = /*#__PURE__*/function () {
17374
17441
 
17375
17442
  case 3:
17376
17443
  case "end":
17377
- return _context12.stop();
17444
+ return _context13.stop();
17378
17445
  }
17379
17446
  }
17380
- }, _callee12);
17447
+ }, _callee13);
17381
17448
  }));
17382
17449
 
17383
- return function completeQuote(_x41, _x42, _x43) {
17384
- return _ref12.apply(this, arguments);
17450
+ return function completeQuote(_x44, _x45, _x46) {
17451
+ return _ref13.apply(this, arguments);
17385
17452
  };
17386
17453
  }();
17387
17454
  /**
@@ -17392,10 +17459,10 @@ var completeQuote = /*#__PURE__*/function () {
17392
17459
  */
17393
17460
 
17394
17461
  var deleteTransactionTag = /*#__PURE__*/function () {
17395
- var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(transactionId, tagId, opts) {
17396
- return _regeneratorRuntime.wrap(function _callee13$(_context13) {
17462
+ var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(transactionId, tagId, opts) {
17463
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
17397
17464
  while (1) {
17398
- switch (_context13.prev = _context13.next) {
17465
+ switch (_context14.prev = _context14.next) {
17399
17466
  case 0:
17400
17467
  if (opts === void 0) {
17401
17468
  opts = {};
@@ -17405,7 +17472,7 @@ var deleteTransactionTag = /*#__PURE__*/function () {
17405
17472
  transactionId: transactionId,
17406
17473
  tagId: tagId
17407
17474
  }, opts.hyperMediaEndpoint);
17408
- return _context13.abrupt("return", request(_objectSpread$12({}, opts, {
17475
+ return _context14.abrupt("return", request(_objectSpread$12({}, opts, {
17409
17476
  path: pathTransactionTag(transactionId, tagId)
17410
17477
  }), {
17411
17478
  method: 'delete'
@@ -17413,14 +17480,14 @@ var deleteTransactionTag = /*#__PURE__*/function () {
17413
17480
 
17414
17481
  case 3:
17415
17482
  case "end":
17416
- return _context13.stop();
17483
+ return _context14.stop();
17417
17484
  }
17418
17485
  }
17419
- }, _callee13);
17486
+ }, _callee14);
17420
17487
  }));
17421
17488
 
17422
- return function deleteTransactionTag(_x44, _x45, _x46) {
17423
- return _ref13.apply(this, arguments);
17489
+ return function deleteTransactionTag(_x47, _x48, _x49) {
17490
+ return _ref14.apply(this, arguments);
17424
17491
  };
17425
17492
  }();
17426
17493
  /**
@@ -17430,10 +17497,10 @@ var deleteTransactionTag = /*#__PURE__*/function () {
17430
17497
  */
17431
17498
 
17432
17499
  var deleteTransaction = /*#__PURE__*/function () {
17433
- var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(transactionId, opts) {
17434
- return _regeneratorRuntime.wrap(function _callee14$(_context14) {
17500
+ var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(transactionId, opts) {
17501
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
17435
17502
  while (1) {
17436
- switch (_context14.prev = _context14.next) {
17503
+ switch (_context15.prev = _context15.next) {
17437
17504
  case 0:
17438
17505
  if (opts === void 0) {
17439
17506
  opts = {};
@@ -17442,7 +17509,7 @@ var deleteTransaction = /*#__PURE__*/function () {
17442
17509
  doesParamExist.default({
17443
17510
  transactionId: transactionId
17444
17511
  }, opts.hyperMediaEndpoint);
17445
- return _context14.abrupt("return", request(_objectSpread$12({}, opts, {
17512
+ return _context15.abrupt("return", request(_objectSpread$12({}, opts, {
17446
17513
  path: pathTransactionByTransactionId(transactionId)
17447
17514
  }), {
17448
17515
  method: 'delete'
@@ -17450,14 +17517,14 @@ var deleteTransaction = /*#__PURE__*/function () {
17450
17517
 
17451
17518
  case 3:
17452
17519
  case "end":
17453
- return _context14.stop();
17520
+ return _context15.stop();
17454
17521
  }
17455
17522
  }
17456
- }, _callee14);
17523
+ }, _callee15);
17457
17524
  }));
17458
17525
 
17459
- return function deleteTransaction(_x47, _x48) {
17460
- return _ref14.apply(this, arguments);
17526
+ return function deleteTransaction(_x50, _x51) {
17527
+ return _ref15.apply(this, arguments);
17461
17528
  };
17462
17529
  }();
17463
17530
  /**
@@ -17468,10 +17535,10 @@ var deleteTransaction = /*#__PURE__*/function () {
17468
17535
  */
17469
17536
 
17470
17537
  var getBusinessTransactions = /*#__PURE__*/function () {
17471
- var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(businessId, query, opts) {
17472
- return _regeneratorRuntime.wrap(function _callee15$(_context15) {
17538
+ var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(businessId, query, opts) {
17539
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
17473
17540
  while (1) {
17474
- switch (_context15.prev = _context15.next) {
17541
+ switch (_context16.prev = _context16.next) {
17475
17542
  case 0:
17476
17543
  if (query === void 0) {
17477
17544
  query = {};
@@ -17484,7 +17551,7 @@ var getBusinessTransactions = /*#__PURE__*/function () {
17484
17551
  doesParamExist.default({
17485
17552
  businessId: businessId
17486
17553
  }, opts.hyperMediaEndpoint);
17487
- return _context15.abrupt("return", request(_objectSpread$12({}, opts, {
17554
+ return _context16.abrupt("return", request(_objectSpread$12({}, opts, {
17488
17555
  path: pathBusinessTransactions(businessId)
17489
17556
  }), {
17490
17557
  method: 'get',
@@ -17493,14 +17560,14 @@ var getBusinessTransactions = /*#__PURE__*/function () {
17493
17560
 
17494
17561
  case 4:
17495
17562
  case "end":
17496
- return _context15.stop();
17563
+ return _context16.stop();
17497
17564
  }
17498
17565
  }
17499
- }, _callee15);
17566
+ }, _callee16);
17500
17567
  }));
17501
17568
 
17502
- return function getBusinessTransactions(_x49, _x50, _x51) {
17503
- return _ref15.apply(this, arguments);
17569
+ return function getBusinessTransactions(_x52, _x53, _x54) {
17570
+ return _ref16.apply(this, arguments);
17504
17571
  };
17505
17572
  }();
17506
17573
  /**
@@ -17511,10 +17578,10 @@ var getBusinessTransactions = /*#__PURE__*/function () {
17511
17578
  */
17512
17579
 
17513
17580
  var getBusinessTransaction = /*#__PURE__*/function () {
17514
- var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(businessId, transactionId, query, opts) {
17515
- return _regeneratorRuntime.wrap(function _callee16$(_context16) {
17581
+ var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(businessId, transactionId, query, opts) {
17582
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
17516
17583
  while (1) {
17517
- switch (_context16.prev = _context16.next) {
17584
+ switch (_context17.prev = _context17.next) {
17518
17585
  case 0:
17519
17586
  if (opts === void 0) {
17520
17587
  opts = {};
@@ -17524,7 +17591,7 @@ var getBusinessTransaction = /*#__PURE__*/function () {
17524
17591
  businessId: businessId,
17525
17592
  transactionId: transactionId
17526
17593
  }, opts.hyperMediaEndpoint);
17527
- return _context16.abrupt("return", request(_objectSpread$12({}, opts, {
17594
+ return _context17.abrupt("return", request(_objectSpread$12({}, opts, {
17528
17595
  path: pathBusinessTransaction(businessId, transactionId)
17529
17596
  }), {
17530
17597
  method: 'get',
@@ -17533,14 +17600,14 @@ var getBusinessTransaction = /*#__PURE__*/function () {
17533
17600
 
17534
17601
  case 3:
17535
17602
  case "end":
17536
- return _context16.stop();
17603
+ return _context17.stop();
17537
17604
  }
17538
17605
  }
17539
- }, _callee16);
17606
+ }, _callee17);
17540
17607
  }));
17541
17608
 
17542
- return function getBusinessTransaction(_x52, _x53, _x54, _x55) {
17543
- return _ref16.apply(this, arguments);
17609
+ return function getBusinessTransaction(_x55, _x56, _x57, _x58) {
17610
+ return _ref17.apply(this, arguments);
17544
17611
  };
17545
17612
  }();
17546
17613
  /**
@@ -17551,10 +17618,10 @@ var getBusinessTransaction = /*#__PURE__*/function () {
17551
17618
  */
17552
17619
 
17553
17620
  var getBusinessTransactionByInvoiceReference = /*#__PURE__*/function () {
17554
- var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(businessId, invoiceReference, opts) {
17555
- return _regeneratorRuntime.wrap(function _callee17$(_context17) {
17621
+ var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(businessId, invoiceReference, opts) {
17622
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
17556
17623
  while (1) {
17557
- switch (_context17.prev = _context17.next) {
17624
+ switch (_context18.prev = _context18.next) {
17558
17625
  case 0:
17559
17626
  if (opts === void 0) {
17560
17627
  opts = {};
@@ -17564,7 +17631,7 @@ var getBusinessTransactionByInvoiceReference = /*#__PURE__*/function () {
17564
17631
  businessId: businessId,
17565
17632
  invoiceReference: invoiceReference
17566
17633
  }, opts.hyperMediaEndpoint);
17567
- return _context17.abrupt("return", request(_objectSpread$12({}, opts, {
17634
+ return _context18.abrupt("return", request(_objectSpread$12({}, opts, {
17568
17635
  path: pathBusinessTransactionsInvoiceReference(businessId, invoiceReference)
17569
17636
  }), {
17570
17637
  method: 'get'
@@ -17572,14 +17639,14 @@ var getBusinessTransactionByInvoiceReference = /*#__PURE__*/function () {
17572
17639
 
17573
17640
  case 3:
17574
17641
  case "end":
17575
- return _context17.stop();
17642
+ return _context18.stop();
17576
17643
  }
17577
17644
  }
17578
- }, _callee17);
17645
+ }, _callee18);
17579
17646
  }));
17580
17647
 
17581
- return function getBusinessTransactionByInvoiceReference(_x56, _x57, _x58) {
17582
- return _ref17.apply(this, arguments);
17648
+ return function getBusinessTransactionByInvoiceReference(_x59, _x60, _x61) {
17649
+ return _ref18.apply(this, arguments);
17583
17650
  };
17584
17651
  }();
17585
17652
  /**
@@ -17590,10 +17657,10 @@ var getBusinessTransactionByInvoiceReference = /*#__PURE__*/function () {
17590
17657
  */
17591
17658
 
17592
17659
  var getBusinessTransactionPaymentReport = /*#__PURE__*/function () {
17593
- var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(businessId, transactionId, query, opts) {
17594
- return _regeneratorRuntime.wrap(function _callee18$(_context18) {
17660
+ var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(businessId, transactionId, query, opts) {
17661
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
17595
17662
  while (1) {
17596
- switch (_context18.prev = _context18.next) {
17663
+ switch (_context19.prev = _context19.next) {
17597
17664
  case 0:
17598
17665
  if (opts === void 0) {
17599
17666
  opts = {};
@@ -17603,7 +17670,7 @@ var getBusinessTransactionPaymentReport = /*#__PURE__*/function () {
17603
17670
  businessId: businessId,
17604
17671
  transactionId: transactionId
17605
17672
  }, opts.hyperMediaEndpoint);
17606
- return _context18.abrupt("return", request(_objectSpread$12({}, opts, {
17673
+ return _context19.abrupt("return", request(_objectSpread$12({}, opts, {
17607
17674
  path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport"
17608
17675
  }), {
17609
17676
  method: 'get',
@@ -17612,14 +17679,14 @@ var getBusinessTransactionPaymentReport = /*#__PURE__*/function () {
17612
17679
 
17613
17680
  case 3:
17614
17681
  case "end":
17615
- return _context18.stop();
17682
+ return _context19.stop();
17616
17683
  }
17617
17684
  }
17618
- }, _callee18);
17685
+ }, _callee19);
17619
17686
  }));
17620
17687
 
17621
- return function getBusinessTransactionPaymentReport(_x59, _x60, _x61, _x62) {
17622
- return _ref18.apply(this, arguments);
17688
+ return function getBusinessTransactionPaymentReport(_x62, _x63, _x64, _x65) {
17689
+ return _ref19.apply(this, arguments);
17623
17690
  };
17624
17691
  }();
17625
17692
  /**
@@ -17630,10 +17697,10 @@ var getBusinessTransactionPaymentReport = /*#__PURE__*/function () {
17630
17697
  */
17631
17698
 
17632
17699
  var getBusinessTransactionProcessingReport = /*#__PURE__*/function () {
17633
- var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(businessId, transactionId, query, opts) {
17634
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
17700
+ var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(businessId, transactionId, query, opts) {
17701
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
17635
17702
  while (1) {
17636
- switch (_context19.prev = _context19.next) {
17703
+ switch (_context20.prev = _context20.next) {
17637
17704
  case 0:
17638
17705
  if (opts === void 0) {
17639
17706
  opts = {};
@@ -17643,7 +17710,7 @@ var getBusinessTransactionProcessingReport = /*#__PURE__*/function () {
17643
17710
  businessId: businessId,
17644
17711
  transactionId: transactionId
17645
17712
  }, opts.hyperMediaEndpoint);
17646
- return _context19.abrupt("return", request(_objectSpread$12({}, opts, {
17713
+ return _context20.abrupt("return", request(_objectSpread$12({}, opts, {
17647
17714
  path: pathBusinessTransaction(businessId, transactionId) + "/processingreport"
17648
17715
  }), {
17649
17716
  method: 'get',
@@ -17652,14 +17719,14 @@ var getBusinessTransactionProcessingReport = /*#__PURE__*/function () {
17652
17719
 
17653
17720
  case 3:
17654
17721
  case "end":
17655
- return _context19.stop();
17722
+ return _context20.stop();
17656
17723
  }
17657
17724
  }
17658
- }, _callee19);
17725
+ }, _callee20);
17659
17726
  }));
17660
17727
 
17661
- return function getBusinessTransactionProcessingReport(_x63, _x64, _x65, _x66) {
17662
- return _ref19.apply(this, arguments);
17728
+ return function getBusinessTransactionProcessingReport(_x66, _x67, _x68, _x69) {
17729
+ return _ref20.apply(this, arguments);
17663
17730
  };
17664
17731
  }();
17665
17732
  /**
@@ -17671,10 +17738,10 @@ var getBusinessTransactionProcessingReport = /*#__PURE__*/function () {
17671
17738
  */
17672
17739
 
17673
17740
  var getBusinessPracticeTransactions = /*#__PURE__*/function () {
17674
- var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(businessId, practiceId, query, opts) {
17675
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
17741
+ var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(businessId, practiceId, query, opts) {
17742
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
17676
17743
  while (1) {
17677
- switch (_context20.prev = _context20.next) {
17744
+ switch (_context21.prev = _context21.next) {
17678
17745
  case 0:
17679
17746
  if (query === void 0) {
17680
17747
  query = {};
@@ -17688,7 +17755,7 @@ var getBusinessPracticeTransactions = /*#__PURE__*/function () {
17688
17755
  businessId: businessId,
17689
17756
  practiceId: practiceId
17690
17757
  }, opts.hyperMediaEndpoint);
17691
- return _context20.abrupt("return", request(_objectSpread$12({}, opts, {
17758
+ return _context21.abrupt("return", request(_objectSpread$12({}, opts, {
17692
17759
  path: pathBusinessPracticeTransactions(businessId, practiceId)
17693
17760
  }), {
17694
17761
  method: 'get',
@@ -17697,14 +17764,14 @@ var getBusinessPracticeTransactions = /*#__PURE__*/function () {
17697
17764
 
17698
17765
  case 4:
17699
17766
  case "end":
17700
- return _context20.stop();
17767
+ return _context21.stop();
17701
17768
  }
17702
17769
  }
17703
- }, _callee20);
17770
+ }, _callee21);
17704
17771
  }));
17705
17772
 
17706
- return function getBusinessPracticeTransactions(_x67, _x68, _x69, _x70) {
17707
- return _ref20.apply(this, arguments);
17773
+ return function getBusinessPracticeTransactions(_x70, _x71, _x72, _x73) {
17774
+ return _ref21.apply(this, arguments);
17708
17775
  };
17709
17776
  }();
17710
17777
  /**
@@ -17717,10 +17784,10 @@ var getBusinessPracticeTransactions = /*#__PURE__*/function () {
17717
17784
  */
17718
17785
 
17719
17786
  var getBusinessPracticeStaffTransactions = /*#__PURE__*/function () {
17720
- var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(businessId, practiceId, staffId, query, opts) {
17721
- return _regeneratorRuntime.wrap(function _callee21$(_context21) {
17787
+ var _ref22 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(businessId, practiceId, staffId, query, opts) {
17788
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
17722
17789
  while (1) {
17723
- switch (_context21.prev = _context21.next) {
17790
+ switch (_context22.prev = _context22.next) {
17724
17791
  case 0:
17725
17792
  if (query === void 0) {
17726
17793
  query = {};
@@ -17735,7 +17802,7 @@ var getBusinessPracticeStaffTransactions = /*#__PURE__*/function () {
17735
17802
  practiceId: practiceId,
17736
17803
  staffId: staffId
17737
17804
  }, opts.hyperMediaEndpoint);
17738
- return _context21.abrupt("return", request(_objectSpread$12({}, opts, {
17805
+ return _context22.abrupt("return", request(_objectSpread$12({}, opts, {
17739
17806
  path: pathBusinessPracticeStaffTransactions(businessId, practiceId, staffId)
17740
17807
  }), {
17741
17808
  method: 'get',
@@ -17744,14 +17811,14 @@ var getBusinessPracticeStaffTransactions = /*#__PURE__*/function () {
17744
17811
 
17745
17812
  case 4:
17746
17813
  case "end":
17747
- return _context21.stop();
17814
+ return _context22.stop();
17748
17815
  }
17749
17816
  }
17750
- }, _callee21);
17817
+ }, _callee22);
17751
17818
  }));
17752
17819
 
17753
- return function getBusinessPracticeStaffTransactions(_x71, _x72, _x73, _x74, _x75) {
17754
- return _ref21.apply(this, arguments);
17820
+ return function getBusinessPracticeStaffTransactions(_x74, _x75, _x76, _x77, _x78) {
17821
+ return _ref22.apply(this, arguments);
17755
17822
  };
17756
17823
  }();
17757
17824
  /**
@@ -17762,10 +17829,10 @@ var getBusinessPracticeStaffTransactions = /*#__PURE__*/function () {
17762
17829
  */
17763
17830
 
17764
17831
  var getTransactionsForHealthFund = /*#__PURE__*/function () {
17765
- var _ref22 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(healthFundId, query, opts) {
17766
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
17832
+ var _ref23 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(healthFundId, query, opts) {
17833
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
17767
17834
  while (1) {
17768
- switch (_context22.prev = _context22.next) {
17835
+ switch (_context23.prev = _context23.next) {
17769
17836
  case 0:
17770
17837
  if (query === void 0) {
17771
17838
  query = {};
@@ -17778,7 +17845,7 @@ var getTransactionsForHealthFund = /*#__PURE__*/function () {
17778
17845
  doesParamExist.default({
17779
17846
  healthFundId: healthFundId
17780
17847
  }, opts.hyperMediaEndpoint);
17781
- return _context22.abrupt("return", request(_objectSpread$12({}, opts, {
17848
+ return _context23.abrupt("return", request(_objectSpread$12({}, opts, {
17782
17849
  path: pathTransactionsForHealthFund(healthFundId)
17783
17850
  }), {
17784
17851
  method: 'get',
@@ -17787,14 +17854,14 @@ var getTransactionsForHealthFund = /*#__PURE__*/function () {
17787
17854
 
17788
17855
  case 4:
17789
17856
  case "end":
17790
- return _context22.stop();
17857
+ return _context23.stop();
17791
17858
  }
17792
17859
  }
17793
- }, _callee22);
17860
+ }, _callee23);
17794
17861
  }));
17795
17862
 
17796
- return function getTransactionsForHealthFund(_x76, _x77, _x78) {
17797
- return _ref22.apply(this, arguments);
17863
+ return function getTransactionsForHealthFund(_x79, _x80, _x81) {
17864
+ return _ref23.apply(this, arguments);
17798
17865
  };
17799
17866
  }();
17800
17867
  /**
@@ -17805,10 +17872,10 @@ var getTransactionsForHealthFund = /*#__PURE__*/function () {
17805
17872
  */
17806
17873
 
17807
17874
  var getHealthFundTransaction = /*#__PURE__*/function () {
17808
- var _ref23 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(healthFundId, transactionId, opts) {
17809
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
17875
+ var _ref24 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(healthFundId, transactionId, opts) {
17876
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
17810
17877
  while (1) {
17811
- switch (_context23.prev = _context23.next) {
17878
+ switch (_context24.prev = _context24.next) {
17812
17879
  case 0:
17813
17880
  if (opts === void 0) {
17814
17881
  opts = {};
@@ -17818,7 +17885,7 @@ var getHealthFundTransaction = /*#__PURE__*/function () {
17818
17885
  healthFundId: healthFundId,
17819
17886
  transactionId: transactionId
17820
17887
  }, opts.hyperMediaEndpoint);
17821
- return _context23.abrupt("return", request(_objectSpread$12({}, opts, {
17888
+ return _context24.abrupt("return", request(_objectSpread$12({}, opts, {
17822
17889
  path: pathHealthFundTransaction(healthFundId, transactionId)
17823
17890
  }), {
17824
17891
  method: 'get'
@@ -17826,14 +17893,14 @@ var getHealthFundTransaction = /*#__PURE__*/function () {
17826
17893
 
17827
17894
  case 3:
17828
17895
  case "end":
17829
- return _context23.stop();
17896
+ return _context24.stop();
17830
17897
  }
17831
17898
  }
17832
- }, _callee23);
17899
+ }, _callee24);
17833
17900
  }));
17834
17901
 
17835
- return function getHealthFundTransaction(_x79, _x80, _x81) {
17836
- return _ref23.apply(this, arguments);
17902
+ return function getHealthFundTransaction(_x82, _x83, _x84) {
17903
+ return _ref24.apply(this, arguments);
17837
17904
  };
17838
17905
  }();
17839
17906
  /**
@@ -17844,10 +17911,10 @@ var getHealthFundTransaction = /*#__PURE__*/function () {
17844
17911
  */
17845
17912
 
17846
17913
  var getTransactionsByMember = /*#__PURE__*/function () {
17847
- var _ref24 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(memberId, query, opts) {
17848
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
17914
+ var _ref25 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(memberId, query, opts) {
17915
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
17849
17916
  while (1) {
17850
- switch (_context24.prev = _context24.next) {
17917
+ switch (_context25.prev = _context25.next) {
17851
17918
  case 0:
17852
17919
  if (query === void 0) {
17853
17920
  query = {};
@@ -17860,7 +17927,7 @@ var getTransactionsByMember = /*#__PURE__*/function () {
17860
17927
  doesParamExist.default({
17861
17928
  memberId: memberId
17862
17929
  }, opts.hyperMediaEndpoint);
17863
- return _context24.abrupt("return", request(_objectSpread$12({}, opts, {
17930
+ return _context25.abrupt("return", request(_objectSpread$12({}, opts, {
17864
17931
  path: pathTransactionsByMember(memberId)
17865
17932
  }), {
17866
17933
  method: 'get',
@@ -17869,14 +17936,14 @@ var getTransactionsByMember = /*#__PURE__*/function () {
17869
17936
 
17870
17937
  case 4:
17871
17938
  case "end":
17872
- return _context24.stop();
17939
+ return _context25.stop();
17873
17940
  }
17874
17941
  }
17875
- }, _callee24);
17942
+ }, _callee25);
17876
17943
  }));
17877
17944
 
17878
- return function getTransactionsByMember(_x82, _x83, _x84) {
17879
- return _ref24.apply(this, arguments);
17945
+ return function getTransactionsByMember(_x85, _x86, _x87) {
17946
+ return _ref25.apply(this, arguments);
17880
17947
  };
17881
17948
  }();
17882
17949
  /**
@@ -17888,10 +17955,10 @@ var getTransactionsByMember = /*#__PURE__*/function () {
17888
17955
  */
17889
17956
 
17890
17957
  var getHealthFundMemberTransactions = /*#__PURE__*/function () {
17891
- var _ref25 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(healthFundId, memberId, query, opts) {
17892
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
17958
+ var _ref26 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(healthFundId, memberId, query, opts) {
17959
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
17893
17960
  while (1) {
17894
- switch (_context25.prev = _context25.next) {
17961
+ switch (_context26.prev = _context26.next) {
17895
17962
  case 0:
17896
17963
  if (query === void 0) {
17897
17964
  query = {};
@@ -17904,7 +17971,7 @@ var getHealthFundMemberTransactions = /*#__PURE__*/function () {
17904
17971
  doesParamExist.default({
17905
17972
  healthFundId: healthFundId
17906
17973
  }, opts.hyperMediaEndpoint);
17907
- return _context25.abrupt("return", request(_objectSpread$12({}, opts, {
17974
+ return _context26.abrupt("return", request(_objectSpread$12({}, opts, {
17908
17975
  path: pathHealthFundMemberTransactions(healthFundId, memberId)
17909
17976
  }), {
17910
17977
  method: 'get',
@@ -17912,44 +17979,6 @@ var getHealthFundMemberTransactions = /*#__PURE__*/function () {
17912
17979
  }));
17913
17980
 
17914
17981
  case 4:
17915
- case "end":
17916
- return _context25.stop();
17917
- }
17918
- }
17919
- }, _callee25);
17920
- }));
17921
-
17922
- return function getHealthFundMemberTransactions(_x85, _x86, _x87, _x88) {
17923
- return _ref25.apply(this, arguments);
17924
- };
17925
- }();
17926
- /**
17927
- * Get transaction by transaction ID.
17928
- * @param {String} transactionId - Transaction ID
17929
- * @param {Object} opts - Additional options
17930
- */
17931
-
17932
- var getTransactionByTransactionId = /*#__PURE__*/function () {
17933
- var _ref26 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(transactionId, query, opts) {
17934
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
17935
- while (1) {
17936
- switch (_context26.prev = _context26.next) {
17937
- case 0:
17938
- if (opts === void 0) {
17939
- opts = {};
17940
- }
17941
-
17942
- doesParamExist.default({
17943
- transactionId: transactionId
17944
- }, opts.hyperMediaEndpoint);
17945
- return _context26.abrupt("return", request(_objectSpread$12({}, opts, {
17946
- path: pathTransactionByTransactionId(transactionId)
17947
- }), {
17948
- method: 'get',
17949
- params: query
17950
- }));
17951
-
17952
- case 3:
17953
17982
  case "end":
17954
17983
  return _context26.stop();
17955
17984
  }
@@ -17957,19 +17986,18 @@ var getTransactionByTransactionId = /*#__PURE__*/function () {
17957
17986
  }, _callee26);
17958
17987
  }));
17959
17988
 
17960
- return function getTransactionByTransactionId(_x89, _x90, _x91) {
17989
+ return function getHealthFundMemberTransactions(_x88, _x89, _x90, _x91) {
17961
17990
  return _ref26.apply(this, arguments);
17962
17991
  };
17963
17992
  }();
17964
17993
  /**
17965
- * Get transaction PDF
17994
+ * Get transaction by transaction ID.
17966
17995
  * @param {String} transactionId - Transaction ID
17967
- * @param {Object} body - Request body
17968
17996
  * @param {Object} opts - Additional options
17969
17997
  */
17970
17998
 
17971
- var getTransactionPDF = /*#__PURE__*/function () {
17972
- var _ref27 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(transactionId, body, opts) {
17999
+ var getTransactionByTransactionId = /*#__PURE__*/function () {
18000
+ var _ref27 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(transactionId, query, opts) {
17973
18001
  return _regeneratorRuntime.wrap(function _callee27$(_context27) {
17974
18002
  while (1) {
17975
18003
  switch (_context27.prev = _context27.next) {
@@ -17982,11 +18010,10 @@ var getTransactionPDF = /*#__PURE__*/function () {
17982
18010
  transactionId: transactionId
17983
18011
  }, opts.hyperMediaEndpoint);
17984
18012
  return _context27.abrupt("return", request(_objectSpread$12({}, opts, {
17985
- path: pathTransactionByTransactionId(transactionId) + "/pdf"
18013
+ path: pathTransactionByTransactionId(transactionId)
17986
18014
  }), {
17987
- method: 'post',
17988
- data: body,
17989
- responseType: 'arraybuffer'
18015
+ method: 'get',
18016
+ params: query
17990
18017
  }));
17991
18018
 
17992
18019
  case 3:
@@ -17997,20 +18024,19 @@ var getTransactionPDF = /*#__PURE__*/function () {
17997
18024
  }, _callee27);
17998
18025
  }));
17999
18026
 
18000
- return function getTransactionPDF(_x92, _x93, _x94) {
18027
+ return function getTransactionByTransactionId(_x92, _x93, _x94) {
18001
18028
  return _ref27.apply(this, arguments);
18002
18029
  };
18003
18030
  }();
18004
18031
  /**
18005
- * Get transaction claim PDF
18032
+ * Get transaction PDF
18006
18033
  * @param {String} transactionId - Transaction ID
18007
- * @param {String} claimId - Claim ID
18008
18034
  * @param {Object} body - Request body
18009
18035
  * @param {Object} opts - Additional options
18010
18036
  */
18011
18037
 
18012
- var getTransactionClaimPDF = /*#__PURE__*/function () {
18013
- var _ref28 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(transactionId, claimId, body, opts) {
18038
+ var getTransactionPDF = /*#__PURE__*/function () {
18039
+ var _ref28 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(transactionId, body, opts) {
18014
18040
  return _regeneratorRuntime.wrap(function _callee28$(_context28) {
18015
18041
  while (1) {
18016
18042
  switch (_context28.prev = _context28.next) {
@@ -18020,11 +18046,10 @@ var getTransactionClaimPDF = /*#__PURE__*/function () {
18020
18046
  }
18021
18047
 
18022
18048
  doesParamExist.default({
18023
- claimId: claimId,
18024
18049
  transactionId: transactionId
18025
18050
  }, opts.hyperMediaEndpoint);
18026
18051
  return _context28.abrupt("return", request(_objectSpread$12({}, opts, {
18027
- path: pathTransactionClaimPdf(transactionId, claimId)
18052
+ path: pathTransactionByTransactionId(transactionId) + "/pdf"
18028
18053
  }), {
18029
18054
  method: 'post',
18030
18055
  data: body,
@@ -18039,19 +18064,20 @@ var getTransactionClaimPDF = /*#__PURE__*/function () {
18039
18064
  }, _callee28);
18040
18065
  }));
18041
18066
 
18042
- return function getTransactionClaimPDF(_x95, _x96, _x97, _x98) {
18067
+ return function getTransactionPDF(_x95, _x96, _x97) {
18043
18068
  return _ref28.apply(this, arguments);
18044
18069
  };
18045
18070
  }();
18046
18071
  /**
18047
- * Reply to a quote
18048
- * @param {String} transactionId - TransactionId
18072
+ * Get transaction claim PDF
18073
+ * @param {String} transactionId - Transaction ID
18074
+ * @param {String} claimId - Claim ID
18049
18075
  * @param {Object} body - Request body
18050
18076
  * @param {Object} opts - Additional options
18051
18077
  */
18052
18078
 
18053
- var replyToQuote = /*#__PURE__*/function () {
18054
- var _ref29 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(transactionId, body, opts) {
18079
+ var getTransactionClaimPDF = /*#__PURE__*/function () {
18080
+ var _ref29 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(transactionId, claimId, body, opts) {
18055
18081
  return _regeneratorRuntime.wrap(function _callee29$(_context29) {
18056
18082
  while (1) {
18057
18083
  switch (_context29.prev = _context29.next) {
@@ -18061,13 +18087,15 @@ var replyToQuote = /*#__PURE__*/function () {
18061
18087
  }
18062
18088
 
18063
18089
  doesParamExist.default({
18090
+ claimId: claimId,
18064
18091
  transactionId: transactionId
18065
18092
  }, opts.hyperMediaEndpoint);
18066
18093
  return _context29.abrupt("return", request(_objectSpread$12({}, opts, {
18067
- path: pathReplyQuote(transactionId)
18094
+ path: pathTransactionClaimPdf(transactionId, claimId)
18068
18095
  }), {
18069
18096
  method: 'post',
18070
- data: body
18097
+ data: body,
18098
+ responseType: 'arraybuffer'
18071
18099
  }));
18072
18100
 
18073
18101
  case 3:
@@ -18078,18 +18106,18 @@ var replyToQuote = /*#__PURE__*/function () {
18078
18106
  }, _callee29);
18079
18107
  }));
18080
18108
 
18081
- return function replyToQuote(_x99, _x100, _x101) {
18109
+ return function getTransactionClaimPDF(_x98, _x99, _x100, _x101) {
18082
18110
  return _ref29.apply(this, arguments);
18083
18111
  };
18084
18112
  }();
18085
18113
  /**
18086
- * Send receipt
18114
+ * Reply to a quote
18087
18115
  * @param {String} transactionId - TransactionId
18088
18116
  * @param {Object} body - Request body
18089
18117
  * @param {Object} opts - Additional options
18090
18118
  */
18091
18119
 
18092
- var sendReceipt$1 = /*#__PURE__*/function () {
18120
+ var replyToQuote = /*#__PURE__*/function () {
18093
18121
  var _ref30 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(transactionId, body, opts) {
18094
18122
  return _regeneratorRuntime.wrap(function _callee30$(_context30) {
18095
18123
  while (1) {
@@ -18103,7 +18131,7 @@ var sendReceipt$1 = /*#__PURE__*/function () {
18103
18131
  transactionId: transactionId
18104
18132
  }, opts.hyperMediaEndpoint);
18105
18133
  return _context30.abrupt("return", request(_objectSpread$12({}, opts, {
18106
- path: pathTransactionSendReceipt(transactionId)
18134
+ path: pathReplyQuote(transactionId)
18107
18135
  }), {
18108
18136
  method: 'post',
18109
18137
  data: body
@@ -18117,18 +18145,18 @@ var sendReceipt$1 = /*#__PURE__*/function () {
18117
18145
  }, _callee30);
18118
18146
  }));
18119
18147
 
18120
- return function sendReceipt(_x102, _x103, _x104) {
18148
+ return function replyToQuote(_x102, _x103, _x104) {
18121
18149
  return _ref30.apply(this, arguments);
18122
18150
  };
18123
18151
  }();
18124
18152
  /**
18125
- * Submit an invoice
18153
+ * Send receipt
18126
18154
  * @param {String} transactionId - TransactionId
18127
18155
  * @param {Object} body - Request body
18128
18156
  * @param {Object} opts - Additional options
18129
18157
  */
18130
18158
 
18131
- var submitInvoice = /*#__PURE__*/function () {
18159
+ var sendReceipt$1 = /*#__PURE__*/function () {
18132
18160
  var _ref31 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(transactionId, body, opts) {
18133
18161
  return _regeneratorRuntime.wrap(function _callee31$(_context31) {
18134
18162
  while (1) {
@@ -18142,7 +18170,7 @@ var submitInvoice = /*#__PURE__*/function () {
18142
18170
  transactionId: transactionId
18143
18171
  }, opts.hyperMediaEndpoint);
18144
18172
  return _context31.abrupt("return", request(_objectSpread$12({}, opts, {
18145
- path: pathTransactionByTransactionId(transactionId) + "/submitinvoice"
18173
+ path: pathTransactionSendReceipt(transactionId)
18146
18174
  }), {
18147
18175
  method: 'post',
18148
18176
  data: body
@@ -18156,18 +18184,18 @@ var submitInvoice = /*#__PURE__*/function () {
18156
18184
  }, _callee31);
18157
18185
  }));
18158
18186
 
18159
- return function submitInvoice(_x105, _x106, _x107) {
18187
+ return function sendReceipt(_x105, _x106, _x107) {
18160
18188
  return _ref31.apply(this, arguments);
18161
18189
  };
18162
18190
  }();
18163
18191
  /**
18164
- * Update transaction
18192
+ * Submit an invoice
18165
18193
  * @param {String} transactionId - TransactionId
18166
18194
  * @param {Object} body - Request body
18167
18195
  * @param {Object} opts - Additional options
18168
18196
  */
18169
18197
 
18170
- var updateTransaction = /*#__PURE__*/function () {
18198
+ var submitInvoice = /*#__PURE__*/function () {
18171
18199
  var _ref32 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(transactionId, body, opts) {
18172
18200
  return _regeneratorRuntime.wrap(function _callee32$(_context32) {
18173
18201
  while (1) {
@@ -18181,9 +18209,9 @@ var updateTransaction = /*#__PURE__*/function () {
18181
18209
  transactionId: transactionId
18182
18210
  }, opts.hyperMediaEndpoint);
18183
18211
  return _context32.abrupt("return", request(_objectSpread$12({}, opts, {
18184
- path: pathTransactionByTransactionId(transactionId)
18212
+ path: pathTransactionByTransactionId(transactionId) + "/submitinvoice"
18185
18213
  }), {
18186
- method: 'put',
18214
+ method: 'post',
18187
18215
  data: body
18188
18216
  }));
18189
18217
 
@@ -18195,18 +18223,19 @@ var updateTransaction = /*#__PURE__*/function () {
18195
18223
  }, _callee32);
18196
18224
  }));
18197
18225
 
18198
- return function updateTransaction(_x108, _x109, _x110) {
18226
+ return function submitInvoice(_x108, _x109, _x110) {
18199
18227
  return _ref32.apply(this, arguments);
18200
18228
  };
18201
18229
  }();
18202
18230
  /**
18203
- * Validate a transaction
18231
+ * Update transaction
18204
18232
  * @param {String} transactionId - TransactionId
18233
+ * @param {Object} body - Request body
18205
18234
  * @param {Object} opts - Additional options
18206
18235
  */
18207
18236
 
18208
- var validateTransaction = /*#__PURE__*/function () {
18209
- var _ref33 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(transactionId, opts) {
18237
+ var updateTransaction = /*#__PURE__*/function () {
18238
+ var _ref33 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(transactionId, body, opts) {
18210
18239
  return _regeneratorRuntime.wrap(function _callee33$(_context33) {
18211
18240
  while (1) {
18212
18241
  switch (_context33.prev = _context33.next) {
@@ -18219,9 +18248,10 @@ var validateTransaction = /*#__PURE__*/function () {
18219
18248
  transactionId: transactionId
18220
18249
  }, opts.hyperMediaEndpoint);
18221
18250
  return _context33.abrupt("return", request(_objectSpread$12({}, opts, {
18222
- path: pathValidateTransaction(transactionId)
18251
+ path: pathTransactionByTransactionId(transactionId)
18223
18252
  }), {
18224
- method: 'post'
18253
+ method: 'put',
18254
+ data: body
18225
18255
  }));
18226
18256
 
18227
18257
  case 3:
@@ -18232,19 +18262,18 @@ var validateTransaction = /*#__PURE__*/function () {
18232
18262
  }, _callee33);
18233
18263
  }));
18234
18264
 
18235
- return function validateTransaction(_x111, _x112) {
18265
+ return function updateTransaction(_x111, _x112, _x113) {
18236
18266
  return _ref33.apply(this, arguments);
18237
18267
  };
18238
18268
  }();
18239
18269
  /**
18240
- * Submits a Bridge's claim response to transaction
18270
+ * Validate a transaction
18241
18271
  * @param {String} transactionId - TransactionId
18242
- * @param {Object} body - Request body
18243
18272
  * @param {Object} opts - Additional options
18244
18273
  */
18245
18274
 
18246
- var submitTransactionBridgeClaim = /*#__PURE__*/function () {
18247
- var _ref34 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(transactionId, body, opts) {
18275
+ var validateTransaction = /*#__PURE__*/function () {
18276
+ var _ref34 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(transactionId, opts) {
18248
18277
  return _regeneratorRuntime.wrap(function _callee34$(_context34) {
18249
18278
  while (1) {
18250
18279
  switch (_context34.prev = _context34.next) {
@@ -18257,10 +18286,9 @@ var submitTransactionBridgeClaim = /*#__PURE__*/function () {
18257
18286
  transactionId: transactionId
18258
18287
  }, opts.hyperMediaEndpoint);
18259
18288
  return _context34.abrupt("return", request(_objectSpread$12({}, opts, {
18260
- path: pathTransactionSubmitBridgeClaim(transactionId)
18289
+ path: pathValidateTransaction(transactionId)
18261
18290
  }), {
18262
- method: 'post',
18263
- data: body
18291
+ method: 'post'
18264
18292
  }));
18265
18293
 
18266
18294
  case 3:
@@ -18271,18 +18299,18 @@ var submitTransactionBridgeClaim = /*#__PURE__*/function () {
18271
18299
  }, _callee34);
18272
18300
  }));
18273
18301
 
18274
- return function submitTransactionBridgeClaim(_x113, _x114, _x115) {
18302
+ return function validateTransaction(_x114, _x115) {
18275
18303
  return _ref34.apply(this, arguments);
18276
18304
  };
18277
18305
  }();
18278
18306
  /**
18279
- * Submits a Bridge's payment response to transaction
18307
+ * Submits a Bridge's claim response to transaction
18280
18308
  * @param {String} transactionId - TransactionId
18281
18309
  * @param {Object} body - Request body
18282
18310
  * @param {Object} opts - Additional options
18283
18311
  */
18284
18312
 
18285
- var submitTransactionBridgePayment = /*#__PURE__*/function () {
18313
+ var submitTransactionBridgeClaim = /*#__PURE__*/function () {
18286
18314
  var _ref35 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(transactionId, body, opts) {
18287
18315
  return _regeneratorRuntime.wrap(function _callee35$(_context35) {
18288
18316
  while (1) {
@@ -18296,7 +18324,7 @@ var submitTransactionBridgePayment = /*#__PURE__*/function () {
18296
18324
  transactionId: transactionId
18297
18325
  }, opts.hyperMediaEndpoint);
18298
18326
  return _context35.abrupt("return", request(_objectSpread$12({}, opts, {
18299
- path: pathTransactionSubmitBridgePayment(transactionId)
18327
+ path: pathTransactionSubmitBridgeClaim(transactionId)
18300
18328
  }), {
18301
18329
  method: 'post',
18302
18330
  data: body
@@ -18310,18 +18338,18 @@ var submitTransactionBridgePayment = /*#__PURE__*/function () {
18310
18338
  }, _callee35);
18311
18339
  }));
18312
18340
 
18313
- return function submitTransactionBridgePayment(_x116, _x117, _x118) {
18341
+ return function submitTransactionBridgeClaim(_x116, _x117, _x118) {
18314
18342
  return _ref35.apply(this, arguments);
18315
18343
  };
18316
18344
  }();
18317
18345
  /**
18318
- * Trigger's a bridge request for a transaction
18346
+ * Submits a Bridge's payment response to transaction
18319
18347
  * @param {String} transactionId - TransactionId
18320
18348
  * @param {Object} body - Request body
18321
18349
  * @param {Object} opts - Additional options
18322
18350
  */
18323
18351
 
18324
- var triggerBridge = /*#__PURE__*/function () {
18352
+ var submitTransactionBridgePayment = /*#__PURE__*/function () {
18325
18353
  var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(transactionId, body, opts) {
18326
18354
  return _regeneratorRuntime.wrap(function _callee36$(_context36) {
18327
18355
  while (1) {
@@ -18335,7 +18363,7 @@ var triggerBridge = /*#__PURE__*/function () {
18335
18363
  transactionId: transactionId
18336
18364
  }, opts.hyperMediaEndpoint);
18337
18365
  return _context36.abrupt("return", request(_objectSpread$12({}, opts, {
18338
- path: pathTransactionTriggerBridge(transactionId)
18366
+ path: pathTransactionSubmitBridgePayment(transactionId)
18339
18367
  }), {
18340
18368
  method: 'post',
18341
18369
  data: body
@@ -18349,19 +18377,19 @@ var triggerBridge = /*#__PURE__*/function () {
18349
18377
  }, _callee36);
18350
18378
  }));
18351
18379
 
18352
- return function triggerBridge(_x119, _x120, _x121) {
18380
+ return function submitTransactionBridgePayment(_x119, _x120, _x121) {
18353
18381
  return _ref36.apply(this, arguments);
18354
18382
  };
18355
18383
  }();
18356
18384
  /**
18357
- * Create invoice
18358
- * @param {String} businessId - BusinessId
18385
+ * Trigger's a bridge request for a transaction
18386
+ * @param {String} transactionId - TransactionId
18359
18387
  * @param {Object} body - Request body
18360
18388
  * @param {Object} opts - Additional options
18361
18389
  */
18362
18390
 
18363
- var createInvoice = /*#__PURE__*/function () {
18364
- var _ref37 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(businessId, body, opts) {
18391
+ var triggerBridge = /*#__PURE__*/function () {
18392
+ var _ref37 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(transactionId, body, opts) {
18365
18393
  return _regeneratorRuntime.wrap(function _callee37$(_context37) {
18366
18394
  while (1) {
18367
18395
  switch (_context37.prev = _context37.next) {
@@ -18371,10 +18399,10 @@ var createInvoice = /*#__PURE__*/function () {
18371
18399
  }
18372
18400
 
18373
18401
  doesParamExist.default({
18374
- businessId: businessId
18402
+ transactionId: transactionId
18375
18403
  }, opts.hyperMediaEndpoint);
18376
18404
  return _context37.abrupt("return", request(_objectSpread$12({}, opts, {
18377
- path: pathCreateInvoice(businessId)
18405
+ path: pathTransactionTriggerBridge(transactionId)
18378
18406
  }), {
18379
18407
  method: 'post',
18380
18408
  data: body
@@ -18388,19 +18416,19 @@ var createInvoice = /*#__PURE__*/function () {
18388
18416
  }, _callee37);
18389
18417
  }));
18390
18418
 
18391
- return function createInvoice(_x122, _x123, _x124) {
18419
+ return function triggerBridge(_x122, _x123, _x124) {
18392
18420
  return _ref37.apply(this, arguments);
18393
18421
  };
18394
18422
  }();
18395
18423
  /**
18396
- * Create or send a claim
18397
- * @param {String} transactionId - TransactionId
18424
+ * Create invoice
18425
+ * @param {String} businessId - BusinessId
18398
18426
  * @param {Object} body - Request body
18399
18427
  * @param {Object} opts - Additional options
18400
18428
  */
18401
18429
 
18402
- var createSendClaim = /*#__PURE__*/function () {
18403
- var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(transactionId, body, opts) {
18430
+ var createInvoice = /*#__PURE__*/function () {
18431
+ var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(businessId, body, opts) {
18404
18432
  return _regeneratorRuntime.wrap(function _callee38$(_context38) {
18405
18433
  while (1) {
18406
18434
  switch (_context38.prev = _context38.next) {
@@ -18410,10 +18438,10 @@ var createSendClaim = /*#__PURE__*/function () {
18410
18438
  }
18411
18439
 
18412
18440
  doesParamExist.default({
18413
- transactionId: transactionId
18441
+ businessId: businessId
18414
18442
  }, opts.hyperMediaEndpoint);
18415
18443
  return _context38.abrupt("return", request(_objectSpread$12({}, opts, {
18416
- path: pathCreateSendClaim(transactionId)
18444
+ path: pathCreateInvoice(businessId)
18417
18445
  }), {
18418
18446
  method: 'post',
18419
18447
  data: body
@@ -18427,20 +18455,19 @@ var createSendClaim = /*#__PURE__*/function () {
18427
18455
  }, _callee38);
18428
18456
  }));
18429
18457
 
18430
- return function createSendClaim(_x125, _x126, _x127) {
18458
+ return function createInvoice(_x125, _x126, _x127) {
18431
18459
  return _ref38.apply(this, arguments);
18432
18460
  };
18433
18461
  }();
18434
18462
  /**
18435
- * Update a claim
18463
+ * Create or send a claim
18436
18464
  * @param {String} transactionId - TransactionId
18437
- * @param {String} claimId - ClaimId
18438
18465
  * @param {Object} body - Request body
18439
18466
  * @param {Object} opts - Additional options
18440
18467
  */
18441
18468
 
18442
- var updateClaim = /*#__PURE__*/function () {
18443
- var _ref39 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(transactionId, claimId, body, opts) {
18469
+ var createSendClaim = /*#__PURE__*/function () {
18470
+ var _ref39 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(transactionId, body, opts) {
18444
18471
  return _regeneratorRuntime.wrap(function _callee39$(_context39) {
18445
18472
  while (1) {
18446
18473
  switch (_context39.prev = _context39.next) {
@@ -18450,13 +18477,12 @@ var updateClaim = /*#__PURE__*/function () {
18450
18477
  }
18451
18478
 
18452
18479
  doesParamExist.default({
18453
- claimId: claimId,
18454
18480
  transactionId: transactionId
18455
18481
  }, opts.hyperMediaEndpoint);
18456
18482
  return _context39.abrupt("return", request(_objectSpread$12({}, opts, {
18457
- path: pathClaim(transactionId, claimId)
18483
+ path: pathCreateSendClaim(transactionId)
18458
18484
  }), {
18459
- method: 'put',
18485
+ method: 'post',
18460
18486
  data: body
18461
18487
  }));
18462
18488
 
@@ -18468,18 +18494,20 @@ var updateClaim = /*#__PURE__*/function () {
18468
18494
  }, _callee39);
18469
18495
  }));
18470
18496
 
18471
- return function updateClaim(_x128, _x129, _x130, _x131) {
18497
+ return function createSendClaim(_x128, _x129, _x130) {
18472
18498
  return _ref39.apply(this, arguments);
18473
18499
  };
18474
18500
  }();
18475
18501
  /**
18476
- * Complete a transaction
18502
+ * Update a claim
18477
18503
  * @param {String} transactionId - TransactionId
18504
+ * @param {String} claimId - ClaimId
18505
+ * @param {Object} body - Request body
18478
18506
  * @param {Object} opts - Additional options
18479
18507
  */
18480
18508
 
18481
- var completeTransaction = /*#__PURE__*/function () {
18482
- var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(transactionId, opts) {
18509
+ var updateClaim = /*#__PURE__*/function () {
18510
+ var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(transactionId, claimId, body, opts) {
18483
18511
  return _regeneratorRuntime.wrap(function _callee40$(_context40) {
18484
18512
  while (1) {
18485
18513
  switch (_context40.prev = _context40.next) {
@@ -18489,12 +18517,14 @@ var completeTransaction = /*#__PURE__*/function () {
18489
18517
  }
18490
18518
 
18491
18519
  doesParamExist.default({
18520
+ claimId: claimId,
18492
18521
  transactionId: transactionId
18493
18522
  }, opts.hyperMediaEndpoint);
18494
18523
  return _context40.abrupt("return", request(_objectSpread$12({}, opts, {
18495
- path: pathCompleteTransaction(transactionId)
18524
+ path: pathClaim(transactionId, claimId)
18496
18525
  }), {
18497
- method: 'post'
18526
+ method: 'put',
18527
+ data: body
18498
18528
  }));
18499
18529
 
18500
18530
  case 3:
@@ -18505,20 +18535,18 @@ var completeTransaction = /*#__PURE__*/function () {
18505
18535
  }, _callee40);
18506
18536
  }));
18507
18537
 
18508
- return function completeTransaction(_x132, _x133) {
18538
+ return function updateClaim(_x131, _x132, _x133, _x134) {
18509
18539
  return _ref40.apply(this, arguments);
18510
18540
  };
18511
18541
  }();
18512
18542
  /**
18513
- * Approves a claim
18543
+ * Complete a transaction
18514
18544
  * @param {String} transactionId - TransactionId
18515
- * @param {String} claimId - ClaimId
18516
- * @param {Object} body - Request body
18517
18545
  * @param {Object} opts - Additional options
18518
18546
  */
18519
18547
 
18520
- var approveClaim = /*#__PURE__*/function () {
18521
- var _ref41 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(transactionId, claimId, body, opts) {
18548
+ var completeTransaction = /*#__PURE__*/function () {
18549
+ var _ref41 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(transactionId, opts) {
18522
18550
  return _regeneratorRuntime.wrap(function _callee41$(_context41) {
18523
18551
  while (1) {
18524
18552
  switch (_context41.prev = _context41.next) {
@@ -18531,10 +18559,9 @@ var approveClaim = /*#__PURE__*/function () {
18531
18559
  transactionId: transactionId
18532
18560
  }, opts.hyperMediaEndpoint);
18533
18561
  return _context41.abrupt("return", request(_objectSpread$12({}, opts, {
18534
- path: pathApproveClaim(transactionId, claimId)
18562
+ path: pathCompleteTransaction(transactionId)
18535
18563
  }), {
18536
- method: 'post',
18537
- data: body
18564
+ method: 'post'
18538
18565
  }));
18539
18566
 
18540
18567
  case 3:
@@ -18545,18 +18572,19 @@ var approveClaim = /*#__PURE__*/function () {
18545
18572
  }, _callee41);
18546
18573
  }));
18547
18574
 
18548
- return function approveClaim(_x134, _x135, _x136, _x137) {
18575
+ return function completeTransaction(_x135, _x136) {
18549
18576
  return _ref41.apply(this, arguments);
18550
18577
  };
18551
18578
  }();
18552
18579
  /**
18553
- * Cancels a claim
18554
- * @param {String} transactionId - Transaction ID
18555
- * @param {String} claimId - Claim ID
18580
+ * Approves a claim
18581
+ * @param {String} transactionId - TransactionId
18582
+ * @param {String} claimId - ClaimId
18583
+ * @param {Object} body - Request body
18556
18584
  * @param {Object} opts - Additional options
18557
18585
  */
18558
18586
 
18559
- var cancelClaim = /*#__PURE__*/function () {
18587
+ var approveClaim = /*#__PURE__*/function () {
18560
18588
  var _ref42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(transactionId, claimId, body, opts) {
18561
18589
  return _regeneratorRuntime.wrap(function _callee42$(_context42) {
18562
18590
  while (1) {
@@ -18567,11 +18595,10 @@ var cancelClaim = /*#__PURE__*/function () {
18567
18595
  }
18568
18596
 
18569
18597
  doesParamExist.default({
18570
- claimId: claimId,
18571
18598
  transactionId: transactionId
18572
18599
  }, opts.hyperMediaEndpoint);
18573
18600
  return _context42.abrupt("return", request(_objectSpread$12({}, opts, {
18574
- path: pathCancelClaim(transactionId, claimId)
18601
+ path: pathApproveClaim(transactionId, claimId)
18575
18602
  }), {
18576
18603
  method: 'post',
18577
18604
  data: body
@@ -18585,19 +18612,18 @@ var cancelClaim = /*#__PURE__*/function () {
18585
18612
  }, _callee42);
18586
18613
  }));
18587
18614
 
18588
- return function cancelClaim(_x138, _x139, _x140, _x141) {
18615
+ return function approveClaim(_x137, _x138, _x139, _x140) {
18589
18616
  return _ref42.apply(this, arguments);
18590
18617
  };
18591
18618
  }();
18592
18619
  /**
18593
- * Submit a claim
18594
- * @param {String} transactionId - TransactionId
18595
- * @param {String} claimId - ClaimId
18596
- * @param {Object} body - Request body
18620
+ * Cancels a claim
18621
+ * @param {String} transactionId - Transaction ID
18622
+ * @param {String} claimId - Claim ID
18597
18623
  * @param {Object} opts - Additional options
18598
18624
  */
18599
18625
 
18600
- var submitClaim = /*#__PURE__*/function () {
18626
+ var cancelClaim = /*#__PURE__*/function () {
18601
18627
  var _ref43 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(transactionId, claimId, body, opts) {
18602
18628
  return _regeneratorRuntime.wrap(function _callee43$(_context43) {
18603
18629
  while (1) {
@@ -18608,10 +18634,11 @@ var submitClaim = /*#__PURE__*/function () {
18608
18634
  }
18609
18635
 
18610
18636
  doesParamExist.default({
18637
+ claimId: claimId,
18611
18638
  transactionId: transactionId
18612
18639
  }, opts.hyperMediaEndpoint);
18613
18640
  return _context43.abrupt("return", request(_objectSpread$12({}, opts, {
18614
- path: pathSubmitClaim(transactionId, claimId)
18641
+ path: pathCancelClaim(transactionId, claimId)
18615
18642
  }), {
18616
18643
  method: 'post',
18617
18644
  data: body
@@ -18625,19 +18652,20 @@ var submitClaim = /*#__PURE__*/function () {
18625
18652
  }, _callee43);
18626
18653
  }));
18627
18654
 
18628
- return function submitClaim(_x142, _x143, _x144, _x145) {
18655
+ return function cancelClaim(_x141, _x142, _x143, _x144) {
18629
18656
  return _ref43.apply(this, arguments);
18630
18657
  };
18631
18658
  }();
18632
18659
  /**
18633
- * Save claim details
18634
- * @param {String} transactionId - Transaction ID
18635
- * @param {String} claimId - Claim ID
18660
+ * Submit a claim
18661
+ * @param {String} transactionId - TransactionId
18662
+ * @param {String} claimId - ClaimId
18663
+ * @param {Object} body - Request body
18636
18664
  * @param {Object} opts - Additional options
18637
18665
  */
18638
18666
 
18639
- var saveClaimDetails = /*#__PURE__*/function () {
18640
- var _ref44 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(transactionId, claimId, opts) {
18667
+ var submitClaim = /*#__PURE__*/function () {
18668
+ var _ref44 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(transactionId, claimId, body, opts) {
18641
18669
  return _regeneratorRuntime.wrap(function _callee44$(_context44) {
18642
18670
  while (1) {
18643
18671
  switch (_context44.prev = _context44.next) {
@@ -18647,13 +18675,13 @@ var saveClaimDetails = /*#__PURE__*/function () {
18647
18675
  }
18648
18676
 
18649
18677
  doesParamExist.default({
18650
- claimId: claimId,
18651
18678
  transactionId: transactionId
18652
18679
  }, opts.hyperMediaEndpoint);
18653
18680
  return _context44.abrupt("return", request(_objectSpread$12({}, opts, {
18654
- path: pathSaveClaim(transactionId, claimId)
18681
+ path: pathSubmitClaim(transactionId, claimId)
18655
18682
  }), {
18656
- method: 'post'
18683
+ method: 'post',
18684
+ data: body
18657
18685
  }));
18658
18686
 
18659
18687
  case 3:
@@ -18664,19 +18692,19 @@ var saveClaimDetails = /*#__PURE__*/function () {
18664
18692
  }, _callee44);
18665
18693
  }));
18666
18694
 
18667
- return function saveClaimDetails(_x146, _x147, _x148) {
18695
+ return function submitClaim(_x145, _x146, _x147, _x148) {
18668
18696
  return _ref44.apply(this, arguments);
18669
18697
  };
18670
18698
  }();
18671
18699
  /**
18672
- * Create payment
18700
+ * Save claim details
18673
18701
  * @param {String} transactionId - Transaction ID
18674
- * @param {Object} body - Request body
18702
+ * @param {String} claimId - Claim ID
18675
18703
  * @param {Object} opts - Additional options
18676
18704
  */
18677
18705
 
18678
- var pay = /*#__PURE__*/function () {
18679
- var _ref45 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(transactionId, body, opts) {
18706
+ var saveClaimDetails = /*#__PURE__*/function () {
18707
+ var _ref45 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(transactionId, claimId, opts) {
18680
18708
  return _regeneratorRuntime.wrap(function _callee45$(_context45) {
18681
18709
  while (1) {
18682
18710
  switch (_context45.prev = _context45.next) {
@@ -18686,13 +18714,13 @@ var pay = /*#__PURE__*/function () {
18686
18714
  }
18687
18715
 
18688
18716
  doesParamExist.default({
18717
+ claimId: claimId,
18689
18718
  transactionId: transactionId
18690
18719
  }, opts.hyperMediaEndpoint);
18691
18720
  return _context45.abrupt("return", request(_objectSpread$12({}, opts, {
18692
- path: pathTransactionPays(transactionId)
18721
+ path: pathSaveClaim(transactionId, claimId)
18693
18722
  }), {
18694
- method: 'post',
18695
- data: body
18723
+ method: 'post'
18696
18724
  }));
18697
18725
 
18698
18726
  case 3:
@@ -18703,18 +18731,18 @@ var pay = /*#__PURE__*/function () {
18703
18731
  }, _callee45);
18704
18732
  }));
18705
18733
 
18706
- return function pay(_x149, _x150, _x151) {
18734
+ return function saveClaimDetails(_x149, _x150, _x151) {
18707
18735
  return _ref45.apply(this, arguments);
18708
18736
  };
18709
18737
  }();
18710
18738
  /**
18711
- * Send a processing request
18712
- * @param {String} transactionId - TransactionId
18739
+ * Create payment
18740
+ * @param {String} transactionId - Transaction ID
18713
18741
  * @param {Object} body - Request body
18714
18742
  * @param {Object} opts - Additional options
18715
18743
  */
18716
18744
 
18717
- var sendProcessingRequest$1 = /*#__PURE__*/function () {
18745
+ var pay = /*#__PURE__*/function () {
18718
18746
  var _ref46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(transactionId, body, opts) {
18719
18747
  return _regeneratorRuntime.wrap(function _callee46$(_context46) {
18720
18748
  while (1) {
@@ -18728,7 +18756,7 @@ var sendProcessingRequest$1 = /*#__PURE__*/function () {
18728
18756
  transactionId: transactionId
18729
18757
  }, opts.hyperMediaEndpoint);
18730
18758
  return _context46.abrupt("return", request(_objectSpread$12({}, opts, {
18731
- path: pathTransactionProcessingRequests(transactionId)
18759
+ path: pathTransactionPays(transactionId)
18732
18760
  }), {
18733
18761
  method: 'post',
18734
18762
  data: body
@@ -18742,18 +18770,18 @@ var sendProcessingRequest$1 = /*#__PURE__*/function () {
18742
18770
  }, _callee46);
18743
18771
  }));
18744
18772
 
18745
- return function sendProcessingRequest(_x152, _x153, _x154) {
18773
+ return function pay(_x152, _x153, _x154) {
18746
18774
  return _ref46.apply(this, arguments);
18747
18775
  };
18748
18776
  }();
18749
18777
  /**
18750
- * Cancel invoice
18778
+ * Send a processing request
18751
18779
  * @param {String} transactionId - TransactionId
18752
18780
  * @param {Object} body - Request body
18753
18781
  * @param {Object} opts - Additional options
18754
18782
  */
18755
18783
 
18756
- var cancelInvoice = /*#__PURE__*/function () {
18784
+ var sendProcessingRequest$1 = /*#__PURE__*/function () {
18757
18785
  var _ref47 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(transactionId, body, opts) {
18758
18786
  return _regeneratorRuntime.wrap(function _callee47$(_context47) {
18759
18787
  while (1) {
@@ -18767,7 +18795,7 @@ var cancelInvoice = /*#__PURE__*/function () {
18767
18795
  transactionId: transactionId
18768
18796
  }, opts.hyperMediaEndpoint);
18769
18797
  return _context47.abrupt("return", request(_objectSpread$12({}, opts, {
18770
- path: pathTransactionCancel(transactionId)
18798
+ path: pathTransactionProcessingRequests(transactionId)
18771
18799
  }), {
18772
18800
  method: 'post',
18773
18801
  data: body
@@ -18781,18 +18809,19 @@ var cancelInvoice = /*#__PURE__*/function () {
18781
18809
  }, _callee47);
18782
18810
  }));
18783
18811
 
18784
- return function cancelInvoice(_x155, _x156, _x157) {
18812
+ return function sendProcessingRequest(_x155, _x156, _x157) {
18785
18813
  return _ref47.apply(this, arguments);
18786
18814
  };
18787
18815
  }();
18788
18816
  /**
18789
- * Get payment link
18817
+ * Cancel invoice
18790
18818
  * @param {String} transactionId - TransactionId
18819
+ * @param {Object} body - Request body
18791
18820
  * @param {Object} opts - Additional options
18792
18821
  */
18793
18822
 
18794
- var getPaymentLink$1 = /*#__PURE__*/function () {
18795
- var _ref48 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(transactionId, opts) {
18823
+ var cancelInvoice = /*#__PURE__*/function () {
18824
+ var _ref48 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(transactionId, body, opts) {
18796
18825
  return _regeneratorRuntime.wrap(function _callee48$(_context48) {
18797
18826
  while (1) {
18798
18827
  switch (_context48.prev = _context48.next) {
@@ -18805,9 +18834,10 @@ var getPaymentLink$1 = /*#__PURE__*/function () {
18805
18834
  transactionId: transactionId
18806
18835
  }, opts.hyperMediaEndpoint);
18807
18836
  return _context48.abrupt("return", request(_objectSpread$12({}, opts, {
18808
- path: pathTransactionPaymentLink(transactionId)
18837
+ path: pathTransactionCancel(transactionId)
18809
18838
  }), {
18810
- method: 'get'
18839
+ method: 'post',
18840
+ data: body
18811
18841
  }));
18812
18842
 
18813
18843
  case 3:
@@ -18818,20 +18848,18 @@ var getPaymentLink$1 = /*#__PURE__*/function () {
18818
18848
  }, _callee48);
18819
18849
  }));
18820
18850
 
18821
- return function getPaymentLink(_x158, _x159) {
18851
+ return function cancelInvoice(_x158, _x159, _x160) {
18822
18852
  return _ref48.apply(this, arguments);
18823
18853
  };
18824
18854
  }();
18825
18855
  /**
18826
- * Refund transaction
18827
- * @param {String} businessId - BusinessId
18856
+ * Get payment link
18828
18857
  * @param {String} transactionId - TransactionId
18829
- * @param {Object} body - Request body
18830
18858
  * @param {Object} opts - Additional options
18831
18859
  */
18832
18860
 
18833
- var refundByBusiness = /*#__PURE__*/function () {
18834
- var _ref49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(businessId, transactionId, body, opts) {
18861
+ var getPaymentLink$1 = /*#__PURE__*/function () {
18862
+ var _ref49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(transactionId, opts) {
18835
18863
  return _regeneratorRuntime.wrap(function _callee49$(_context49) {
18836
18864
  while (1) {
18837
18865
  switch (_context49.prev = _context49.next) {
@@ -18841,14 +18869,12 @@ var refundByBusiness = /*#__PURE__*/function () {
18841
18869
  }
18842
18870
 
18843
18871
  doesParamExist.default({
18844
- businessId: businessId,
18845
18872
  transactionId: transactionId
18846
18873
  }, opts.hyperMediaEndpoint);
18847
18874
  return _context49.abrupt("return", request(_objectSpread$12({}, opts, {
18848
- path: pathBusinessTransactionRefund(businessId, transactionId)
18875
+ path: pathTransactionPaymentLink(transactionId)
18849
18876
  }), {
18850
- method: 'post',
18851
- data: body
18877
+ method: 'get'
18852
18878
  }));
18853
18879
 
18854
18880
  case 3:
@@ -18859,19 +18885,20 @@ var refundByBusiness = /*#__PURE__*/function () {
18859
18885
  }, _callee49);
18860
18886
  }));
18861
18887
 
18862
- return function refundByBusiness(_x160, _x161, _x162, _x163) {
18888
+ return function getPaymentLink(_x161, _x162) {
18863
18889
  return _ref49.apply(this, arguments);
18864
18890
  };
18865
18891
  }();
18866
18892
  /**
18867
18893
  * Refund transaction
18894
+ * @param {String} businessId - BusinessId
18868
18895
  * @param {String} transactionId - TransactionId
18869
18896
  * @param {Object} body - Request body
18870
18897
  * @param {Object} opts - Additional options
18871
18898
  */
18872
18899
 
18873
- var refund = /*#__PURE__*/function () {
18874
- var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(transactionId, body, opts) {
18900
+ var refundByBusiness = /*#__PURE__*/function () {
18901
+ var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(businessId, transactionId, body, opts) {
18875
18902
  return _regeneratorRuntime.wrap(function _callee50$(_context50) {
18876
18903
  while (1) {
18877
18904
  switch (_context50.prev = _context50.next) {
@@ -18881,10 +18908,11 @@ var refund = /*#__PURE__*/function () {
18881
18908
  }
18882
18909
 
18883
18910
  doesParamExist.default({
18911
+ businessId: businessId,
18884
18912
  transactionId: transactionId
18885
18913
  }, opts.hyperMediaEndpoint);
18886
18914
  return _context50.abrupt("return", request(_objectSpread$12({}, opts, {
18887
- path: pathTransactionRefund(transactionId)
18915
+ path: pathBusinessTransactionRefund(businessId, transactionId)
18888
18916
  }), {
18889
18917
  method: 'post',
18890
18918
  data: body
@@ -18898,19 +18926,19 @@ var refund = /*#__PURE__*/function () {
18898
18926
  }, _callee50);
18899
18927
  }));
18900
18928
 
18901
- return function refund(_x164, _x165, _x166) {
18929
+ return function refundByBusiness(_x163, _x164, _x165, _x166) {
18902
18930
  return _ref50.apply(this, arguments);
18903
18931
  };
18904
18932
  }();
18905
18933
  /**
18906
- * Save invoice as draft
18907
- * @param {String} businessId - BusinessId
18934
+ * Refund transaction
18935
+ * @param {String} transactionId - TransactionId
18908
18936
  * @param {Object} body - Request body
18909
18937
  * @param {Object} opts - Additional options
18910
18938
  */
18911
18939
 
18912
- var saveDraft = /*#__PURE__*/function () {
18913
- var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(businessId, body, opts) {
18940
+ var refund = /*#__PURE__*/function () {
18941
+ var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(transactionId, body, opts) {
18914
18942
  return _regeneratorRuntime.wrap(function _callee51$(_context51) {
18915
18943
  while (1) {
18916
18944
  switch (_context51.prev = _context51.next) {
@@ -18920,10 +18948,10 @@ var saveDraft = /*#__PURE__*/function () {
18920
18948
  }
18921
18949
 
18922
18950
  doesParamExist.default({
18923
- businessId: businessId
18951
+ transactionId: transactionId
18924
18952
  }, opts.hyperMediaEndpoint);
18925
18953
  return _context51.abrupt("return", request(_objectSpread$12({}, opts, {
18926
- path: pathCreateDraft(businessId)
18954
+ path: pathTransactionRefund(transactionId)
18927
18955
  }), {
18928
18956
  method: 'post',
18929
18957
  data: body
@@ -18937,19 +18965,19 @@ var saveDraft = /*#__PURE__*/function () {
18937
18965
  }, _callee51);
18938
18966
  }));
18939
18967
 
18940
- return function saveDraft(_x167, _x168, _x169) {
18968
+ return function refund(_x167, _x168, _x169) {
18941
18969
  return _ref51.apply(this, arguments);
18942
18970
  };
18943
18971
  }();
18944
18972
  /**
18945
- * Convert draft to an invoice
18946
- * @param {String} transactionId - Transaction ID
18973
+ * Save invoice as draft
18974
+ * @param {String} businessId - BusinessId
18947
18975
  * @param {Object} body - Request body
18948
18976
  * @param {Object} opts - Additional options
18949
18977
  */
18950
18978
 
18951
- var convertDraft = /*#__PURE__*/function () {
18952
- var _ref52 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(transactionId, body, opts) {
18979
+ var saveDraft = /*#__PURE__*/function () {
18980
+ var _ref52 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(businessId, body, opts) {
18953
18981
  return _regeneratorRuntime.wrap(function _callee52$(_context52) {
18954
18982
  while (1) {
18955
18983
  switch (_context52.prev = _context52.next) {
@@ -18959,10 +18987,10 @@ var convertDraft = /*#__PURE__*/function () {
18959
18987
  }
18960
18988
 
18961
18989
  doesParamExist.default({
18962
- transactionId: transactionId
18990
+ businessId: businessId
18963
18991
  }, opts.hyperMediaEndpoint);
18964
18992
  return _context52.abrupt("return", request(_objectSpread$12({}, opts, {
18965
- path: pathConvertDraft(transactionId)
18993
+ path: pathCreateDraft(businessId)
18966
18994
  }), {
18967
18995
  method: 'post',
18968
18996
  data: body
@@ -18976,18 +19004,19 @@ var convertDraft = /*#__PURE__*/function () {
18976
19004
  }, _callee52);
18977
19005
  }));
18978
19006
 
18979
- return function convertDraft(_x170, _x171, _x172) {
19007
+ return function saveDraft(_x170, _x171, _x172) {
18980
19008
  return _ref52.apply(this, arguments);
18981
19009
  };
18982
19010
  }();
18983
19011
  /**
18984
- * Archive an invoice
19012
+ * Convert draft to an invoice
18985
19013
  * @param {String} transactionId - Transaction ID
19014
+ * @param {Object} body - Request body
18986
19015
  * @param {Object} opts - Additional options
18987
19016
  */
18988
19017
 
18989
- var archive = /*#__PURE__*/function () {
18990
- var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(transactionId, opts) {
19018
+ var convertDraft = /*#__PURE__*/function () {
19019
+ var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(transactionId, body, opts) {
18991
19020
  return _regeneratorRuntime.wrap(function _callee53$(_context53) {
18992
19021
  while (1) {
18993
19022
  switch (_context53.prev = _context53.next) {
@@ -19000,9 +19029,10 @@ var archive = /*#__PURE__*/function () {
19000
19029
  transactionId: transactionId
19001
19030
  }, opts.hyperMediaEndpoint);
19002
19031
  return _context53.abrupt("return", request(_objectSpread$12({}, opts, {
19003
- path: pathTransactionArchives(transactionId)
19032
+ path: pathConvertDraft(transactionId)
19004
19033
  }), {
19005
- method: 'put'
19034
+ method: 'post',
19035
+ data: body
19006
19036
  }));
19007
19037
 
19008
19038
  case 3:
@@ -19013,17 +19043,17 @@ var archive = /*#__PURE__*/function () {
19013
19043
  }, _callee53);
19014
19044
  }));
19015
19045
 
19016
- return function archive(_x173, _x174) {
19046
+ return function convertDraft(_x173, _x174, _x175) {
19017
19047
  return _ref53.apply(this, arguments);
19018
19048
  };
19019
19049
  }();
19020
19050
  /**
19021
- * Unarchive an invoice
19051
+ * Archive an invoice
19022
19052
  * @param {String} transactionId - Transaction ID
19023
19053
  * @param {Object} opts - Additional options
19024
19054
  */
19025
19055
 
19026
- var unarchive = /*#__PURE__*/function () {
19056
+ var archive = /*#__PURE__*/function () {
19027
19057
  var _ref54 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(transactionId, opts) {
19028
19058
  return _regeneratorRuntime.wrap(function _callee54$(_context54) {
19029
19059
  while (1) {
@@ -19037,7 +19067,7 @@ var unarchive = /*#__PURE__*/function () {
19037
19067
  transactionId: transactionId
19038
19068
  }, opts.hyperMediaEndpoint);
19039
19069
  return _context54.abrupt("return", request(_objectSpread$12({}, opts, {
19040
- path: pathTransactionUnarchives(transactionId)
19070
+ path: pathTransactionArchives(transactionId)
19041
19071
  }), {
19042
19072
  method: 'put'
19043
19073
  }));
@@ -19050,19 +19080,18 @@ var unarchive = /*#__PURE__*/function () {
19050
19080
  }, _callee54);
19051
19081
  }));
19052
19082
 
19053
- return function unarchive(_x175, _x176) {
19083
+ return function archive(_x176, _x177) {
19054
19084
  return _ref54.apply(this, arguments);
19055
19085
  };
19056
19086
  }();
19057
19087
  /**
19058
- * Send terminal input
19088
+ * Unarchive an invoice
19059
19089
  * @param {String} transactionId - Transaction ID
19060
- * @param {Object} body - Request body
19061
19090
  * @param {Object} opts - Additional options
19062
19091
  */
19063
19092
 
19064
- var terminalInput = /*#__PURE__*/function () {
19065
- var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(transactionId, body, opts) {
19093
+ var unarchive = /*#__PURE__*/function () {
19094
+ var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(transactionId, opts) {
19066
19095
  return _regeneratorRuntime.wrap(function _callee55$(_context55) {
19067
19096
  while (1) {
19068
19097
  switch (_context55.prev = _context55.next) {
@@ -19075,10 +19104,9 @@ var terminalInput = /*#__PURE__*/function () {
19075
19104
  transactionId: transactionId
19076
19105
  }, opts.hyperMediaEndpoint);
19077
19106
  return _context55.abrupt("return", request(_objectSpread$12({}, opts, {
19078
- path: pathTransactionTerminalInput(transactionId)
19107
+ path: pathTransactionUnarchives(transactionId)
19079
19108
  }), {
19080
- method: 'post',
19081
- data: body
19109
+ method: 'put'
19082
19110
  }));
19083
19111
 
19084
19112
  case 3:
@@ -19089,18 +19117,18 @@ var terminalInput = /*#__PURE__*/function () {
19089
19117
  }, _callee55);
19090
19118
  }));
19091
19119
 
19092
- return function terminalInput(_x177, _x178, _x179) {
19120
+ return function unarchive(_x178, _x179) {
19093
19121
  return _ref55.apply(this, arguments);
19094
19122
  };
19095
19123
  }();
19096
19124
  /**
19097
- * Send terminal cancellation
19125
+ * Send terminal input
19098
19126
  * @param {String} transactionId - Transaction ID
19099
19127
  * @param {Object} body - Request body
19100
19128
  * @param {Object} opts - Additional options
19101
19129
  */
19102
19130
 
19103
- var terminalCancellation = /*#__PURE__*/function () {
19131
+ var terminalInput = /*#__PURE__*/function () {
19104
19132
  var _ref56 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(transactionId, body, opts) {
19105
19133
  return _regeneratorRuntime.wrap(function _callee56$(_context56) {
19106
19134
  while (1) {
@@ -19114,7 +19142,7 @@ var terminalCancellation = /*#__PURE__*/function () {
19114
19142
  transactionId: transactionId
19115
19143
  }, opts.hyperMediaEndpoint);
19116
19144
  return _context56.abrupt("return", request(_objectSpread$12({}, opts, {
19117
- path: pathTransactionTerminalCancel(transactionId)
19145
+ path: pathTransactionTerminalInput(transactionId)
19118
19146
  }), {
19119
19147
  method: 'post',
19120
19148
  data: body
@@ -19128,20 +19156,19 @@ var terminalCancellation = /*#__PURE__*/function () {
19128
19156
  }, _callee56);
19129
19157
  }));
19130
19158
 
19131
- return function terminalCancellation(_x180, _x181, _x182) {
19159
+ return function terminalInput(_x180, _x181, _x182) {
19132
19160
  return _ref56.apply(this, arguments);
19133
19161
  };
19134
19162
  }();
19135
19163
  /**
19136
- * Refund transaction's payment
19137
- * @param {String} transactionId - TransactionId
19138
- * @param {String} paymentId - PaymentId
19164
+ * Send terminal cancellation
19165
+ * @param {String} transactionId - Transaction ID
19139
19166
  * @param {Object} body - Request body
19140
19167
  * @param {Object} opts - Additional options
19141
19168
  */
19142
19169
 
19143
- var refundPayment = /*#__PURE__*/function () {
19144
- var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(transactionId, paymentId, body, opts) {
19170
+ var terminalCancellation = /*#__PURE__*/function () {
19171
+ var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(transactionId, body, opts) {
19145
19172
  return _regeneratorRuntime.wrap(function _callee57$(_context57) {
19146
19173
  while (1) {
19147
19174
  switch (_context57.prev = _context57.next) {
@@ -19154,7 +19181,7 @@ var refundPayment = /*#__PURE__*/function () {
19154
19181
  transactionId: transactionId
19155
19182
  }, opts.hyperMediaEndpoint);
19156
19183
  return _context57.abrupt("return", request(_objectSpread$12({}, opts, {
19157
- path: pathTransactionPaymentRefund(transactionId, paymentId)
19184
+ path: pathTransactionTerminalCancel(transactionId)
19158
19185
  }), {
19159
19186
  method: 'post',
19160
19187
  data: body
@@ -19168,10 +19195,50 @@ var refundPayment = /*#__PURE__*/function () {
19168
19195
  }, _callee57);
19169
19196
  }));
19170
19197
 
19171
- return function refundPayment(_x183, _x184, _x185, _x186) {
19198
+ return function terminalCancellation(_x183, _x184, _x185) {
19172
19199
  return _ref57.apply(this, arguments);
19173
19200
  };
19174
19201
  }();
19202
+ /**
19203
+ * Refund transaction's payment
19204
+ * @param {String} transactionId - TransactionId
19205
+ * @param {String} paymentId - PaymentId
19206
+ * @param {Object} body - Request body
19207
+ * @param {Object} opts - Additional options
19208
+ */
19209
+
19210
+ var refundPayment = /*#__PURE__*/function () {
19211
+ var _ref58 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(transactionId, paymentId, body, opts) {
19212
+ return _regeneratorRuntime.wrap(function _callee58$(_context58) {
19213
+ while (1) {
19214
+ switch (_context58.prev = _context58.next) {
19215
+ case 0:
19216
+ if (opts === void 0) {
19217
+ opts = {};
19218
+ }
19219
+
19220
+ doesParamExist.default({
19221
+ transactionId: transactionId
19222
+ }, opts.hyperMediaEndpoint);
19223
+ return _context58.abrupt("return", request(_objectSpread$12({}, opts, {
19224
+ path: pathTransactionPaymentRefund(transactionId, paymentId)
19225
+ }), {
19226
+ method: 'post',
19227
+ data: body
19228
+ }));
19229
+
19230
+ case 3:
19231
+ case "end":
19232
+ return _context58.stop();
19233
+ }
19234
+ }
19235
+ }, _callee58);
19236
+ }));
19237
+
19238
+ return function refundPayment(_x186, _x187, _x188, _x189) {
19239
+ return _ref58.apply(this, arguments);
19240
+ };
19241
+ }();
19175
19242
 
19176
19243
  var transactions = /*#__PURE__*/Object.freeze({
19177
19244
  __proto__: null,
@@ -19183,6 +19250,7 @@ var transactions = /*#__PURE__*/Object.freeze({
19183
19250
  cancelBusinessTransaction: cancelBusinessTransaction,
19184
19251
  createBusinessPracticeStaffMemberInvoice: createBusinessPracticeStaffMemberInvoice,
19185
19252
  createBusinessPracticeInvoice: createBusinessPracticeInvoice,
19253
+ createBusinessTransactionQuote: createBusinessTransactionQuote,
19186
19254
  createBusinessPracticeStaffMemberQuote: createBusinessPracticeStaffMemberQuote,
19187
19255
  createPayment: createPayment,
19188
19256
  createPaymentRequest: createPaymentRequest,
@@ -21224,6 +21292,7 @@ exports.createBusinessPracticeStaffMemberQuote = createBusinessPracticeStaffMemb
21224
21292
  exports.createBusinessService = createBusinessService;
21225
21293
  exports.createBusinessStaffMember = createBusinessStaffMember;
21226
21294
  exports.createBusinessSubscription = createBusinessSubscription;
21295
+ exports.createBusinessTransactionQuote = createBusinessTransactionQuote;
21227
21296
  exports.createConsumerAccount = createConsumerAccount;
21228
21297
  exports.createDocAccount = createDocAccount;
21229
21298
  exports.createEmailPackage = createEmailPackage;
@@ -21255,6 +21324,7 @@ exports.createShortLivedToken = createShortLivedToken;
21255
21324
  exports.createStaffProviderSetItem = createStaffProviderSetItem;
21256
21325
  exports.createSupportNote = createSupportNote;
21257
21326
  exports.declineHealthFundDocument = declineHealthFundDocument;
21327
+ exports.decrypt = decrypt;
21258
21328
  exports.deleteAccount = deleteAccount;
21259
21329
  exports.deleteAccountPaymentMethod = deleteAccountPaymentMethod;
21260
21330
  exports.deleteAccountSecretKey = deleteAccountSecretKey;