@medipass/web-sdk 11.23.1 → 11.23.2-fix-main-page-back-button.0

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