@medipass/web-sdk 11.37.1-feat-get-payment-methods-by-patient-ref-id.5 → 11.37.2-fix-pdf.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 (85) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/index.js +1 -1
  3. package/lib/resources/accounts.js +1 -1
  4. package/lib/resources/actions.js +1 -1
  5. package/lib/resources/api-keys.js +1 -1
  6. package/lib/resources/applications.js +1 -1
  7. package/lib/resources/attachments.js +1 -1
  8. package/lib/resources/auth.js +1 -1
  9. package/lib/resources/bulk-submits.js +1 -1
  10. package/lib/resources/bulk-uploads.js +1 -1
  11. package/lib/resources/business-profiles.js +1 -1
  12. package/lib/resources/businesses.js +1 -1
  13. package/lib/resources/claim-items.js +1 -1
  14. package/lib/resources/devices.js +1 -1
  15. package/lib/resources/doc-accounts.js +1 -1
  16. package/lib/resources/documents.js +1 -1
  17. package/lib/resources/emails.js +1 -1
  18. package/lib/resources/form-application-templates.js +1 -1
  19. package/lib/resources/form-applications.js +1 -1
  20. package/lib/resources/forms.js +1 -1
  21. package/lib/resources/funder-services.js +1 -1
  22. package/lib/resources/funder-settings.js +1 -1
  23. package/lib/resources/funders.js +1 -1
  24. package/lib/resources/futures.js +1 -1
  25. package/lib/resources/health-fund-accounts.js +1 -1
  26. package/lib/resources/health-fund-settings.js +1 -1
  27. package/lib/resources/healthfunds.js +1 -1
  28. package/lib/resources/icditems.js +1 -1
  29. package/lib/resources/invoice-scans.js +1 -1
  30. package/lib/resources/jhcs.js +1 -1
  31. package/lib/resources/kyc.js +1 -1
  32. package/lib/resources/logs.js +1 -1
  33. package/lib/resources/members.js +1 -1
  34. package/lib/resources/message-mappings.js +1 -1
  35. package/lib/resources/minions.js +1 -1
  36. package/lib/resources/modalities.js +1 -1
  37. package/lib/resources/notes.js +1 -1
  38. package/lib/resources/onboarding-applications.js +1 -1
  39. package/lib/resources/onboarding-requests.js +1 -1
  40. package/lib/resources/ops.js +1 -1
  41. package/lib/resources/organisations.js +1 -1
  42. package/lib/resources/partners.js +1 -1
  43. package/lib/resources/patients.js +1 -1
  44. package/lib/resources/payments.js +1 -1
  45. package/lib/resources/payments.js.flow +6 -11
  46. package/lib/resources/pms.js +1 -1
  47. package/lib/resources/practice-profiles.js +1 -1
  48. package/lib/resources/practice-types.js +1 -1
  49. package/lib/resources/practices.js +1 -1
  50. package/lib/resources/products.js +1 -1
  51. package/lib/resources/professional-categories.js +1 -1
  52. package/lib/resources/provider-number-types.js +1 -1
  53. package/lib/resources/provider-registration-types.js +1 -1
  54. package/lib/resources/provider-requests.js +1 -1
  55. package/lib/resources/provider-types.js +1 -1
  56. package/lib/resources/ref-sources.js +1 -1
  57. package/lib/resources/risk.js +1 -1
  58. package/lib/resources/rnas.js +1 -1
  59. package/lib/resources/roles.js +1 -1
  60. package/lib/resources/self-checkout-sessions.js +1 -1
  61. package/lib/resources/services.js +1 -1
  62. package/lib/resources/settlements.js +1 -1
  63. package/lib/resources/sign-up.js +1 -1
  64. package/lib/resources/specialties.js +1 -1
  65. package/lib/resources/staff-profiles.js +1 -1
  66. package/lib/resources/staff.js +1 -1
  67. package/lib/resources/statistics.js +1 -1
  68. package/lib/resources/subscriptions.js +1 -1
  69. package/lib/resources/terminals.js +1 -1
  70. package/lib/resources/transaction-export.js +1 -1
  71. package/lib/resources/transactions.js +2 -1
  72. package/lib/resources/transactions.js.flow +15 -0
  73. package/lib/resources/triggers.js +1 -1
  74. package/lib/resources/vendors.js +1 -1
  75. package/lib/resources/verify.js +1 -1
  76. package/lib/resources/workers.js +1 -1
  77. package/lib/resources/workflow-exceptions.js +1 -1
  78. package/lib/services/aws.js +1 -1
  79. package/lib/services/version.js +1 -1
  80. package/lib/{staff-a4512e5d.js → staff-69f0293a.js} +280 -246
  81. package/lib/utils/application.js +1 -1
  82. package/lib/utils/professions.js +1 -1
  83. package/lib/utils/request.js +1 -1
  84. package/lib/utils/staff.js +1 -1
  85. package/package.json +2 -2
@@ -10015,6 +10015,10 @@ var pathBusinessPatientPaymentMethods = function pathBusinessPatientPaymentMetho
10015
10015
  return "/businesses/" + businessId + "/patients/" + patientId + "/paymentmethods";
10016
10016
  };
10017
10017
 
10018
+ var pathBusinessPatientPaymentMethodsByRefId = function pathBusinessPatientPaymentMethodsByRefId(businessId, refId) {
10019
+ return "/businesses/" + businessId + "/patients/refid/" + refId + "/paymentmethods";
10020
+ };
10021
+
10018
10022
  var pathBusinessPatientPaymentMethod = function pathBusinessPatientPaymentMethod(businessId, patientId, paymentMethodId) {
10019
10023
  return "/businesses/" + businessId + "/patients/" + patientId + "/paymentmethods/" + paymentMethodId;
10020
10024
  };
@@ -10359,7 +10363,7 @@ var getBusinessPaymentMethods = /*#__PURE__*/function () {
10359
10363
  * Get a business patient payment methods
10360
10364
  * @param {String} businessId - Business ID
10361
10365
  * @param {Object} opts - Additional options
10362
- * @returns {Object} The device data
10366
+ * @returns {Object} The payment methods data
10363
10367
  */
10364
10368
 
10365
10369
  var getBusinessPatientPaymentMethods = /*#__PURE__*/function () {
@@ -10395,16 +10399,15 @@ var getBusinessPatientPaymentMethods = /*#__PURE__*/function () {
10395
10399
  };
10396
10400
  }();
10397
10401
  /**
10398
- * Get a business patient payment methods by red id
10402
+ * Get a business patient payment methods by ref id
10399
10403
  * @param {String} businessId - Business ID
10400
10404
  * @param {String} refId - Patient ref ID
10401
10405
  * @param {Object} opts - Additional options
10402
- * @returns {Object} The device data
10406
+ * @returns {Object} The payment methods data
10403
10407
  */
10404
10408
 
10405
10409
  var getBusinessPatientPaymentMethodsByRefId = /*#__PURE__*/function () {
10406
10410
  var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(businessId, refId, opts) {
10407
- var patient;
10408
10411
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
10409
10412
  while (1) {
10410
10413
  switch (_context10.prev = _context10.next) {
@@ -10416,25 +10419,14 @@ var getBusinessPatientPaymentMethodsByRefId = /*#__PURE__*/function () {
10416
10419
  doesParamExist.default({
10417
10420
  businessId: businessId,
10418
10421
  refId: refId
10419
- }, opts.hyperMediaEndpoint); // TODO: refactor endpoints into a single query once the API supports it!
10420
-
10421
- _context10.next = 4;
10422
- return getBusinessPatientByRefId(businessId, refId, opts);
10423
-
10424
- case 4:
10425
- patient = _context10.sent;
10426
-
10427
- if (patient) {
10428
- _context10.next = 7;
10429
- break;
10430
- }
10431
-
10432
- throw new Error("No associated patient found with refId " + refId);
10433
-
10434
- case 7:
10435
- return _context10.abrupt("return", getBusinessPatientPaymentMethods(businessId, patient._id, opts));
10422
+ }, opts.hyperMediaEndpoint);
10423
+ return _context10.abrupt("return", request(_objectSpread$G({}, opts, {
10424
+ path: pathBusinessPatientPaymentMethodsByRefId(businessId, refId)
10425
+ }), {
10426
+ method: 'get'
10427
+ }));
10436
10428
 
10437
- case 8:
10429
+ case 3:
10438
10430
  case "end":
10439
10431
  return _context10.stop();
10440
10432
  }
@@ -17300,6 +17292,8 @@ var pathTransactionClaimPdf = function pathTransactionClaimPdf(transactionId, cl
17300
17292
  return "/transactions/" + transactionId + "/claims/" + claimId + "/pdf";
17301
17293
  };
17302
17294
 
17295
+ var pathEclipseTransactionClaimPdf = '/transactions/pdfs';
17296
+
17303
17297
  var pathTransactionPays = function pathTransactionPays(transactionId) {
17304
17298
  return "/transactions/" + transactionId + "/pays";
17305
17299
  };
@@ -18545,14 +18539,15 @@ var getTransactionClaimPDF = /*#__PURE__*/function () {
18545
18539
  };
18546
18540
  }();
18547
18541
  /**
18548
- * Reply to a quote
18549
- * @param {String} transactionId - TransactionId
18542
+ * TODO: Use this endpoint for all funder claims, once it's supported in the API
18543
+ *
18544
+ * Get Eclipse transaction claim PDF
18550
18545
  * @param {Object} body - Request body
18551
18546
  * @param {Object} opts - Additional options
18552
18547
  */
18553
18548
 
18554
- var replyToQuote = /*#__PURE__*/function () {
18555
- var _ref30 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(transactionId, body, opts) {
18549
+ var getEclipseTransactionClaimPDF = /*#__PURE__*/function () {
18550
+ var _ref30 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(body, opts) {
18556
18551
  return _regeneratorRuntime.wrap(function _callee30$(_context30) {
18557
18552
  while (1) {
18558
18553
  switch (_context30.prev = _context30.next) {
@@ -18561,17 +18556,15 @@ var replyToQuote = /*#__PURE__*/function () {
18561
18556
  opts = {};
18562
18557
  }
18563
18558
 
18564
- doesParamExist.default({
18565
- transactionId: transactionId
18566
- }, opts.hyperMediaEndpoint);
18567
18559
  return _context30.abrupt("return", request(_objectSpread$14({}, opts, {
18568
- path: pathReplyQuote(transactionId)
18560
+ path: pathEclipseTransactionClaimPdf
18569
18561
  }), {
18570
18562
  method: 'post',
18571
- data: body
18563
+ data: body,
18564
+ responseType: 'arraybuffer'
18572
18565
  }));
18573
18566
 
18574
- case 3:
18567
+ case 2:
18575
18568
  case "end":
18576
18569
  return _context30.stop();
18577
18570
  }
@@ -18579,18 +18572,18 @@ var replyToQuote = /*#__PURE__*/function () {
18579
18572
  }, _callee30);
18580
18573
  }));
18581
18574
 
18582
- return function replyToQuote(_x102, _x103, _x104) {
18575
+ return function getEclipseTransactionClaimPDF(_x102, _x103) {
18583
18576
  return _ref30.apply(this, arguments);
18584
18577
  };
18585
18578
  }();
18586
18579
  /**
18587
- * Send receipt
18580
+ * Reply to a quote
18588
18581
  * @param {String} transactionId - TransactionId
18589
18582
  * @param {Object} body - Request body
18590
18583
  * @param {Object} opts - Additional options
18591
18584
  */
18592
18585
 
18593
- var sendReceipt$1 = /*#__PURE__*/function () {
18586
+ var replyToQuote = /*#__PURE__*/function () {
18594
18587
  var _ref31 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(transactionId, body, opts) {
18595
18588
  return _regeneratorRuntime.wrap(function _callee31$(_context31) {
18596
18589
  while (1) {
@@ -18604,7 +18597,7 @@ var sendReceipt$1 = /*#__PURE__*/function () {
18604
18597
  transactionId: transactionId
18605
18598
  }, opts.hyperMediaEndpoint);
18606
18599
  return _context31.abrupt("return", request(_objectSpread$14({}, opts, {
18607
- path: pathTransactionSendReceipt(transactionId)
18600
+ path: pathReplyQuote(transactionId)
18608
18601
  }), {
18609
18602
  method: 'post',
18610
18603
  data: body
@@ -18618,18 +18611,18 @@ var sendReceipt$1 = /*#__PURE__*/function () {
18618
18611
  }, _callee31);
18619
18612
  }));
18620
18613
 
18621
- return function sendReceipt(_x105, _x106, _x107) {
18614
+ return function replyToQuote(_x104, _x105, _x106) {
18622
18615
  return _ref31.apply(this, arguments);
18623
18616
  };
18624
18617
  }();
18625
18618
  /**
18626
- * Submit an invoice
18619
+ * Send receipt
18627
18620
  * @param {String} transactionId - TransactionId
18628
18621
  * @param {Object} body - Request body
18629
18622
  * @param {Object} opts - Additional options
18630
18623
  */
18631
18624
 
18632
- var submitInvoice = /*#__PURE__*/function () {
18625
+ var sendReceipt$1 = /*#__PURE__*/function () {
18633
18626
  var _ref32 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(transactionId, body, opts) {
18634
18627
  return _regeneratorRuntime.wrap(function _callee32$(_context32) {
18635
18628
  while (1) {
@@ -18643,7 +18636,7 @@ var submitInvoice = /*#__PURE__*/function () {
18643
18636
  transactionId: transactionId
18644
18637
  }, opts.hyperMediaEndpoint);
18645
18638
  return _context32.abrupt("return", request(_objectSpread$14({}, opts, {
18646
- path: pathTransactionByTransactionId(transactionId) + "/submitinvoice"
18639
+ path: pathTransactionSendReceipt(transactionId)
18647
18640
  }), {
18648
18641
  method: 'post',
18649
18642
  data: body
@@ -18657,18 +18650,18 @@ var submitInvoice = /*#__PURE__*/function () {
18657
18650
  }, _callee32);
18658
18651
  }));
18659
18652
 
18660
- return function submitInvoice(_x108, _x109, _x110) {
18653
+ return function sendReceipt(_x107, _x108, _x109) {
18661
18654
  return _ref32.apply(this, arguments);
18662
18655
  };
18663
18656
  }();
18664
18657
  /**
18665
- * Update transaction
18658
+ * Submit an invoice
18666
18659
  * @param {String} transactionId - TransactionId
18667
18660
  * @param {Object} body - Request body
18668
18661
  * @param {Object} opts - Additional options
18669
18662
  */
18670
18663
 
18671
- var updateTransaction = /*#__PURE__*/function () {
18664
+ var submitInvoice = /*#__PURE__*/function () {
18672
18665
  var _ref33 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(transactionId, body, opts) {
18673
18666
  return _regeneratorRuntime.wrap(function _callee33$(_context33) {
18674
18667
  while (1) {
@@ -18682,9 +18675,9 @@ var updateTransaction = /*#__PURE__*/function () {
18682
18675
  transactionId: transactionId
18683
18676
  }, opts.hyperMediaEndpoint);
18684
18677
  return _context33.abrupt("return", request(_objectSpread$14({}, opts, {
18685
- path: pathTransactionByTransactionId(transactionId)
18678
+ path: pathTransactionByTransactionId(transactionId) + "/submitinvoice"
18686
18679
  }), {
18687
- method: 'put',
18680
+ method: 'post',
18688
18681
  data: body
18689
18682
  }));
18690
18683
 
@@ -18696,18 +18689,19 @@ var updateTransaction = /*#__PURE__*/function () {
18696
18689
  }, _callee33);
18697
18690
  }));
18698
18691
 
18699
- return function updateTransaction(_x111, _x112, _x113) {
18692
+ return function submitInvoice(_x110, _x111, _x112) {
18700
18693
  return _ref33.apply(this, arguments);
18701
18694
  };
18702
18695
  }();
18703
18696
  /**
18704
- * Validate a transaction
18697
+ * Update transaction
18705
18698
  * @param {String} transactionId - TransactionId
18699
+ * @param {Object} body - Request body
18706
18700
  * @param {Object} opts - Additional options
18707
18701
  */
18708
18702
 
18709
- var validateTransaction = /*#__PURE__*/function () {
18710
- var _ref34 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(transactionId, opts) {
18703
+ var updateTransaction = /*#__PURE__*/function () {
18704
+ var _ref34 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(transactionId, body, opts) {
18711
18705
  return _regeneratorRuntime.wrap(function _callee34$(_context34) {
18712
18706
  while (1) {
18713
18707
  switch (_context34.prev = _context34.next) {
@@ -18720,9 +18714,10 @@ var validateTransaction = /*#__PURE__*/function () {
18720
18714
  transactionId: transactionId
18721
18715
  }, opts.hyperMediaEndpoint);
18722
18716
  return _context34.abrupt("return", request(_objectSpread$14({}, opts, {
18723
- path: pathValidateTransaction(transactionId)
18717
+ path: pathTransactionByTransactionId(transactionId)
18724
18718
  }), {
18725
- method: 'post'
18719
+ method: 'put',
18720
+ data: body
18726
18721
  }));
18727
18722
 
18728
18723
  case 3:
@@ -18733,19 +18728,18 @@ var validateTransaction = /*#__PURE__*/function () {
18733
18728
  }, _callee34);
18734
18729
  }));
18735
18730
 
18736
- return function validateTransaction(_x114, _x115) {
18731
+ return function updateTransaction(_x113, _x114, _x115) {
18737
18732
  return _ref34.apply(this, arguments);
18738
18733
  };
18739
18734
  }();
18740
18735
  /**
18741
- * Submits a Bridge's claim response to transaction
18736
+ * Validate a transaction
18742
18737
  * @param {String} transactionId - TransactionId
18743
- * @param {Object} body - Request body
18744
18738
  * @param {Object} opts - Additional options
18745
18739
  */
18746
18740
 
18747
- var submitTransactionBridgeClaim = /*#__PURE__*/function () {
18748
- var _ref35 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(transactionId, body, opts) {
18741
+ var validateTransaction = /*#__PURE__*/function () {
18742
+ var _ref35 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(transactionId, opts) {
18749
18743
  return _regeneratorRuntime.wrap(function _callee35$(_context35) {
18750
18744
  while (1) {
18751
18745
  switch (_context35.prev = _context35.next) {
@@ -18758,10 +18752,9 @@ var submitTransactionBridgeClaim = /*#__PURE__*/function () {
18758
18752
  transactionId: transactionId
18759
18753
  }, opts.hyperMediaEndpoint);
18760
18754
  return _context35.abrupt("return", request(_objectSpread$14({}, opts, {
18761
- path: pathTransactionSubmitBridgeClaim(transactionId)
18755
+ path: pathValidateTransaction(transactionId)
18762
18756
  }), {
18763
- method: 'post',
18764
- data: body
18757
+ method: 'post'
18765
18758
  }));
18766
18759
 
18767
18760
  case 3:
@@ -18772,18 +18765,18 @@ var submitTransactionBridgeClaim = /*#__PURE__*/function () {
18772
18765
  }, _callee35);
18773
18766
  }));
18774
18767
 
18775
- return function submitTransactionBridgeClaim(_x116, _x117, _x118) {
18768
+ return function validateTransaction(_x116, _x117) {
18776
18769
  return _ref35.apply(this, arguments);
18777
18770
  };
18778
18771
  }();
18779
18772
  /**
18780
- * Submits a Bridge's payment response to transaction
18773
+ * Submits a Bridge's claim response to transaction
18781
18774
  * @param {String} transactionId - TransactionId
18782
18775
  * @param {Object} body - Request body
18783
18776
  * @param {Object} opts - Additional options
18784
18777
  */
18785
18778
 
18786
- var submitTransactionBridgePayment = /*#__PURE__*/function () {
18779
+ var submitTransactionBridgeClaim = /*#__PURE__*/function () {
18787
18780
  var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(transactionId, body, opts) {
18788
18781
  return _regeneratorRuntime.wrap(function _callee36$(_context36) {
18789
18782
  while (1) {
@@ -18797,7 +18790,7 @@ var submitTransactionBridgePayment = /*#__PURE__*/function () {
18797
18790
  transactionId: transactionId
18798
18791
  }, opts.hyperMediaEndpoint);
18799
18792
  return _context36.abrupt("return", request(_objectSpread$14({}, opts, {
18800
- path: pathTransactionSubmitBridgePayment(transactionId)
18793
+ path: pathTransactionSubmitBridgeClaim(transactionId)
18801
18794
  }), {
18802
18795
  method: 'post',
18803
18796
  data: body
@@ -18811,18 +18804,18 @@ var submitTransactionBridgePayment = /*#__PURE__*/function () {
18811
18804
  }, _callee36);
18812
18805
  }));
18813
18806
 
18814
- return function submitTransactionBridgePayment(_x119, _x120, _x121) {
18807
+ return function submitTransactionBridgeClaim(_x118, _x119, _x120) {
18815
18808
  return _ref36.apply(this, arguments);
18816
18809
  };
18817
18810
  }();
18818
18811
  /**
18819
- * Trigger's a bridge request for a transaction
18812
+ * Submits a Bridge's payment response to transaction
18820
18813
  * @param {String} transactionId - TransactionId
18821
18814
  * @param {Object} body - Request body
18822
18815
  * @param {Object} opts - Additional options
18823
18816
  */
18824
18817
 
18825
- var triggerBridge = /*#__PURE__*/function () {
18818
+ var submitTransactionBridgePayment = /*#__PURE__*/function () {
18826
18819
  var _ref37 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(transactionId, body, opts) {
18827
18820
  return _regeneratorRuntime.wrap(function _callee37$(_context37) {
18828
18821
  while (1) {
@@ -18836,7 +18829,7 @@ var triggerBridge = /*#__PURE__*/function () {
18836
18829
  transactionId: transactionId
18837
18830
  }, opts.hyperMediaEndpoint);
18838
18831
  return _context37.abrupt("return", request(_objectSpread$14({}, opts, {
18839
- path: pathTransactionTriggerBridge(transactionId)
18832
+ path: pathTransactionSubmitBridgePayment(transactionId)
18840
18833
  }), {
18841
18834
  method: 'post',
18842
18835
  data: body
@@ -18850,19 +18843,19 @@ var triggerBridge = /*#__PURE__*/function () {
18850
18843
  }, _callee37);
18851
18844
  }));
18852
18845
 
18853
- return function triggerBridge(_x122, _x123, _x124) {
18846
+ return function submitTransactionBridgePayment(_x121, _x122, _x123) {
18854
18847
  return _ref37.apply(this, arguments);
18855
18848
  };
18856
18849
  }();
18857
18850
  /**
18858
- * Create invoice
18859
- * @param {String} businessId - BusinessId
18851
+ * Trigger's a bridge request for a transaction
18852
+ * @param {String} transactionId - TransactionId
18860
18853
  * @param {Object} body - Request body
18861
18854
  * @param {Object} opts - Additional options
18862
18855
  */
18863
18856
 
18864
- var createInvoice = /*#__PURE__*/function () {
18865
- var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(businessId, body, opts) {
18857
+ var triggerBridge = /*#__PURE__*/function () {
18858
+ var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(transactionId, body, opts) {
18866
18859
  return _regeneratorRuntime.wrap(function _callee38$(_context38) {
18867
18860
  while (1) {
18868
18861
  switch (_context38.prev = _context38.next) {
@@ -18872,10 +18865,10 @@ var createInvoice = /*#__PURE__*/function () {
18872
18865
  }
18873
18866
 
18874
18867
  doesParamExist.default({
18875
- businessId: businessId
18868
+ transactionId: transactionId
18876
18869
  }, opts.hyperMediaEndpoint);
18877
18870
  return _context38.abrupt("return", request(_objectSpread$14({}, opts, {
18878
- path: pathCreateInvoice(businessId)
18871
+ path: pathTransactionTriggerBridge(transactionId)
18879
18872
  }), {
18880
18873
  method: 'post',
18881
18874
  data: body
@@ -18889,19 +18882,19 @@ var createInvoice = /*#__PURE__*/function () {
18889
18882
  }, _callee38);
18890
18883
  }));
18891
18884
 
18892
- return function createInvoice(_x125, _x126, _x127) {
18885
+ return function triggerBridge(_x124, _x125, _x126) {
18893
18886
  return _ref38.apply(this, arguments);
18894
18887
  };
18895
18888
  }();
18896
18889
  /**
18897
- * Create or send a claim
18898
- * @param {String} transactionId - TransactionId
18890
+ * Create invoice
18891
+ * @param {String} businessId - BusinessId
18899
18892
  * @param {Object} body - Request body
18900
18893
  * @param {Object} opts - Additional options
18901
18894
  */
18902
18895
 
18903
- var createSendClaim = /*#__PURE__*/function () {
18904
- var _ref39 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(transactionId, body, opts) {
18896
+ var createInvoice = /*#__PURE__*/function () {
18897
+ var _ref39 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(businessId, body, opts) {
18905
18898
  return _regeneratorRuntime.wrap(function _callee39$(_context39) {
18906
18899
  while (1) {
18907
18900
  switch (_context39.prev = _context39.next) {
@@ -18911,10 +18904,10 @@ var createSendClaim = /*#__PURE__*/function () {
18911
18904
  }
18912
18905
 
18913
18906
  doesParamExist.default({
18914
- transactionId: transactionId
18907
+ businessId: businessId
18915
18908
  }, opts.hyperMediaEndpoint);
18916
18909
  return _context39.abrupt("return", request(_objectSpread$14({}, opts, {
18917
- path: pathCreateSendClaim(transactionId)
18910
+ path: pathCreateInvoice(businessId)
18918
18911
  }), {
18919
18912
  method: 'post',
18920
18913
  data: body
@@ -18928,20 +18921,19 @@ var createSendClaim = /*#__PURE__*/function () {
18928
18921
  }, _callee39);
18929
18922
  }));
18930
18923
 
18931
- return function createSendClaim(_x128, _x129, _x130) {
18924
+ return function createInvoice(_x127, _x128, _x129) {
18932
18925
  return _ref39.apply(this, arguments);
18933
18926
  };
18934
18927
  }();
18935
18928
  /**
18936
- * Update a claim
18929
+ * Create or send a claim
18937
18930
  * @param {String} transactionId - TransactionId
18938
- * @param {String} claimId - ClaimId
18939
18931
  * @param {Object} body - Request body
18940
18932
  * @param {Object} opts - Additional options
18941
18933
  */
18942
18934
 
18943
- var updateClaim = /*#__PURE__*/function () {
18944
- var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(transactionId, claimId, body, opts) {
18935
+ var createSendClaim = /*#__PURE__*/function () {
18936
+ var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(transactionId, body, opts) {
18945
18937
  return _regeneratorRuntime.wrap(function _callee40$(_context40) {
18946
18938
  while (1) {
18947
18939
  switch (_context40.prev = _context40.next) {
@@ -18951,13 +18943,12 @@ var updateClaim = /*#__PURE__*/function () {
18951
18943
  }
18952
18944
 
18953
18945
  doesParamExist.default({
18954
- claimId: claimId,
18955
18946
  transactionId: transactionId
18956
18947
  }, opts.hyperMediaEndpoint);
18957
18948
  return _context40.abrupt("return", request(_objectSpread$14({}, opts, {
18958
- path: pathClaim(transactionId, claimId)
18949
+ path: pathCreateSendClaim(transactionId)
18959
18950
  }), {
18960
- method: 'put',
18951
+ method: 'post',
18961
18952
  data: body
18962
18953
  }));
18963
18954
 
@@ -18969,18 +18960,20 @@ var updateClaim = /*#__PURE__*/function () {
18969
18960
  }, _callee40);
18970
18961
  }));
18971
18962
 
18972
- return function updateClaim(_x131, _x132, _x133, _x134) {
18963
+ return function createSendClaim(_x130, _x131, _x132) {
18973
18964
  return _ref40.apply(this, arguments);
18974
18965
  };
18975
18966
  }();
18976
18967
  /**
18977
- * Complete a transaction
18968
+ * Update a claim
18978
18969
  * @param {String} transactionId - TransactionId
18970
+ * @param {String} claimId - ClaimId
18971
+ * @param {Object} body - Request body
18979
18972
  * @param {Object} opts - Additional options
18980
18973
  */
18981
18974
 
18982
- var completeTransaction = /*#__PURE__*/function () {
18983
- var _ref41 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(transactionId, opts) {
18975
+ var updateClaim = /*#__PURE__*/function () {
18976
+ var _ref41 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(transactionId, claimId, body, opts) {
18984
18977
  return _regeneratorRuntime.wrap(function _callee41$(_context41) {
18985
18978
  while (1) {
18986
18979
  switch (_context41.prev = _context41.next) {
@@ -18990,12 +18983,14 @@ var completeTransaction = /*#__PURE__*/function () {
18990
18983
  }
18991
18984
 
18992
18985
  doesParamExist.default({
18986
+ claimId: claimId,
18993
18987
  transactionId: transactionId
18994
18988
  }, opts.hyperMediaEndpoint);
18995
18989
  return _context41.abrupt("return", request(_objectSpread$14({}, opts, {
18996
- path: pathCompleteTransaction(transactionId)
18990
+ path: pathClaim(transactionId, claimId)
18997
18991
  }), {
18998
- method: 'post'
18992
+ method: 'put',
18993
+ data: body
18999
18994
  }));
19000
18995
 
19001
18996
  case 3:
@@ -19006,20 +19001,18 @@ var completeTransaction = /*#__PURE__*/function () {
19006
19001
  }, _callee41);
19007
19002
  }));
19008
19003
 
19009
- return function completeTransaction(_x135, _x136) {
19004
+ return function updateClaim(_x133, _x134, _x135, _x136) {
19010
19005
  return _ref41.apply(this, arguments);
19011
19006
  };
19012
19007
  }();
19013
19008
  /**
19014
- * Approves a claim
19009
+ * Complete a transaction
19015
19010
  * @param {String} transactionId - TransactionId
19016
- * @param {String} claimId - ClaimId
19017
- * @param {Object} body - Request body
19018
19011
  * @param {Object} opts - Additional options
19019
19012
  */
19020
19013
 
19021
- var approveClaim = /*#__PURE__*/function () {
19022
- var _ref42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(transactionId, claimId, body, opts) {
19014
+ var completeTransaction = /*#__PURE__*/function () {
19015
+ var _ref42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(transactionId, opts) {
19023
19016
  return _regeneratorRuntime.wrap(function _callee42$(_context42) {
19024
19017
  while (1) {
19025
19018
  switch (_context42.prev = _context42.next) {
@@ -19032,10 +19025,9 @@ var approveClaim = /*#__PURE__*/function () {
19032
19025
  transactionId: transactionId
19033
19026
  }, opts.hyperMediaEndpoint);
19034
19027
  return _context42.abrupt("return", request(_objectSpread$14({}, opts, {
19035
- path: pathApproveClaim(transactionId, claimId)
19028
+ path: pathCompleteTransaction(transactionId)
19036
19029
  }), {
19037
- method: 'post',
19038
- data: body
19030
+ method: 'post'
19039
19031
  }));
19040
19032
 
19041
19033
  case 3:
@@ -19046,18 +19038,19 @@ var approveClaim = /*#__PURE__*/function () {
19046
19038
  }, _callee42);
19047
19039
  }));
19048
19040
 
19049
- return function approveClaim(_x137, _x138, _x139, _x140) {
19041
+ return function completeTransaction(_x137, _x138) {
19050
19042
  return _ref42.apply(this, arguments);
19051
19043
  };
19052
19044
  }();
19053
19045
  /**
19054
- * Cancels a claim
19055
- * @param {String} transactionId - Transaction ID
19056
- * @param {String} claimId - Claim ID
19046
+ * Approves a claim
19047
+ * @param {String} transactionId - TransactionId
19048
+ * @param {String} claimId - ClaimId
19049
+ * @param {Object} body - Request body
19057
19050
  * @param {Object} opts - Additional options
19058
19051
  */
19059
19052
 
19060
- var cancelClaim = /*#__PURE__*/function () {
19053
+ var approveClaim = /*#__PURE__*/function () {
19061
19054
  var _ref43 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(transactionId, claimId, body, opts) {
19062
19055
  return _regeneratorRuntime.wrap(function _callee43$(_context43) {
19063
19056
  while (1) {
@@ -19068,11 +19061,10 @@ var cancelClaim = /*#__PURE__*/function () {
19068
19061
  }
19069
19062
 
19070
19063
  doesParamExist.default({
19071
- claimId: claimId,
19072
19064
  transactionId: transactionId
19073
19065
  }, opts.hyperMediaEndpoint);
19074
19066
  return _context43.abrupt("return", request(_objectSpread$14({}, opts, {
19075
- path: pathCancelClaim(transactionId, claimId)
19067
+ path: pathApproveClaim(transactionId, claimId)
19076
19068
  }), {
19077
19069
  method: 'post',
19078
19070
  data: body
@@ -19086,19 +19078,18 @@ var cancelClaim = /*#__PURE__*/function () {
19086
19078
  }, _callee43);
19087
19079
  }));
19088
19080
 
19089
- return function cancelClaim(_x141, _x142, _x143, _x144) {
19081
+ return function approveClaim(_x139, _x140, _x141, _x142) {
19090
19082
  return _ref43.apply(this, arguments);
19091
19083
  };
19092
19084
  }();
19093
19085
  /**
19094
- * Submit a claim
19095
- * @param {String} transactionId - TransactionId
19096
- * @param {String} claimId - ClaimId
19097
- * @param {Object} body - Request body
19086
+ * Cancels a claim
19087
+ * @param {String} transactionId - Transaction ID
19088
+ * @param {String} claimId - Claim ID
19098
19089
  * @param {Object} opts - Additional options
19099
19090
  */
19100
19091
 
19101
- var submitClaim = /*#__PURE__*/function () {
19092
+ var cancelClaim = /*#__PURE__*/function () {
19102
19093
  var _ref44 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(transactionId, claimId, body, opts) {
19103
19094
  return _regeneratorRuntime.wrap(function _callee44$(_context44) {
19104
19095
  while (1) {
@@ -19109,10 +19100,11 @@ var submitClaim = /*#__PURE__*/function () {
19109
19100
  }
19110
19101
 
19111
19102
  doesParamExist.default({
19103
+ claimId: claimId,
19112
19104
  transactionId: transactionId
19113
19105
  }, opts.hyperMediaEndpoint);
19114
19106
  return _context44.abrupt("return", request(_objectSpread$14({}, opts, {
19115
- path: pathSubmitClaim(transactionId, claimId)
19107
+ path: pathCancelClaim(transactionId, claimId)
19116
19108
  }), {
19117
19109
  method: 'post',
19118
19110
  data: body
@@ -19126,19 +19118,20 @@ var submitClaim = /*#__PURE__*/function () {
19126
19118
  }, _callee44);
19127
19119
  }));
19128
19120
 
19129
- return function submitClaim(_x145, _x146, _x147, _x148) {
19121
+ return function cancelClaim(_x143, _x144, _x145, _x146) {
19130
19122
  return _ref44.apply(this, arguments);
19131
19123
  };
19132
19124
  }();
19133
19125
  /**
19134
- * Save claim details
19135
- * @param {String} transactionId - Transaction ID
19136
- * @param {String} claimId - Claim ID
19126
+ * Submit a claim
19127
+ * @param {String} transactionId - TransactionId
19128
+ * @param {String} claimId - ClaimId
19129
+ * @param {Object} body - Request body
19137
19130
  * @param {Object} opts - Additional options
19138
19131
  */
19139
19132
 
19140
- var saveClaimDetails = /*#__PURE__*/function () {
19141
- var _ref45 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(transactionId, claimId, opts) {
19133
+ var submitClaim = /*#__PURE__*/function () {
19134
+ var _ref45 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(transactionId, claimId, body, opts) {
19142
19135
  return _regeneratorRuntime.wrap(function _callee45$(_context45) {
19143
19136
  while (1) {
19144
19137
  switch (_context45.prev = _context45.next) {
@@ -19148,13 +19141,13 @@ var saveClaimDetails = /*#__PURE__*/function () {
19148
19141
  }
19149
19142
 
19150
19143
  doesParamExist.default({
19151
- claimId: claimId,
19152
19144
  transactionId: transactionId
19153
19145
  }, opts.hyperMediaEndpoint);
19154
19146
  return _context45.abrupt("return", request(_objectSpread$14({}, opts, {
19155
- path: pathSaveClaim(transactionId, claimId)
19147
+ path: pathSubmitClaim(transactionId, claimId)
19156
19148
  }), {
19157
- method: 'post'
19149
+ method: 'post',
19150
+ data: body
19158
19151
  }));
19159
19152
 
19160
19153
  case 3:
@@ -19165,19 +19158,19 @@ var saveClaimDetails = /*#__PURE__*/function () {
19165
19158
  }, _callee45);
19166
19159
  }));
19167
19160
 
19168
- return function saveClaimDetails(_x149, _x150, _x151) {
19161
+ return function submitClaim(_x147, _x148, _x149, _x150) {
19169
19162
  return _ref45.apply(this, arguments);
19170
19163
  };
19171
19164
  }();
19172
19165
  /**
19173
- * Create payment
19166
+ * Save claim details
19174
19167
  * @param {String} transactionId - Transaction ID
19175
- * @param {Object} body - Request body
19168
+ * @param {String} claimId - Claim ID
19176
19169
  * @param {Object} opts - Additional options
19177
19170
  */
19178
19171
 
19179
- var pay = /*#__PURE__*/function () {
19180
- var _ref46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(transactionId, body, opts) {
19172
+ var saveClaimDetails = /*#__PURE__*/function () {
19173
+ var _ref46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(transactionId, claimId, opts) {
19181
19174
  return _regeneratorRuntime.wrap(function _callee46$(_context46) {
19182
19175
  while (1) {
19183
19176
  switch (_context46.prev = _context46.next) {
@@ -19187,13 +19180,13 @@ var pay = /*#__PURE__*/function () {
19187
19180
  }
19188
19181
 
19189
19182
  doesParamExist.default({
19183
+ claimId: claimId,
19190
19184
  transactionId: transactionId
19191
19185
  }, opts.hyperMediaEndpoint);
19192
19186
  return _context46.abrupt("return", request(_objectSpread$14({}, opts, {
19193
- path: pathTransactionPays(transactionId)
19187
+ path: pathSaveClaim(transactionId, claimId)
19194
19188
  }), {
19195
- method: 'post',
19196
- data: body
19189
+ method: 'post'
19197
19190
  }));
19198
19191
 
19199
19192
  case 3:
@@ -19204,18 +19197,18 @@ var pay = /*#__PURE__*/function () {
19204
19197
  }, _callee46);
19205
19198
  }));
19206
19199
 
19207
- return function pay(_x152, _x153, _x154) {
19200
+ return function saveClaimDetails(_x151, _x152, _x153) {
19208
19201
  return _ref46.apply(this, arguments);
19209
19202
  };
19210
19203
  }();
19211
19204
  /**
19212
- * Send a processing request
19213
- * @param {String} transactionId - TransactionId
19205
+ * Create payment
19206
+ * @param {String} transactionId - Transaction ID
19214
19207
  * @param {Object} body - Request body
19215
19208
  * @param {Object} opts - Additional options
19216
19209
  */
19217
19210
 
19218
- var sendProcessingRequest$1 = /*#__PURE__*/function () {
19211
+ var pay = /*#__PURE__*/function () {
19219
19212
  var _ref47 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(transactionId, body, opts) {
19220
19213
  return _regeneratorRuntime.wrap(function _callee47$(_context47) {
19221
19214
  while (1) {
@@ -19229,7 +19222,7 @@ var sendProcessingRequest$1 = /*#__PURE__*/function () {
19229
19222
  transactionId: transactionId
19230
19223
  }, opts.hyperMediaEndpoint);
19231
19224
  return _context47.abrupt("return", request(_objectSpread$14({}, opts, {
19232
- path: pathTransactionProcessingRequests(transactionId)
19225
+ path: pathTransactionPays(transactionId)
19233
19226
  }), {
19234
19227
  method: 'post',
19235
19228
  data: body
@@ -19243,18 +19236,18 @@ var sendProcessingRequest$1 = /*#__PURE__*/function () {
19243
19236
  }, _callee47);
19244
19237
  }));
19245
19238
 
19246
- return function sendProcessingRequest(_x155, _x156, _x157) {
19239
+ return function pay(_x154, _x155, _x156) {
19247
19240
  return _ref47.apply(this, arguments);
19248
19241
  };
19249
19242
  }();
19250
19243
  /**
19251
- * Cancel invoice
19244
+ * Send a processing request
19252
19245
  * @param {String} transactionId - TransactionId
19253
19246
  * @param {Object} body - Request body
19254
19247
  * @param {Object} opts - Additional options
19255
19248
  */
19256
19249
 
19257
- var cancelInvoice = /*#__PURE__*/function () {
19250
+ var sendProcessingRequest$1 = /*#__PURE__*/function () {
19258
19251
  var _ref48 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(transactionId, body, opts) {
19259
19252
  return _regeneratorRuntime.wrap(function _callee48$(_context48) {
19260
19253
  while (1) {
@@ -19268,7 +19261,7 @@ var cancelInvoice = /*#__PURE__*/function () {
19268
19261
  transactionId: transactionId
19269
19262
  }, opts.hyperMediaEndpoint);
19270
19263
  return _context48.abrupt("return", request(_objectSpread$14({}, opts, {
19271
- path: pathTransactionCancel(transactionId)
19264
+ path: pathTransactionProcessingRequests(transactionId)
19272
19265
  }), {
19273
19266
  method: 'post',
19274
19267
  data: body
@@ -19282,18 +19275,19 @@ var cancelInvoice = /*#__PURE__*/function () {
19282
19275
  }, _callee48);
19283
19276
  }));
19284
19277
 
19285
- return function cancelInvoice(_x158, _x159, _x160) {
19278
+ return function sendProcessingRequest(_x157, _x158, _x159) {
19286
19279
  return _ref48.apply(this, arguments);
19287
19280
  };
19288
19281
  }();
19289
19282
  /**
19290
- * Get payment link
19283
+ * Cancel invoice
19291
19284
  * @param {String} transactionId - TransactionId
19285
+ * @param {Object} body - Request body
19292
19286
  * @param {Object} opts - Additional options
19293
19287
  */
19294
19288
 
19295
- var getPaymentLink$1 = /*#__PURE__*/function () {
19296
- var _ref49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(transactionId, opts) {
19289
+ var cancelInvoice = /*#__PURE__*/function () {
19290
+ var _ref49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(transactionId, body, opts) {
19297
19291
  return _regeneratorRuntime.wrap(function _callee49$(_context49) {
19298
19292
  while (1) {
19299
19293
  switch (_context49.prev = _context49.next) {
@@ -19306,9 +19300,10 @@ var getPaymentLink$1 = /*#__PURE__*/function () {
19306
19300
  transactionId: transactionId
19307
19301
  }, opts.hyperMediaEndpoint);
19308
19302
  return _context49.abrupt("return", request(_objectSpread$14({}, opts, {
19309
- path: pathTransactionPaymentLink(transactionId)
19303
+ path: pathTransactionCancel(transactionId)
19310
19304
  }), {
19311
- method: 'get'
19305
+ method: 'post',
19306
+ data: body
19312
19307
  }));
19313
19308
 
19314
19309
  case 3:
@@ -19319,20 +19314,18 @@ var getPaymentLink$1 = /*#__PURE__*/function () {
19319
19314
  }, _callee49);
19320
19315
  }));
19321
19316
 
19322
- return function getPaymentLink(_x161, _x162) {
19317
+ return function cancelInvoice(_x160, _x161, _x162) {
19323
19318
  return _ref49.apply(this, arguments);
19324
19319
  };
19325
19320
  }();
19326
19321
  /**
19327
- * Refund transaction
19328
- * @param {String} businessId - BusinessId
19322
+ * Get payment link
19329
19323
  * @param {String} transactionId - TransactionId
19330
- * @param {Object} body - Request body
19331
19324
  * @param {Object} opts - Additional options
19332
19325
  */
19333
19326
 
19334
- var refundByBusiness = /*#__PURE__*/function () {
19335
- var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(businessId, transactionId, body, opts) {
19327
+ var getPaymentLink$1 = /*#__PURE__*/function () {
19328
+ var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(transactionId, opts) {
19336
19329
  return _regeneratorRuntime.wrap(function _callee50$(_context50) {
19337
19330
  while (1) {
19338
19331
  switch (_context50.prev = _context50.next) {
@@ -19342,14 +19335,12 @@ var refundByBusiness = /*#__PURE__*/function () {
19342
19335
  }
19343
19336
 
19344
19337
  doesParamExist.default({
19345
- businessId: businessId,
19346
19338
  transactionId: transactionId
19347
19339
  }, opts.hyperMediaEndpoint);
19348
19340
  return _context50.abrupt("return", request(_objectSpread$14({}, opts, {
19349
- path: pathBusinessTransactionRefund(businessId, transactionId)
19341
+ path: pathTransactionPaymentLink(transactionId)
19350
19342
  }), {
19351
- method: 'post',
19352
- data: body
19343
+ method: 'get'
19353
19344
  }));
19354
19345
 
19355
19346
  case 3:
@@ -19360,19 +19351,20 @@ var refundByBusiness = /*#__PURE__*/function () {
19360
19351
  }, _callee50);
19361
19352
  }));
19362
19353
 
19363
- return function refundByBusiness(_x163, _x164, _x165, _x166) {
19354
+ return function getPaymentLink(_x163, _x164) {
19364
19355
  return _ref50.apply(this, arguments);
19365
19356
  };
19366
19357
  }();
19367
19358
  /**
19368
19359
  * Refund transaction
19360
+ * @param {String} businessId - BusinessId
19369
19361
  * @param {String} transactionId - TransactionId
19370
19362
  * @param {Object} body - Request body
19371
19363
  * @param {Object} opts - Additional options
19372
19364
  */
19373
19365
 
19374
- var refund = /*#__PURE__*/function () {
19375
- var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(transactionId, body, opts) {
19366
+ var refundByBusiness = /*#__PURE__*/function () {
19367
+ var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(businessId, transactionId, body, opts) {
19376
19368
  return _regeneratorRuntime.wrap(function _callee51$(_context51) {
19377
19369
  while (1) {
19378
19370
  switch (_context51.prev = _context51.next) {
@@ -19382,10 +19374,11 @@ var refund = /*#__PURE__*/function () {
19382
19374
  }
19383
19375
 
19384
19376
  doesParamExist.default({
19377
+ businessId: businessId,
19385
19378
  transactionId: transactionId
19386
19379
  }, opts.hyperMediaEndpoint);
19387
19380
  return _context51.abrupt("return", request(_objectSpread$14({}, opts, {
19388
- path: pathTransactionRefund(transactionId)
19381
+ path: pathBusinessTransactionRefund(businessId, transactionId)
19389
19382
  }), {
19390
19383
  method: 'post',
19391
19384
  data: body
@@ -19399,19 +19392,19 @@ var refund = /*#__PURE__*/function () {
19399
19392
  }, _callee51);
19400
19393
  }));
19401
19394
 
19402
- return function refund(_x167, _x168, _x169) {
19395
+ return function refundByBusiness(_x165, _x166, _x167, _x168) {
19403
19396
  return _ref51.apply(this, arguments);
19404
19397
  };
19405
19398
  }();
19406
19399
  /**
19407
- * Save invoice as draft
19408
- * @param {String} businessId - BusinessId
19400
+ * Refund transaction
19401
+ * @param {String} transactionId - TransactionId
19409
19402
  * @param {Object} body - Request body
19410
19403
  * @param {Object} opts - Additional options
19411
19404
  */
19412
19405
 
19413
- var saveDraft = /*#__PURE__*/function () {
19414
- var _ref52 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(businessId, body, opts) {
19406
+ var refund = /*#__PURE__*/function () {
19407
+ var _ref52 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(transactionId, body, opts) {
19415
19408
  return _regeneratorRuntime.wrap(function _callee52$(_context52) {
19416
19409
  while (1) {
19417
19410
  switch (_context52.prev = _context52.next) {
@@ -19421,10 +19414,10 @@ var saveDraft = /*#__PURE__*/function () {
19421
19414
  }
19422
19415
 
19423
19416
  doesParamExist.default({
19424
- businessId: businessId
19417
+ transactionId: transactionId
19425
19418
  }, opts.hyperMediaEndpoint);
19426
19419
  return _context52.abrupt("return", request(_objectSpread$14({}, opts, {
19427
- path: pathCreateDraft(businessId)
19420
+ path: pathTransactionRefund(transactionId)
19428
19421
  }), {
19429
19422
  method: 'post',
19430
19423
  data: body
@@ -19438,19 +19431,19 @@ var saveDraft = /*#__PURE__*/function () {
19438
19431
  }, _callee52);
19439
19432
  }));
19440
19433
 
19441
- return function saveDraft(_x170, _x171, _x172) {
19434
+ return function refund(_x169, _x170, _x171) {
19442
19435
  return _ref52.apply(this, arguments);
19443
19436
  };
19444
19437
  }();
19445
19438
  /**
19446
- * Convert draft to an invoice
19447
- * @param {String} transactionId - Transaction ID
19439
+ * Save invoice as draft
19440
+ * @param {String} businessId - BusinessId
19448
19441
  * @param {Object} body - Request body
19449
19442
  * @param {Object} opts - Additional options
19450
19443
  */
19451
19444
 
19452
- var convertDraft = /*#__PURE__*/function () {
19453
- var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(transactionId, body, opts) {
19445
+ var saveDraft = /*#__PURE__*/function () {
19446
+ var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(businessId, body, opts) {
19454
19447
  return _regeneratorRuntime.wrap(function _callee53$(_context53) {
19455
19448
  while (1) {
19456
19449
  switch (_context53.prev = _context53.next) {
@@ -19460,10 +19453,10 @@ var convertDraft = /*#__PURE__*/function () {
19460
19453
  }
19461
19454
 
19462
19455
  doesParamExist.default({
19463
- transactionId: transactionId
19456
+ businessId: businessId
19464
19457
  }, opts.hyperMediaEndpoint);
19465
19458
  return _context53.abrupt("return", request(_objectSpread$14({}, opts, {
19466
- path: pathConvertDraft(transactionId)
19459
+ path: pathCreateDraft(businessId)
19467
19460
  }), {
19468
19461
  method: 'post',
19469
19462
  data: body
@@ -19477,18 +19470,19 @@ var convertDraft = /*#__PURE__*/function () {
19477
19470
  }, _callee53);
19478
19471
  }));
19479
19472
 
19480
- return function convertDraft(_x173, _x174, _x175) {
19473
+ return function saveDraft(_x172, _x173, _x174) {
19481
19474
  return _ref53.apply(this, arguments);
19482
19475
  };
19483
19476
  }();
19484
19477
  /**
19485
- * Archive an invoice
19478
+ * Convert draft to an invoice
19486
19479
  * @param {String} transactionId - Transaction ID
19480
+ * @param {Object} body - Request body
19487
19481
  * @param {Object} opts - Additional options
19488
19482
  */
19489
19483
 
19490
- var archive = /*#__PURE__*/function () {
19491
- var _ref54 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(transactionId, opts) {
19484
+ var convertDraft = /*#__PURE__*/function () {
19485
+ var _ref54 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(transactionId, body, opts) {
19492
19486
  return _regeneratorRuntime.wrap(function _callee54$(_context54) {
19493
19487
  while (1) {
19494
19488
  switch (_context54.prev = _context54.next) {
@@ -19501,9 +19495,10 @@ var archive = /*#__PURE__*/function () {
19501
19495
  transactionId: transactionId
19502
19496
  }, opts.hyperMediaEndpoint);
19503
19497
  return _context54.abrupt("return", request(_objectSpread$14({}, opts, {
19504
- path: pathTransactionArchives(transactionId)
19498
+ path: pathConvertDraft(transactionId)
19505
19499
  }), {
19506
- method: 'put'
19500
+ method: 'post',
19501
+ data: body
19507
19502
  }));
19508
19503
 
19509
19504
  case 3:
@@ -19514,17 +19509,17 @@ var archive = /*#__PURE__*/function () {
19514
19509
  }, _callee54);
19515
19510
  }));
19516
19511
 
19517
- return function archive(_x176, _x177) {
19512
+ return function convertDraft(_x175, _x176, _x177) {
19518
19513
  return _ref54.apply(this, arguments);
19519
19514
  };
19520
19515
  }();
19521
19516
  /**
19522
- * Unarchive an invoice
19517
+ * Archive an invoice
19523
19518
  * @param {String} transactionId - Transaction ID
19524
19519
  * @param {Object} opts - Additional options
19525
19520
  */
19526
19521
 
19527
- var unarchive = /*#__PURE__*/function () {
19522
+ var archive = /*#__PURE__*/function () {
19528
19523
  var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(transactionId, opts) {
19529
19524
  return _regeneratorRuntime.wrap(function _callee55$(_context55) {
19530
19525
  while (1) {
@@ -19538,7 +19533,7 @@ var unarchive = /*#__PURE__*/function () {
19538
19533
  transactionId: transactionId
19539
19534
  }, opts.hyperMediaEndpoint);
19540
19535
  return _context55.abrupt("return", request(_objectSpread$14({}, opts, {
19541
- path: pathTransactionUnarchives(transactionId)
19536
+ path: pathTransactionArchives(transactionId)
19542
19537
  }), {
19543
19538
  method: 'put'
19544
19539
  }));
@@ -19551,19 +19546,18 @@ var unarchive = /*#__PURE__*/function () {
19551
19546
  }, _callee55);
19552
19547
  }));
19553
19548
 
19554
- return function unarchive(_x178, _x179) {
19549
+ return function archive(_x178, _x179) {
19555
19550
  return _ref55.apply(this, arguments);
19556
19551
  };
19557
19552
  }();
19558
19553
  /**
19559
- * Send terminal input
19554
+ * Unarchive an invoice
19560
19555
  * @param {String} transactionId - Transaction ID
19561
- * @param {Object} body - Request body
19562
19556
  * @param {Object} opts - Additional options
19563
19557
  */
19564
19558
 
19565
- var terminalInput = /*#__PURE__*/function () {
19566
- var _ref56 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(transactionId, body, opts) {
19559
+ var unarchive = /*#__PURE__*/function () {
19560
+ var _ref56 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(transactionId, opts) {
19567
19561
  return _regeneratorRuntime.wrap(function _callee56$(_context56) {
19568
19562
  while (1) {
19569
19563
  switch (_context56.prev = _context56.next) {
@@ -19576,10 +19570,9 @@ var terminalInput = /*#__PURE__*/function () {
19576
19570
  transactionId: transactionId
19577
19571
  }, opts.hyperMediaEndpoint);
19578
19572
  return _context56.abrupt("return", request(_objectSpread$14({}, opts, {
19579
- path: pathTransactionTerminalInput(transactionId)
19573
+ path: pathTransactionUnarchives(transactionId)
19580
19574
  }), {
19581
- method: 'post',
19582
- data: body
19575
+ method: 'put'
19583
19576
  }));
19584
19577
 
19585
19578
  case 3:
@@ -19590,18 +19583,18 @@ var terminalInput = /*#__PURE__*/function () {
19590
19583
  }, _callee56);
19591
19584
  }));
19592
19585
 
19593
- return function terminalInput(_x180, _x181, _x182) {
19586
+ return function unarchive(_x180, _x181) {
19594
19587
  return _ref56.apply(this, arguments);
19595
19588
  };
19596
19589
  }();
19597
19590
  /**
19598
- * Send terminal cancellation
19591
+ * Send terminal input
19599
19592
  * @param {String} transactionId - Transaction ID
19600
19593
  * @param {Object} body - Request body
19601
19594
  * @param {Object} opts - Additional options
19602
19595
  */
19603
19596
 
19604
- var terminalCancellation = /*#__PURE__*/function () {
19597
+ var terminalInput = /*#__PURE__*/function () {
19605
19598
  var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(transactionId, body, opts) {
19606
19599
  return _regeneratorRuntime.wrap(function _callee57$(_context57) {
19607
19600
  while (1) {
@@ -19615,7 +19608,7 @@ var terminalCancellation = /*#__PURE__*/function () {
19615
19608
  transactionId: transactionId
19616
19609
  }, opts.hyperMediaEndpoint);
19617
19610
  return _context57.abrupt("return", request(_objectSpread$14({}, opts, {
19618
- path: pathTransactionTerminalCancel(transactionId)
19611
+ path: pathTransactionTerminalInput(transactionId)
19619
19612
  }), {
19620
19613
  method: 'post',
19621
19614
  data: body
@@ -19629,20 +19622,19 @@ var terminalCancellation = /*#__PURE__*/function () {
19629
19622
  }, _callee57);
19630
19623
  }));
19631
19624
 
19632
- return function terminalCancellation(_x183, _x184, _x185) {
19625
+ return function terminalInput(_x182, _x183, _x184) {
19633
19626
  return _ref57.apply(this, arguments);
19634
19627
  };
19635
19628
  }();
19636
19629
  /**
19637
- * Refund transaction's payment
19638
- * @param {String} transactionId - TransactionId
19639
- * @param {String} paymentId - PaymentId
19630
+ * Send terminal cancellation
19631
+ * @param {String} transactionId - Transaction ID
19640
19632
  * @param {Object} body - Request body
19641
19633
  * @param {Object} opts - Additional options
19642
19634
  */
19643
19635
 
19644
- var refundPayment = /*#__PURE__*/function () {
19645
- var _ref58 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(transactionId, paymentId, body, opts) {
19636
+ var terminalCancellation = /*#__PURE__*/function () {
19637
+ var _ref58 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(transactionId, body, opts) {
19646
19638
  return _regeneratorRuntime.wrap(function _callee58$(_context58) {
19647
19639
  while (1) {
19648
19640
  switch (_context58.prev = _context58.next) {
@@ -19655,7 +19647,7 @@ var refundPayment = /*#__PURE__*/function () {
19655
19647
  transactionId: transactionId
19656
19648
  }, opts.hyperMediaEndpoint);
19657
19649
  return _context58.abrupt("return", request(_objectSpread$14({}, opts, {
19658
- path: pathTransactionPaymentRefund(transactionId, paymentId)
19650
+ path: pathTransactionTerminalCancel(transactionId)
19659
19651
  }), {
19660
19652
  method: 'post',
19661
19653
  data: body
@@ -19669,18 +19661,20 @@ var refundPayment = /*#__PURE__*/function () {
19669
19661
  }, _callee58);
19670
19662
  }));
19671
19663
 
19672
- return function refundPayment(_x186, _x187, _x188, _x189) {
19664
+ return function terminalCancellation(_x185, _x186, _x187) {
19673
19665
  return _ref58.apply(this, arguments);
19674
19666
  };
19675
19667
  }();
19676
19668
  /**
19677
- * Create ECLIPSE invoice - In Patient
19669
+ * Refund transaction's payment
19670
+ * @param {String} transactionId - TransactionId
19671
+ * @param {String} paymentId - PaymentId
19678
19672
  * @param {Object} body - Request body
19679
19673
  * @param {Object} opts - Additional options
19680
19674
  */
19681
19675
 
19682
- var createEclipseInPatientInvoice = /*#__PURE__*/function () {
19683
- var _ref59 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(body, opts) {
19676
+ var refundPayment = /*#__PURE__*/function () {
19677
+ var _ref59 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(transactionId, paymentId, body, opts) {
19684
19678
  return _regeneratorRuntime.wrap(function _callee59$(_context59) {
19685
19679
  while (1) {
19686
19680
  switch (_context59.prev = _context59.next) {
@@ -19689,14 +19683,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
19689
19683
  opts = {};
19690
19684
  }
19691
19685
 
19686
+ doesParamExist.default({
19687
+ transactionId: transactionId
19688
+ }, opts.hyperMediaEndpoint);
19692
19689
  return _context59.abrupt("return", request(_objectSpread$14({}, opts, {
19693
- path: pathCreateEclipseInPatientInvoice()
19690
+ path: pathTransactionPaymentRefund(transactionId, paymentId)
19694
19691
  }), {
19695
19692
  method: 'post',
19696
19693
  data: body
19697
19694
  }));
19698
19695
 
19699
- case 2:
19696
+ case 3:
19700
19697
  case "end":
19701
19698
  return _context59.stop();
19702
19699
  }
@@ -19704,17 +19701,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
19704
19701
  }, _callee59);
19705
19702
  }));
19706
19703
 
19707
- return function createEclipseInPatientInvoice(_x190, _x191) {
19704
+ return function refundPayment(_x188, _x189, _x190, _x191) {
19708
19705
  return _ref59.apply(this, arguments);
19709
19706
  };
19710
19707
  }();
19711
19708
  /**
19712
- * Create ECLIPSE invoice - Overseas
19709
+ * Create ECLIPSE invoice - In Patient
19713
19710
  * @param {Object} body - Request body
19714
19711
  * @param {Object} opts - Additional options
19715
19712
  */
19716
19713
 
19717
- var createEclipseOverseasInvoice = /*#__PURE__*/function () {
19714
+ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
19718
19715
  var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(body, opts) {
19719
19716
  return _regeneratorRuntime.wrap(function _callee60$(_context60) {
19720
19717
  while (1) {
@@ -19725,7 +19722,7 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
19725
19722
  }
19726
19723
 
19727
19724
  return _context60.abrupt("return", request(_objectSpread$14({}, opts, {
19728
- path: pathCreateEclipseOverseasInvoice()
19725
+ path: pathCreateEclipseInPatientInvoice()
19729
19726
  }), {
19730
19727
  method: 'post',
19731
19728
  data: body
@@ -19739,17 +19736,17 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
19739
19736
  }, _callee60);
19740
19737
  }));
19741
19738
 
19742
- return function createEclipseOverseasInvoice(_x192, _x193) {
19739
+ return function createEclipseInPatientInvoice(_x192, _x193) {
19743
19740
  return _ref60.apply(this, arguments);
19744
19741
  };
19745
19742
  }();
19746
19743
  /**
19747
- * Create ECLIPSE invoice - Online Eligibility Check
19744
+ * Create ECLIPSE invoice - Overseas
19748
19745
  * @param {Object} body - Request body
19749
19746
  * @param {Object} opts - Additional options
19750
19747
  */
19751
19748
 
19752
- var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
19749
+ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
19753
19750
  var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(body, opts) {
19754
19751
  return _regeneratorRuntime.wrap(function _callee61$(_context61) {
19755
19752
  while (1) {
@@ -19760,7 +19757,7 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
19760
19757
  }
19761
19758
 
19762
19759
  return _context61.abrupt("return", request(_objectSpread$14({}, opts, {
19763
- path: pathCreateEclipseOnlineEligibilityCheckInvoice()
19760
+ path: pathCreateEclipseOverseasInvoice()
19764
19761
  }), {
19765
19762
  method: 'post',
19766
19763
  data: body
@@ -19774,10 +19771,45 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
19774
19771
  }, _callee61);
19775
19772
  }));
19776
19773
 
19777
- return function createEclipseOnlineEligibilityCheckInvoice(_x194, _x195) {
19774
+ return function createEclipseOverseasInvoice(_x194, _x195) {
19778
19775
  return _ref61.apply(this, arguments);
19779
19776
  };
19780
19777
  }();
19778
+ /**
19779
+ * Create ECLIPSE invoice - Online Eligibility Check
19780
+ * @param {Object} body - Request body
19781
+ * @param {Object} opts - Additional options
19782
+ */
19783
+
19784
+ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
19785
+ var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(body, opts) {
19786
+ return _regeneratorRuntime.wrap(function _callee62$(_context62) {
19787
+ while (1) {
19788
+ switch (_context62.prev = _context62.next) {
19789
+ case 0:
19790
+ if (opts === void 0) {
19791
+ opts = {};
19792
+ }
19793
+
19794
+ return _context62.abrupt("return", request(_objectSpread$14({}, opts, {
19795
+ path: pathCreateEclipseOnlineEligibilityCheckInvoice()
19796
+ }), {
19797
+ method: 'post',
19798
+ data: body
19799
+ }));
19800
+
19801
+ case 2:
19802
+ case "end":
19803
+ return _context62.stop();
19804
+ }
19805
+ }
19806
+ }, _callee62);
19807
+ }));
19808
+
19809
+ return function createEclipseOnlineEligibilityCheckInvoice(_x196, _x197) {
19810
+ return _ref62.apply(this, arguments);
19811
+ };
19812
+ }();
19781
19813
  /**
19782
19814
  * Get business ECLIPSE transaction payment report
19783
19815
  * @param {String} businessId - Business ID
@@ -19786,10 +19818,10 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
19786
19818
  */
19787
19819
 
19788
19820
  var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
19789
- var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(businessId, transactionId, query, opts) {
19790
- return _regeneratorRuntime.wrap(function _callee62$(_context62) {
19821
+ var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(businessId, transactionId, query, opts) {
19822
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
19791
19823
  while (1) {
19792
- switch (_context62.prev = _context62.next) {
19824
+ switch (_context63.prev = _context63.next) {
19793
19825
  case 0:
19794
19826
  if (opts === void 0) {
19795
19827
  opts = {};
@@ -19799,7 +19831,7 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
19799
19831
  businessId: businessId,
19800
19832
  transactionId: transactionId
19801
19833
  }, opts.hyperMediaEndpoint);
19802
- return _context62.abrupt("return", request(_objectSpread$14({}, opts, {
19834
+ return _context63.abrupt("return", request(_objectSpread$14({}, opts, {
19803
19835
  path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
19804
19836
  }), {
19805
19837
  method: 'get',
@@ -19808,14 +19840,14 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
19808
19840
 
19809
19841
  case 3:
19810
19842
  case "end":
19811
- return _context62.stop();
19843
+ return _context63.stop();
19812
19844
  }
19813
19845
  }
19814
- }, _callee62);
19846
+ }, _callee63);
19815
19847
  }));
19816
19848
 
19817
- return function getBusinessEclipseTransactionPaymentReport(_x196, _x197, _x198, _x199) {
19818
- return _ref62.apply(this, arguments);
19849
+ return function getBusinessEclipseTransactionPaymentReport(_x198, _x199, _x200, _x201) {
19850
+ return _ref63.apply(this, arguments);
19819
19851
  };
19820
19852
  }();
19821
19853
  /**
@@ -19826,10 +19858,10 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
19826
19858
  */
19827
19859
 
19828
19860
  var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
19829
- var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(businessId, transactionId, query, opts) {
19830
- return _regeneratorRuntime.wrap(function _callee63$(_context63) {
19861
+ var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(businessId, transactionId, query, opts) {
19862
+ return _regeneratorRuntime.wrap(function _callee64$(_context64) {
19831
19863
  while (1) {
19832
- switch (_context63.prev = _context63.next) {
19864
+ switch (_context64.prev = _context64.next) {
19833
19865
  case 0:
19834
19866
  if (opts === void 0) {
19835
19867
  opts = {};
@@ -19839,7 +19871,7 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
19839
19871
  businessId: businessId,
19840
19872
  transactionId: transactionId
19841
19873
  }, opts.hyperMediaEndpoint);
19842
- return _context63.abrupt("return", request(_objectSpread$14({}, opts, {
19874
+ return _context64.abrupt("return", request(_objectSpread$14({}, opts, {
19843
19875
  path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
19844
19876
  }), {
19845
19877
  method: 'get',
@@ -19848,14 +19880,14 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
19848
19880
 
19849
19881
  case 3:
19850
19882
  case "end":
19851
- return _context63.stop();
19883
+ return _context64.stop();
19852
19884
  }
19853
19885
  }
19854
- }, _callee63);
19886
+ }, _callee64);
19855
19887
  }));
19856
19888
 
19857
- return function getBusinessEclipseTransactionProcessingReport(_x200, _x201, _x202, _x203) {
19858
- return _ref63.apply(this, arguments);
19889
+ return function getBusinessEclipseTransactionProcessingReport(_x202, _x203, _x204, _x205) {
19890
+ return _ref64.apply(this, arguments);
19859
19891
  };
19860
19892
  }();
19861
19893
  /**
@@ -19866,10 +19898,10 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
19866
19898
  */
19867
19899
 
19868
19900
  var reconcileClaim = /*#__PURE__*/function () {
19869
- var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(transactionId, claimId, opts) {
19870
- return _regeneratorRuntime.wrap(function _callee64$(_context64) {
19901
+ var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(transactionId, claimId, opts) {
19902
+ return _regeneratorRuntime.wrap(function _callee65$(_context65) {
19871
19903
  while (1) {
19872
- switch (_context64.prev = _context64.next) {
19904
+ switch (_context65.prev = _context65.next) {
19873
19905
  case 0:
19874
19906
  if (opts === void 0) {
19875
19907
  opts = {};
@@ -19878,7 +19910,7 @@ var reconcileClaim = /*#__PURE__*/function () {
19878
19910
  doesParamExist.default({
19879
19911
  transactionId: transactionId
19880
19912
  }, opts.hyperMediaEndpoint);
19881
- return _context64.abrupt("return", request(_objectSpread$14({}, opts, {
19913
+ return _context65.abrupt("return", request(_objectSpread$14({}, opts, {
19882
19914
  path: pathReconcileClaim(transactionId, claimId)
19883
19915
  }), {
19884
19916
  method: 'post'
@@ -19886,14 +19918,14 @@ var reconcileClaim = /*#__PURE__*/function () {
19886
19918
 
19887
19919
  case 3:
19888
19920
  case "end":
19889
- return _context64.stop();
19921
+ return _context65.stop();
19890
19922
  }
19891
19923
  }
19892
- }, _callee64);
19924
+ }, _callee65);
19893
19925
  }));
19894
19926
 
19895
- return function reconcileClaim(_x204, _x205, _x206) {
19896
- return _ref64.apply(this, arguments);
19927
+ return function reconcileClaim(_x206, _x207, _x208) {
19928
+ return _ref65.apply(this, arguments);
19897
19929
  };
19898
19930
  }();
19899
19931
 
@@ -19928,6 +19960,7 @@ var transactions = /*#__PURE__*/Object.freeze({
19928
19960
  getTransactionByTransactionId: getTransactionByTransactionId,
19929
19961
  getTransactionPDF: getTransactionPDF,
19930
19962
  getTransactionClaimPDF: getTransactionClaimPDF,
19963
+ getEclipseTransactionClaimPDF: getEclipseTransactionClaimPDF,
19931
19964
  replyToQuote: replyToQuote,
19932
19965
  sendReceipt: sendReceipt$1,
19933
19966
  submitInvoice: submitInvoice,
@@ -22150,6 +22183,7 @@ exports.getDeviceId = getDeviceId;
22150
22183
  exports.getDocAccount = getDocAccount;
22151
22184
  exports.getDocAccounts = getDocAccounts;
22152
22185
  exports.getDraftProgressStatus = getDraftProgressStatus;
22186
+ exports.getEclipseTransactionClaimPDF = getEclipseTransactionClaimPDF;
22153
22187
  exports.getFunder = getFunder;
22154
22188
  exports.getFunders = getFunders;
22155
22189
  exports.getFuture = getFuture;