@medipass/web-sdk 11.37.1 → 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.
- package/lib/index.js +1 -1
- package/lib/resources/accounts.js +1 -1
- package/lib/resources/actions.js +1 -1
- package/lib/resources/api-keys.js +1 -1
- package/lib/resources/applications.js +1 -1
- package/lib/resources/attachments.js +1 -1
- package/lib/resources/auth.js +1 -1
- package/lib/resources/bulk-submits.js +1 -1
- package/lib/resources/bulk-uploads.js +1 -1
- package/lib/resources/business-profiles.js +1 -1
- package/lib/resources/businesses.js +1 -1
- package/lib/resources/claim-items.js +1 -1
- package/lib/resources/devices.js +1 -1
- package/lib/resources/doc-accounts.js +1 -1
- package/lib/resources/documents.js +1 -1
- package/lib/resources/emails.js +1 -1
- package/lib/resources/form-application-templates.js +1 -1
- package/lib/resources/form-applications.js +1 -1
- package/lib/resources/forms.js +1 -1
- package/lib/resources/funder-services.js +1 -1
- package/lib/resources/funder-settings.js +1 -1
- package/lib/resources/funders.js +1 -1
- package/lib/resources/futures.js +1 -1
- package/lib/resources/health-fund-accounts.js +1 -1
- package/lib/resources/health-fund-settings.js +1 -1
- package/lib/resources/healthfunds.js +1 -1
- package/lib/resources/icditems.js +1 -1
- package/lib/resources/invoice-scans.js +1 -1
- package/lib/resources/jhcs.js +1 -1
- package/lib/resources/kyc.js +1 -1
- package/lib/resources/logs.js +1 -1
- package/lib/resources/members.js +1 -1
- package/lib/resources/message-mappings.js +1 -1
- package/lib/resources/minions.js +1 -1
- package/lib/resources/modalities.js +1 -1
- package/lib/resources/notes.js +1 -1
- package/lib/resources/onboarding-applications.js +1 -1
- package/lib/resources/onboarding-requests.js +1 -1
- package/lib/resources/ops.js +1 -1
- package/lib/resources/organisations.js +1 -1
- package/lib/resources/partners.js +1 -1
- package/lib/resources/patients.js +1 -1
- package/lib/resources/payments.js +1 -1
- package/lib/resources/pms.js +1 -1
- package/lib/resources/practice-profiles.js +1 -1
- package/lib/resources/practice-types.js +1 -1
- package/lib/resources/practices.js +1 -1
- package/lib/resources/products.js +1 -1
- package/lib/resources/professional-categories.js +1 -1
- package/lib/resources/provider-number-types.js +1 -1
- package/lib/resources/provider-registration-types.js +1 -1
- package/lib/resources/provider-requests.js +1 -1
- package/lib/resources/provider-types.js +1 -1
- package/lib/resources/ref-sources.js +1 -1
- package/lib/resources/risk.js +1 -1
- package/lib/resources/rnas.js +1 -1
- package/lib/resources/roles.js +1 -1
- package/lib/resources/self-checkout-sessions.js +1 -1
- package/lib/resources/services.js +1 -1
- package/lib/resources/settlements.js +1 -1
- package/lib/resources/sign-up.js +1 -1
- package/lib/resources/specialties.js +1 -1
- package/lib/resources/staff-profiles.js +1 -1
- package/lib/resources/staff.js +1 -1
- package/lib/resources/statistics.js +1 -1
- package/lib/resources/subscriptions.js +1 -1
- package/lib/resources/terminals.js +1 -1
- package/lib/resources/transaction-export.js +1 -1
- package/lib/resources/transactions.js +2 -1
- package/lib/resources/transactions.js.flow +15 -0
- package/lib/resources/triggers.js +1 -1
- package/lib/resources/vendors.js +1 -1
- package/lib/resources/verify.js +1 -1
- package/lib/resources/workers.js +1 -1
- package/lib/resources/workflow-exceptions.js +1 -1
- package/lib/services/aws.js +1 -1
- package/lib/services/version.js +1 -1
- package/lib/{staff-c2dd6168.js → staff-69f0293a.js} +266 -224
- package/lib/utils/application.js +1 -1
- package/lib/utils/professions.js +1 -1
- package/lib/utils/request.js +1 -1
- package/lib/utils/staff.js +1 -1
- package/package.json +2 -2
|
@@ -17292,6 +17292,8 @@ var pathTransactionClaimPdf = function pathTransactionClaimPdf(transactionId, cl
|
|
|
17292
17292
|
return "/transactions/" + transactionId + "/claims/" + claimId + "/pdf";
|
|
17293
17293
|
};
|
|
17294
17294
|
|
|
17295
|
+
var pathEclipseTransactionClaimPdf = '/transactions/pdfs';
|
|
17296
|
+
|
|
17295
17297
|
var pathTransactionPays = function pathTransactionPays(transactionId) {
|
|
17296
17298
|
return "/transactions/" + transactionId + "/pays";
|
|
17297
17299
|
};
|
|
@@ -18537,14 +18539,15 @@ var getTransactionClaimPDF = /*#__PURE__*/function () {
|
|
|
18537
18539
|
};
|
|
18538
18540
|
}();
|
|
18539
18541
|
/**
|
|
18540
|
-
*
|
|
18541
|
-
*
|
|
18542
|
+
* TODO: Use this endpoint for all funder claims, once it's supported in the API
|
|
18543
|
+
*
|
|
18544
|
+
* Get Eclipse transaction claim PDF
|
|
18542
18545
|
* @param {Object} body - Request body
|
|
18543
18546
|
* @param {Object} opts - Additional options
|
|
18544
18547
|
*/
|
|
18545
18548
|
|
|
18546
|
-
var
|
|
18547
|
-
var _ref30 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(
|
|
18549
|
+
var getEclipseTransactionClaimPDF = /*#__PURE__*/function () {
|
|
18550
|
+
var _ref30 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(body, opts) {
|
|
18548
18551
|
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
18549
18552
|
while (1) {
|
|
18550
18553
|
switch (_context30.prev = _context30.next) {
|
|
@@ -18553,17 +18556,15 @@ var replyToQuote = /*#__PURE__*/function () {
|
|
|
18553
18556
|
opts = {};
|
|
18554
18557
|
}
|
|
18555
18558
|
|
|
18556
|
-
doesParamExist.default({
|
|
18557
|
-
transactionId: transactionId
|
|
18558
|
-
}, opts.hyperMediaEndpoint);
|
|
18559
18559
|
return _context30.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18560
|
-
path:
|
|
18560
|
+
path: pathEclipseTransactionClaimPdf
|
|
18561
18561
|
}), {
|
|
18562
18562
|
method: 'post',
|
|
18563
|
-
data: body
|
|
18563
|
+
data: body,
|
|
18564
|
+
responseType: 'arraybuffer'
|
|
18564
18565
|
}));
|
|
18565
18566
|
|
|
18566
|
-
case
|
|
18567
|
+
case 2:
|
|
18567
18568
|
case "end":
|
|
18568
18569
|
return _context30.stop();
|
|
18569
18570
|
}
|
|
@@ -18571,18 +18572,18 @@ var replyToQuote = /*#__PURE__*/function () {
|
|
|
18571
18572
|
}, _callee30);
|
|
18572
18573
|
}));
|
|
18573
18574
|
|
|
18574
|
-
return function
|
|
18575
|
+
return function getEclipseTransactionClaimPDF(_x102, _x103) {
|
|
18575
18576
|
return _ref30.apply(this, arguments);
|
|
18576
18577
|
};
|
|
18577
18578
|
}();
|
|
18578
18579
|
/**
|
|
18579
|
-
*
|
|
18580
|
+
* Reply to a quote
|
|
18580
18581
|
* @param {String} transactionId - TransactionId
|
|
18581
18582
|
* @param {Object} body - Request body
|
|
18582
18583
|
* @param {Object} opts - Additional options
|
|
18583
18584
|
*/
|
|
18584
18585
|
|
|
18585
|
-
var
|
|
18586
|
+
var replyToQuote = /*#__PURE__*/function () {
|
|
18586
18587
|
var _ref31 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(transactionId, body, opts) {
|
|
18587
18588
|
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
18588
18589
|
while (1) {
|
|
@@ -18596,7 +18597,7 @@ var sendReceipt$1 = /*#__PURE__*/function () {
|
|
|
18596
18597
|
transactionId: transactionId
|
|
18597
18598
|
}, opts.hyperMediaEndpoint);
|
|
18598
18599
|
return _context31.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18599
|
-
path:
|
|
18600
|
+
path: pathReplyQuote(transactionId)
|
|
18600
18601
|
}), {
|
|
18601
18602
|
method: 'post',
|
|
18602
18603
|
data: body
|
|
@@ -18610,18 +18611,18 @@ var sendReceipt$1 = /*#__PURE__*/function () {
|
|
|
18610
18611
|
}, _callee31);
|
|
18611
18612
|
}));
|
|
18612
18613
|
|
|
18613
|
-
return function
|
|
18614
|
+
return function replyToQuote(_x104, _x105, _x106) {
|
|
18614
18615
|
return _ref31.apply(this, arguments);
|
|
18615
18616
|
};
|
|
18616
18617
|
}();
|
|
18617
18618
|
/**
|
|
18618
|
-
*
|
|
18619
|
+
* Send receipt
|
|
18619
18620
|
* @param {String} transactionId - TransactionId
|
|
18620
18621
|
* @param {Object} body - Request body
|
|
18621
18622
|
* @param {Object} opts - Additional options
|
|
18622
18623
|
*/
|
|
18623
18624
|
|
|
18624
|
-
var
|
|
18625
|
+
var sendReceipt$1 = /*#__PURE__*/function () {
|
|
18625
18626
|
var _ref32 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(transactionId, body, opts) {
|
|
18626
18627
|
return _regeneratorRuntime.wrap(function _callee32$(_context32) {
|
|
18627
18628
|
while (1) {
|
|
@@ -18635,7 +18636,7 @@ var submitInvoice = /*#__PURE__*/function () {
|
|
|
18635
18636
|
transactionId: transactionId
|
|
18636
18637
|
}, opts.hyperMediaEndpoint);
|
|
18637
18638
|
return _context32.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18638
|
-
path:
|
|
18639
|
+
path: pathTransactionSendReceipt(transactionId)
|
|
18639
18640
|
}), {
|
|
18640
18641
|
method: 'post',
|
|
18641
18642
|
data: body
|
|
@@ -18649,18 +18650,18 @@ var submitInvoice = /*#__PURE__*/function () {
|
|
|
18649
18650
|
}, _callee32);
|
|
18650
18651
|
}));
|
|
18651
18652
|
|
|
18652
|
-
return function
|
|
18653
|
+
return function sendReceipt(_x107, _x108, _x109) {
|
|
18653
18654
|
return _ref32.apply(this, arguments);
|
|
18654
18655
|
};
|
|
18655
18656
|
}();
|
|
18656
18657
|
/**
|
|
18657
|
-
*
|
|
18658
|
+
* Submit an invoice
|
|
18658
18659
|
* @param {String} transactionId - TransactionId
|
|
18659
18660
|
* @param {Object} body - Request body
|
|
18660
18661
|
* @param {Object} opts - Additional options
|
|
18661
18662
|
*/
|
|
18662
18663
|
|
|
18663
|
-
var
|
|
18664
|
+
var submitInvoice = /*#__PURE__*/function () {
|
|
18664
18665
|
var _ref33 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(transactionId, body, opts) {
|
|
18665
18666
|
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
18666
18667
|
while (1) {
|
|
@@ -18674,9 +18675,9 @@ var updateTransaction = /*#__PURE__*/function () {
|
|
|
18674
18675
|
transactionId: transactionId
|
|
18675
18676
|
}, opts.hyperMediaEndpoint);
|
|
18676
18677
|
return _context33.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18677
|
-
path: pathTransactionByTransactionId(transactionId)
|
|
18678
|
+
path: pathTransactionByTransactionId(transactionId) + "/submitinvoice"
|
|
18678
18679
|
}), {
|
|
18679
|
-
method: '
|
|
18680
|
+
method: 'post',
|
|
18680
18681
|
data: body
|
|
18681
18682
|
}));
|
|
18682
18683
|
|
|
@@ -18688,18 +18689,19 @@ var updateTransaction = /*#__PURE__*/function () {
|
|
|
18688
18689
|
}, _callee33);
|
|
18689
18690
|
}));
|
|
18690
18691
|
|
|
18691
|
-
return function
|
|
18692
|
+
return function submitInvoice(_x110, _x111, _x112) {
|
|
18692
18693
|
return _ref33.apply(this, arguments);
|
|
18693
18694
|
};
|
|
18694
18695
|
}();
|
|
18695
18696
|
/**
|
|
18696
|
-
*
|
|
18697
|
+
* Update transaction
|
|
18697
18698
|
* @param {String} transactionId - TransactionId
|
|
18699
|
+
* @param {Object} body - Request body
|
|
18698
18700
|
* @param {Object} opts - Additional options
|
|
18699
18701
|
*/
|
|
18700
18702
|
|
|
18701
|
-
var
|
|
18702
|
-
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) {
|
|
18703
18705
|
return _regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
18704
18706
|
while (1) {
|
|
18705
18707
|
switch (_context34.prev = _context34.next) {
|
|
@@ -18712,9 +18714,10 @@ var validateTransaction = /*#__PURE__*/function () {
|
|
|
18712
18714
|
transactionId: transactionId
|
|
18713
18715
|
}, opts.hyperMediaEndpoint);
|
|
18714
18716
|
return _context34.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18715
|
-
path:
|
|
18717
|
+
path: pathTransactionByTransactionId(transactionId)
|
|
18716
18718
|
}), {
|
|
18717
|
-
method: '
|
|
18719
|
+
method: 'put',
|
|
18720
|
+
data: body
|
|
18718
18721
|
}));
|
|
18719
18722
|
|
|
18720
18723
|
case 3:
|
|
@@ -18725,19 +18728,18 @@ var validateTransaction = /*#__PURE__*/function () {
|
|
|
18725
18728
|
}, _callee34);
|
|
18726
18729
|
}));
|
|
18727
18730
|
|
|
18728
|
-
return function
|
|
18731
|
+
return function updateTransaction(_x113, _x114, _x115) {
|
|
18729
18732
|
return _ref34.apply(this, arguments);
|
|
18730
18733
|
};
|
|
18731
18734
|
}();
|
|
18732
18735
|
/**
|
|
18733
|
-
*
|
|
18736
|
+
* Validate a transaction
|
|
18734
18737
|
* @param {String} transactionId - TransactionId
|
|
18735
|
-
* @param {Object} body - Request body
|
|
18736
18738
|
* @param {Object} opts - Additional options
|
|
18737
18739
|
*/
|
|
18738
18740
|
|
|
18739
|
-
var
|
|
18740
|
-
var _ref35 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(transactionId,
|
|
18741
|
+
var validateTransaction = /*#__PURE__*/function () {
|
|
18742
|
+
var _ref35 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(transactionId, opts) {
|
|
18741
18743
|
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
18742
18744
|
while (1) {
|
|
18743
18745
|
switch (_context35.prev = _context35.next) {
|
|
@@ -18750,10 +18752,9 @@ var submitTransactionBridgeClaim = /*#__PURE__*/function () {
|
|
|
18750
18752
|
transactionId: transactionId
|
|
18751
18753
|
}, opts.hyperMediaEndpoint);
|
|
18752
18754
|
return _context35.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18753
|
-
path:
|
|
18755
|
+
path: pathValidateTransaction(transactionId)
|
|
18754
18756
|
}), {
|
|
18755
|
-
method: 'post'
|
|
18756
|
-
data: body
|
|
18757
|
+
method: 'post'
|
|
18757
18758
|
}));
|
|
18758
18759
|
|
|
18759
18760
|
case 3:
|
|
@@ -18764,18 +18765,18 @@ var submitTransactionBridgeClaim = /*#__PURE__*/function () {
|
|
|
18764
18765
|
}, _callee35);
|
|
18765
18766
|
}));
|
|
18766
18767
|
|
|
18767
|
-
return function
|
|
18768
|
+
return function validateTransaction(_x116, _x117) {
|
|
18768
18769
|
return _ref35.apply(this, arguments);
|
|
18769
18770
|
};
|
|
18770
18771
|
}();
|
|
18771
18772
|
/**
|
|
18772
|
-
* Submits a Bridge's
|
|
18773
|
+
* Submits a Bridge's claim response to transaction
|
|
18773
18774
|
* @param {String} transactionId - TransactionId
|
|
18774
18775
|
* @param {Object} body - Request body
|
|
18775
18776
|
* @param {Object} opts - Additional options
|
|
18776
18777
|
*/
|
|
18777
18778
|
|
|
18778
|
-
var
|
|
18779
|
+
var submitTransactionBridgeClaim = /*#__PURE__*/function () {
|
|
18779
18780
|
var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(transactionId, body, opts) {
|
|
18780
18781
|
return _regeneratorRuntime.wrap(function _callee36$(_context36) {
|
|
18781
18782
|
while (1) {
|
|
@@ -18789,7 +18790,7 @@ var submitTransactionBridgePayment = /*#__PURE__*/function () {
|
|
|
18789
18790
|
transactionId: transactionId
|
|
18790
18791
|
}, opts.hyperMediaEndpoint);
|
|
18791
18792
|
return _context36.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18792
|
-
path:
|
|
18793
|
+
path: pathTransactionSubmitBridgeClaim(transactionId)
|
|
18793
18794
|
}), {
|
|
18794
18795
|
method: 'post',
|
|
18795
18796
|
data: body
|
|
@@ -18803,18 +18804,18 @@ var submitTransactionBridgePayment = /*#__PURE__*/function () {
|
|
|
18803
18804
|
}, _callee36);
|
|
18804
18805
|
}));
|
|
18805
18806
|
|
|
18806
|
-
return function
|
|
18807
|
+
return function submitTransactionBridgeClaim(_x118, _x119, _x120) {
|
|
18807
18808
|
return _ref36.apply(this, arguments);
|
|
18808
18809
|
};
|
|
18809
18810
|
}();
|
|
18810
18811
|
/**
|
|
18811
|
-
*
|
|
18812
|
+
* Submits a Bridge's payment response to transaction
|
|
18812
18813
|
* @param {String} transactionId - TransactionId
|
|
18813
18814
|
* @param {Object} body - Request body
|
|
18814
18815
|
* @param {Object} opts - Additional options
|
|
18815
18816
|
*/
|
|
18816
18817
|
|
|
18817
|
-
var
|
|
18818
|
+
var submitTransactionBridgePayment = /*#__PURE__*/function () {
|
|
18818
18819
|
var _ref37 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(transactionId, body, opts) {
|
|
18819
18820
|
return _regeneratorRuntime.wrap(function _callee37$(_context37) {
|
|
18820
18821
|
while (1) {
|
|
@@ -18828,7 +18829,7 @@ var triggerBridge = /*#__PURE__*/function () {
|
|
|
18828
18829
|
transactionId: transactionId
|
|
18829
18830
|
}, opts.hyperMediaEndpoint);
|
|
18830
18831
|
return _context37.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18831
|
-
path:
|
|
18832
|
+
path: pathTransactionSubmitBridgePayment(transactionId)
|
|
18832
18833
|
}), {
|
|
18833
18834
|
method: 'post',
|
|
18834
18835
|
data: body
|
|
@@ -18842,19 +18843,19 @@ var triggerBridge = /*#__PURE__*/function () {
|
|
|
18842
18843
|
}, _callee37);
|
|
18843
18844
|
}));
|
|
18844
18845
|
|
|
18845
|
-
return function
|
|
18846
|
+
return function submitTransactionBridgePayment(_x121, _x122, _x123) {
|
|
18846
18847
|
return _ref37.apply(this, arguments);
|
|
18847
18848
|
};
|
|
18848
18849
|
}();
|
|
18849
18850
|
/**
|
|
18850
|
-
*
|
|
18851
|
-
* @param {String}
|
|
18851
|
+
* Trigger's a bridge request for a transaction
|
|
18852
|
+
* @param {String} transactionId - TransactionId
|
|
18852
18853
|
* @param {Object} body - Request body
|
|
18853
18854
|
* @param {Object} opts - Additional options
|
|
18854
18855
|
*/
|
|
18855
18856
|
|
|
18856
|
-
var
|
|
18857
|
-
var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(
|
|
18857
|
+
var triggerBridge = /*#__PURE__*/function () {
|
|
18858
|
+
var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(transactionId, body, opts) {
|
|
18858
18859
|
return _regeneratorRuntime.wrap(function _callee38$(_context38) {
|
|
18859
18860
|
while (1) {
|
|
18860
18861
|
switch (_context38.prev = _context38.next) {
|
|
@@ -18864,10 +18865,10 @@ var createInvoice = /*#__PURE__*/function () {
|
|
|
18864
18865
|
}
|
|
18865
18866
|
|
|
18866
18867
|
doesParamExist.default({
|
|
18867
|
-
|
|
18868
|
+
transactionId: transactionId
|
|
18868
18869
|
}, opts.hyperMediaEndpoint);
|
|
18869
18870
|
return _context38.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18870
|
-
path:
|
|
18871
|
+
path: pathTransactionTriggerBridge(transactionId)
|
|
18871
18872
|
}), {
|
|
18872
18873
|
method: 'post',
|
|
18873
18874
|
data: body
|
|
@@ -18881,19 +18882,19 @@ var createInvoice = /*#__PURE__*/function () {
|
|
|
18881
18882
|
}, _callee38);
|
|
18882
18883
|
}));
|
|
18883
18884
|
|
|
18884
|
-
return function
|
|
18885
|
+
return function triggerBridge(_x124, _x125, _x126) {
|
|
18885
18886
|
return _ref38.apply(this, arguments);
|
|
18886
18887
|
};
|
|
18887
18888
|
}();
|
|
18888
18889
|
/**
|
|
18889
|
-
* Create
|
|
18890
|
-
* @param {String}
|
|
18890
|
+
* Create invoice
|
|
18891
|
+
* @param {String} businessId - BusinessId
|
|
18891
18892
|
* @param {Object} body - Request body
|
|
18892
18893
|
* @param {Object} opts - Additional options
|
|
18893
18894
|
*/
|
|
18894
18895
|
|
|
18895
|
-
var
|
|
18896
|
-
var _ref39 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(
|
|
18896
|
+
var createInvoice = /*#__PURE__*/function () {
|
|
18897
|
+
var _ref39 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(businessId, body, opts) {
|
|
18897
18898
|
return _regeneratorRuntime.wrap(function _callee39$(_context39) {
|
|
18898
18899
|
while (1) {
|
|
18899
18900
|
switch (_context39.prev = _context39.next) {
|
|
@@ -18903,10 +18904,10 @@ var createSendClaim = /*#__PURE__*/function () {
|
|
|
18903
18904
|
}
|
|
18904
18905
|
|
|
18905
18906
|
doesParamExist.default({
|
|
18906
|
-
|
|
18907
|
+
businessId: businessId
|
|
18907
18908
|
}, opts.hyperMediaEndpoint);
|
|
18908
18909
|
return _context39.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18909
|
-
path:
|
|
18910
|
+
path: pathCreateInvoice(businessId)
|
|
18910
18911
|
}), {
|
|
18911
18912
|
method: 'post',
|
|
18912
18913
|
data: body
|
|
@@ -18920,20 +18921,19 @@ var createSendClaim = /*#__PURE__*/function () {
|
|
|
18920
18921
|
}, _callee39);
|
|
18921
18922
|
}));
|
|
18922
18923
|
|
|
18923
|
-
return function
|
|
18924
|
+
return function createInvoice(_x127, _x128, _x129) {
|
|
18924
18925
|
return _ref39.apply(this, arguments);
|
|
18925
18926
|
};
|
|
18926
18927
|
}();
|
|
18927
18928
|
/**
|
|
18928
|
-
*
|
|
18929
|
+
* Create or send a claim
|
|
18929
18930
|
* @param {String} transactionId - TransactionId
|
|
18930
|
-
* @param {String} claimId - ClaimId
|
|
18931
18931
|
* @param {Object} body - Request body
|
|
18932
18932
|
* @param {Object} opts - Additional options
|
|
18933
18933
|
*/
|
|
18934
18934
|
|
|
18935
|
-
var
|
|
18936
|
-
var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(transactionId,
|
|
18935
|
+
var createSendClaim = /*#__PURE__*/function () {
|
|
18936
|
+
var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(transactionId, body, opts) {
|
|
18937
18937
|
return _regeneratorRuntime.wrap(function _callee40$(_context40) {
|
|
18938
18938
|
while (1) {
|
|
18939
18939
|
switch (_context40.prev = _context40.next) {
|
|
@@ -18943,13 +18943,12 @@ var updateClaim = /*#__PURE__*/function () {
|
|
|
18943
18943
|
}
|
|
18944
18944
|
|
|
18945
18945
|
doesParamExist.default({
|
|
18946
|
-
claimId: claimId,
|
|
18947
18946
|
transactionId: transactionId
|
|
18948
18947
|
}, opts.hyperMediaEndpoint);
|
|
18949
18948
|
return _context40.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18950
|
-
path:
|
|
18949
|
+
path: pathCreateSendClaim(transactionId)
|
|
18951
18950
|
}), {
|
|
18952
|
-
method: '
|
|
18951
|
+
method: 'post',
|
|
18953
18952
|
data: body
|
|
18954
18953
|
}));
|
|
18955
18954
|
|
|
@@ -18961,18 +18960,20 @@ var updateClaim = /*#__PURE__*/function () {
|
|
|
18961
18960
|
}, _callee40);
|
|
18962
18961
|
}));
|
|
18963
18962
|
|
|
18964
|
-
return function
|
|
18963
|
+
return function createSendClaim(_x130, _x131, _x132) {
|
|
18965
18964
|
return _ref40.apply(this, arguments);
|
|
18966
18965
|
};
|
|
18967
18966
|
}();
|
|
18968
18967
|
/**
|
|
18969
|
-
*
|
|
18968
|
+
* Update a claim
|
|
18970
18969
|
* @param {String} transactionId - TransactionId
|
|
18970
|
+
* @param {String} claimId - ClaimId
|
|
18971
|
+
* @param {Object} body - Request body
|
|
18971
18972
|
* @param {Object} opts - Additional options
|
|
18972
18973
|
*/
|
|
18973
18974
|
|
|
18974
|
-
var
|
|
18975
|
-
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) {
|
|
18976
18977
|
return _regeneratorRuntime.wrap(function _callee41$(_context41) {
|
|
18977
18978
|
while (1) {
|
|
18978
18979
|
switch (_context41.prev = _context41.next) {
|
|
@@ -18982,12 +18983,14 @@ var completeTransaction = /*#__PURE__*/function () {
|
|
|
18982
18983
|
}
|
|
18983
18984
|
|
|
18984
18985
|
doesParamExist.default({
|
|
18986
|
+
claimId: claimId,
|
|
18985
18987
|
transactionId: transactionId
|
|
18986
18988
|
}, opts.hyperMediaEndpoint);
|
|
18987
18989
|
return _context41.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
18988
|
-
path:
|
|
18990
|
+
path: pathClaim(transactionId, claimId)
|
|
18989
18991
|
}), {
|
|
18990
|
-
method: '
|
|
18992
|
+
method: 'put',
|
|
18993
|
+
data: body
|
|
18991
18994
|
}));
|
|
18992
18995
|
|
|
18993
18996
|
case 3:
|
|
@@ -18998,20 +19001,18 @@ var completeTransaction = /*#__PURE__*/function () {
|
|
|
18998
19001
|
}, _callee41);
|
|
18999
19002
|
}));
|
|
19000
19003
|
|
|
19001
|
-
return function
|
|
19004
|
+
return function updateClaim(_x133, _x134, _x135, _x136) {
|
|
19002
19005
|
return _ref41.apply(this, arguments);
|
|
19003
19006
|
};
|
|
19004
19007
|
}();
|
|
19005
19008
|
/**
|
|
19006
|
-
*
|
|
19009
|
+
* Complete a transaction
|
|
19007
19010
|
* @param {String} transactionId - TransactionId
|
|
19008
|
-
* @param {String} claimId - ClaimId
|
|
19009
|
-
* @param {Object} body - Request body
|
|
19010
19011
|
* @param {Object} opts - Additional options
|
|
19011
19012
|
*/
|
|
19012
19013
|
|
|
19013
|
-
var
|
|
19014
|
-
var _ref42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(transactionId,
|
|
19014
|
+
var completeTransaction = /*#__PURE__*/function () {
|
|
19015
|
+
var _ref42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(transactionId, opts) {
|
|
19015
19016
|
return _regeneratorRuntime.wrap(function _callee42$(_context42) {
|
|
19016
19017
|
while (1) {
|
|
19017
19018
|
switch (_context42.prev = _context42.next) {
|
|
@@ -19024,10 +19025,9 @@ var approveClaim = /*#__PURE__*/function () {
|
|
|
19024
19025
|
transactionId: transactionId
|
|
19025
19026
|
}, opts.hyperMediaEndpoint);
|
|
19026
19027
|
return _context42.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19027
|
-
path:
|
|
19028
|
+
path: pathCompleteTransaction(transactionId)
|
|
19028
19029
|
}), {
|
|
19029
|
-
method: 'post'
|
|
19030
|
-
data: body
|
|
19030
|
+
method: 'post'
|
|
19031
19031
|
}));
|
|
19032
19032
|
|
|
19033
19033
|
case 3:
|
|
@@ -19038,18 +19038,19 @@ var approveClaim = /*#__PURE__*/function () {
|
|
|
19038
19038
|
}, _callee42);
|
|
19039
19039
|
}));
|
|
19040
19040
|
|
|
19041
|
-
return function
|
|
19041
|
+
return function completeTransaction(_x137, _x138) {
|
|
19042
19042
|
return _ref42.apply(this, arguments);
|
|
19043
19043
|
};
|
|
19044
19044
|
}();
|
|
19045
19045
|
/**
|
|
19046
|
-
*
|
|
19047
|
-
* @param {String} transactionId -
|
|
19048
|
-
* @param {String} claimId -
|
|
19046
|
+
* Approves a claim
|
|
19047
|
+
* @param {String} transactionId - TransactionId
|
|
19048
|
+
* @param {String} claimId - ClaimId
|
|
19049
|
+
* @param {Object} body - Request body
|
|
19049
19050
|
* @param {Object} opts - Additional options
|
|
19050
19051
|
*/
|
|
19051
19052
|
|
|
19052
|
-
var
|
|
19053
|
+
var approveClaim = /*#__PURE__*/function () {
|
|
19053
19054
|
var _ref43 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(transactionId, claimId, body, opts) {
|
|
19054
19055
|
return _regeneratorRuntime.wrap(function _callee43$(_context43) {
|
|
19055
19056
|
while (1) {
|
|
@@ -19060,11 +19061,10 @@ var cancelClaim = /*#__PURE__*/function () {
|
|
|
19060
19061
|
}
|
|
19061
19062
|
|
|
19062
19063
|
doesParamExist.default({
|
|
19063
|
-
claimId: claimId,
|
|
19064
19064
|
transactionId: transactionId
|
|
19065
19065
|
}, opts.hyperMediaEndpoint);
|
|
19066
19066
|
return _context43.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19067
|
-
path:
|
|
19067
|
+
path: pathApproveClaim(transactionId, claimId)
|
|
19068
19068
|
}), {
|
|
19069
19069
|
method: 'post',
|
|
19070
19070
|
data: body
|
|
@@ -19078,19 +19078,18 @@ var cancelClaim = /*#__PURE__*/function () {
|
|
|
19078
19078
|
}, _callee43);
|
|
19079
19079
|
}));
|
|
19080
19080
|
|
|
19081
|
-
return function
|
|
19081
|
+
return function approveClaim(_x139, _x140, _x141, _x142) {
|
|
19082
19082
|
return _ref43.apply(this, arguments);
|
|
19083
19083
|
};
|
|
19084
19084
|
}();
|
|
19085
19085
|
/**
|
|
19086
|
-
*
|
|
19087
|
-
* @param {String} transactionId -
|
|
19088
|
-
* @param {String} claimId -
|
|
19089
|
-
* @param {Object} body - Request body
|
|
19086
|
+
* Cancels a claim
|
|
19087
|
+
* @param {String} transactionId - Transaction ID
|
|
19088
|
+
* @param {String} claimId - Claim ID
|
|
19090
19089
|
* @param {Object} opts - Additional options
|
|
19091
19090
|
*/
|
|
19092
19091
|
|
|
19093
|
-
var
|
|
19092
|
+
var cancelClaim = /*#__PURE__*/function () {
|
|
19094
19093
|
var _ref44 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(transactionId, claimId, body, opts) {
|
|
19095
19094
|
return _regeneratorRuntime.wrap(function _callee44$(_context44) {
|
|
19096
19095
|
while (1) {
|
|
@@ -19101,10 +19100,11 @@ var submitClaim = /*#__PURE__*/function () {
|
|
|
19101
19100
|
}
|
|
19102
19101
|
|
|
19103
19102
|
doesParamExist.default({
|
|
19103
|
+
claimId: claimId,
|
|
19104
19104
|
transactionId: transactionId
|
|
19105
19105
|
}, opts.hyperMediaEndpoint);
|
|
19106
19106
|
return _context44.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19107
|
-
path:
|
|
19107
|
+
path: pathCancelClaim(transactionId, claimId)
|
|
19108
19108
|
}), {
|
|
19109
19109
|
method: 'post',
|
|
19110
19110
|
data: body
|
|
@@ -19118,19 +19118,20 @@ var submitClaim = /*#__PURE__*/function () {
|
|
|
19118
19118
|
}, _callee44);
|
|
19119
19119
|
}));
|
|
19120
19120
|
|
|
19121
|
-
return function
|
|
19121
|
+
return function cancelClaim(_x143, _x144, _x145, _x146) {
|
|
19122
19122
|
return _ref44.apply(this, arguments);
|
|
19123
19123
|
};
|
|
19124
19124
|
}();
|
|
19125
19125
|
/**
|
|
19126
|
-
*
|
|
19127
|
-
* @param {String} transactionId -
|
|
19128
|
-
* @param {String} claimId -
|
|
19126
|
+
* Submit a claim
|
|
19127
|
+
* @param {String} transactionId - TransactionId
|
|
19128
|
+
* @param {String} claimId - ClaimId
|
|
19129
|
+
* @param {Object} body - Request body
|
|
19129
19130
|
* @param {Object} opts - Additional options
|
|
19130
19131
|
*/
|
|
19131
19132
|
|
|
19132
|
-
var
|
|
19133
|
-
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) {
|
|
19134
19135
|
return _regeneratorRuntime.wrap(function _callee45$(_context45) {
|
|
19135
19136
|
while (1) {
|
|
19136
19137
|
switch (_context45.prev = _context45.next) {
|
|
@@ -19140,13 +19141,13 @@ var saveClaimDetails = /*#__PURE__*/function () {
|
|
|
19140
19141
|
}
|
|
19141
19142
|
|
|
19142
19143
|
doesParamExist.default({
|
|
19143
|
-
claimId: claimId,
|
|
19144
19144
|
transactionId: transactionId
|
|
19145
19145
|
}, opts.hyperMediaEndpoint);
|
|
19146
19146
|
return _context45.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19147
|
-
path:
|
|
19147
|
+
path: pathSubmitClaim(transactionId, claimId)
|
|
19148
19148
|
}), {
|
|
19149
|
-
method: 'post'
|
|
19149
|
+
method: 'post',
|
|
19150
|
+
data: body
|
|
19150
19151
|
}));
|
|
19151
19152
|
|
|
19152
19153
|
case 3:
|
|
@@ -19157,19 +19158,19 @@ var saveClaimDetails = /*#__PURE__*/function () {
|
|
|
19157
19158
|
}, _callee45);
|
|
19158
19159
|
}));
|
|
19159
19160
|
|
|
19160
|
-
return function
|
|
19161
|
+
return function submitClaim(_x147, _x148, _x149, _x150) {
|
|
19161
19162
|
return _ref45.apply(this, arguments);
|
|
19162
19163
|
};
|
|
19163
19164
|
}();
|
|
19164
19165
|
/**
|
|
19165
|
-
*
|
|
19166
|
+
* Save claim details
|
|
19166
19167
|
* @param {String} transactionId - Transaction ID
|
|
19167
|
-
* @param {
|
|
19168
|
+
* @param {String} claimId - Claim ID
|
|
19168
19169
|
* @param {Object} opts - Additional options
|
|
19169
19170
|
*/
|
|
19170
19171
|
|
|
19171
|
-
var
|
|
19172
|
-
var _ref46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(transactionId,
|
|
19172
|
+
var saveClaimDetails = /*#__PURE__*/function () {
|
|
19173
|
+
var _ref46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(transactionId, claimId, opts) {
|
|
19173
19174
|
return _regeneratorRuntime.wrap(function _callee46$(_context46) {
|
|
19174
19175
|
while (1) {
|
|
19175
19176
|
switch (_context46.prev = _context46.next) {
|
|
@@ -19179,13 +19180,13 @@ var pay = /*#__PURE__*/function () {
|
|
|
19179
19180
|
}
|
|
19180
19181
|
|
|
19181
19182
|
doesParamExist.default({
|
|
19183
|
+
claimId: claimId,
|
|
19182
19184
|
transactionId: transactionId
|
|
19183
19185
|
}, opts.hyperMediaEndpoint);
|
|
19184
19186
|
return _context46.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19185
|
-
path:
|
|
19187
|
+
path: pathSaveClaim(transactionId, claimId)
|
|
19186
19188
|
}), {
|
|
19187
|
-
method: 'post'
|
|
19188
|
-
data: body
|
|
19189
|
+
method: 'post'
|
|
19189
19190
|
}));
|
|
19190
19191
|
|
|
19191
19192
|
case 3:
|
|
@@ -19196,18 +19197,18 @@ var pay = /*#__PURE__*/function () {
|
|
|
19196
19197
|
}, _callee46);
|
|
19197
19198
|
}));
|
|
19198
19199
|
|
|
19199
|
-
return function
|
|
19200
|
+
return function saveClaimDetails(_x151, _x152, _x153) {
|
|
19200
19201
|
return _ref46.apply(this, arguments);
|
|
19201
19202
|
};
|
|
19202
19203
|
}();
|
|
19203
19204
|
/**
|
|
19204
|
-
*
|
|
19205
|
-
* @param {String} transactionId -
|
|
19205
|
+
* Create payment
|
|
19206
|
+
* @param {String} transactionId - Transaction ID
|
|
19206
19207
|
* @param {Object} body - Request body
|
|
19207
19208
|
* @param {Object} opts - Additional options
|
|
19208
19209
|
*/
|
|
19209
19210
|
|
|
19210
|
-
var
|
|
19211
|
+
var pay = /*#__PURE__*/function () {
|
|
19211
19212
|
var _ref47 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(transactionId, body, opts) {
|
|
19212
19213
|
return _regeneratorRuntime.wrap(function _callee47$(_context47) {
|
|
19213
19214
|
while (1) {
|
|
@@ -19221,7 +19222,7 @@ var sendProcessingRequest$1 = /*#__PURE__*/function () {
|
|
|
19221
19222
|
transactionId: transactionId
|
|
19222
19223
|
}, opts.hyperMediaEndpoint);
|
|
19223
19224
|
return _context47.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19224
|
-
path:
|
|
19225
|
+
path: pathTransactionPays(transactionId)
|
|
19225
19226
|
}), {
|
|
19226
19227
|
method: 'post',
|
|
19227
19228
|
data: body
|
|
@@ -19235,18 +19236,18 @@ var sendProcessingRequest$1 = /*#__PURE__*/function () {
|
|
|
19235
19236
|
}, _callee47);
|
|
19236
19237
|
}));
|
|
19237
19238
|
|
|
19238
|
-
return function
|
|
19239
|
+
return function pay(_x154, _x155, _x156) {
|
|
19239
19240
|
return _ref47.apply(this, arguments);
|
|
19240
19241
|
};
|
|
19241
19242
|
}();
|
|
19242
19243
|
/**
|
|
19243
|
-
*
|
|
19244
|
+
* Send a processing request
|
|
19244
19245
|
* @param {String} transactionId - TransactionId
|
|
19245
19246
|
* @param {Object} body - Request body
|
|
19246
19247
|
* @param {Object} opts - Additional options
|
|
19247
19248
|
*/
|
|
19248
19249
|
|
|
19249
|
-
var
|
|
19250
|
+
var sendProcessingRequest$1 = /*#__PURE__*/function () {
|
|
19250
19251
|
var _ref48 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(transactionId, body, opts) {
|
|
19251
19252
|
return _regeneratorRuntime.wrap(function _callee48$(_context48) {
|
|
19252
19253
|
while (1) {
|
|
@@ -19260,7 +19261,7 @@ var cancelInvoice = /*#__PURE__*/function () {
|
|
|
19260
19261
|
transactionId: transactionId
|
|
19261
19262
|
}, opts.hyperMediaEndpoint);
|
|
19262
19263
|
return _context48.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19263
|
-
path:
|
|
19264
|
+
path: pathTransactionProcessingRequests(transactionId)
|
|
19264
19265
|
}), {
|
|
19265
19266
|
method: 'post',
|
|
19266
19267
|
data: body
|
|
@@ -19274,18 +19275,19 @@ var cancelInvoice = /*#__PURE__*/function () {
|
|
|
19274
19275
|
}, _callee48);
|
|
19275
19276
|
}));
|
|
19276
19277
|
|
|
19277
|
-
return function
|
|
19278
|
+
return function sendProcessingRequest(_x157, _x158, _x159) {
|
|
19278
19279
|
return _ref48.apply(this, arguments);
|
|
19279
19280
|
};
|
|
19280
19281
|
}();
|
|
19281
19282
|
/**
|
|
19282
|
-
*
|
|
19283
|
+
* Cancel invoice
|
|
19283
19284
|
* @param {String} transactionId - TransactionId
|
|
19285
|
+
* @param {Object} body - Request body
|
|
19284
19286
|
* @param {Object} opts - Additional options
|
|
19285
19287
|
*/
|
|
19286
19288
|
|
|
19287
|
-
var
|
|
19288
|
-
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) {
|
|
19289
19291
|
return _regeneratorRuntime.wrap(function _callee49$(_context49) {
|
|
19290
19292
|
while (1) {
|
|
19291
19293
|
switch (_context49.prev = _context49.next) {
|
|
@@ -19298,9 +19300,10 @@ var getPaymentLink$1 = /*#__PURE__*/function () {
|
|
|
19298
19300
|
transactionId: transactionId
|
|
19299
19301
|
}, opts.hyperMediaEndpoint);
|
|
19300
19302
|
return _context49.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19301
|
-
path:
|
|
19303
|
+
path: pathTransactionCancel(transactionId)
|
|
19302
19304
|
}), {
|
|
19303
|
-
method: '
|
|
19305
|
+
method: 'post',
|
|
19306
|
+
data: body
|
|
19304
19307
|
}));
|
|
19305
19308
|
|
|
19306
19309
|
case 3:
|
|
@@ -19311,20 +19314,18 @@ var getPaymentLink$1 = /*#__PURE__*/function () {
|
|
|
19311
19314
|
}, _callee49);
|
|
19312
19315
|
}));
|
|
19313
19316
|
|
|
19314
|
-
return function
|
|
19317
|
+
return function cancelInvoice(_x160, _x161, _x162) {
|
|
19315
19318
|
return _ref49.apply(this, arguments);
|
|
19316
19319
|
};
|
|
19317
19320
|
}();
|
|
19318
19321
|
/**
|
|
19319
|
-
*
|
|
19320
|
-
* @param {String} businessId - BusinessId
|
|
19322
|
+
* Get payment link
|
|
19321
19323
|
* @param {String} transactionId - TransactionId
|
|
19322
|
-
* @param {Object} body - Request body
|
|
19323
19324
|
* @param {Object} opts - Additional options
|
|
19324
19325
|
*/
|
|
19325
19326
|
|
|
19326
|
-
var
|
|
19327
|
-
var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(
|
|
19327
|
+
var getPaymentLink$1 = /*#__PURE__*/function () {
|
|
19328
|
+
var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(transactionId, opts) {
|
|
19328
19329
|
return _regeneratorRuntime.wrap(function _callee50$(_context50) {
|
|
19329
19330
|
while (1) {
|
|
19330
19331
|
switch (_context50.prev = _context50.next) {
|
|
@@ -19334,14 +19335,12 @@ var refundByBusiness = /*#__PURE__*/function () {
|
|
|
19334
19335
|
}
|
|
19335
19336
|
|
|
19336
19337
|
doesParamExist.default({
|
|
19337
|
-
businessId: businessId,
|
|
19338
19338
|
transactionId: transactionId
|
|
19339
19339
|
}, opts.hyperMediaEndpoint);
|
|
19340
19340
|
return _context50.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19341
|
-
path:
|
|
19341
|
+
path: pathTransactionPaymentLink(transactionId)
|
|
19342
19342
|
}), {
|
|
19343
|
-
method: '
|
|
19344
|
-
data: body
|
|
19343
|
+
method: 'get'
|
|
19345
19344
|
}));
|
|
19346
19345
|
|
|
19347
19346
|
case 3:
|
|
@@ -19352,19 +19351,20 @@ var refundByBusiness = /*#__PURE__*/function () {
|
|
|
19352
19351
|
}, _callee50);
|
|
19353
19352
|
}));
|
|
19354
19353
|
|
|
19355
|
-
return function
|
|
19354
|
+
return function getPaymentLink(_x163, _x164) {
|
|
19356
19355
|
return _ref50.apply(this, arguments);
|
|
19357
19356
|
};
|
|
19358
19357
|
}();
|
|
19359
19358
|
/**
|
|
19360
19359
|
* Refund transaction
|
|
19360
|
+
* @param {String} businessId - BusinessId
|
|
19361
19361
|
* @param {String} transactionId - TransactionId
|
|
19362
19362
|
* @param {Object} body - Request body
|
|
19363
19363
|
* @param {Object} opts - Additional options
|
|
19364
19364
|
*/
|
|
19365
19365
|
|
|
19366
|
-
var
|
|
19367
|
-
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) {
|
|
19368
19368
|
return _regeneratorRuntime.wrap(function _callee51$(_context51) {
|
|
19369
19369
|
while (1) {
|
|
19370
19370
|
switch (_context51.prev = _context51.next) {
|
|
@@ -19374,10 +19374,11 @@ var refund = /*#__PURE__*/function () {
|
|
|
19374
19374
|
}
|
|
19375
19375
|
|
|
19376
19376
|
doesParamExist.default({
|
|
19377
|
+
businessId: businessId,
|
|
19377
19378
|
transactionId: transactionId
|
|
19378
19379
|
}, opts.hyperMediaEndpoint);
|
|
19379
19380
|
return _context51.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19380
|
-
path:
|
|
19381
|
+
path: pathBusinessTransactionRefund(businessId, transactionId)
|
|
19381
19382
|
}), {
|
|
19382
19383
|
method: 'post',
|
|
19383
19384
|
data: body
|
|
@@ -19391,19 +19392,19 @@ var refund = /*#__PURE__*/function () {
|
|
|
19391
19392
|
}, _callee51);
|
|
19392
19393
|
}));
|
|
19393
19394
|
|
|
19394
|
-
return function
|
|
19395
|
+
return function refundByBusiness(_x165, _x166, _x167, _x168) {
|
|
19395
19396
|
return _ref51.apply(this, arguments);
|
|
19396
19397
|
};
|
|
19397
19398
|
}();
|
|
19398
19399
|
/**
|
|
19399
|
-
*
|
|
19400
|
-
* @param {String}
|
|
19400
|
+
* Refund transaction
|
|
19401
|
+
* @param {String} transactionId - TransactionId
|
|
19401
19402
|
* @param {Object} body - Request body
|
|
19402
19403
|
* @param {Object} opts - Additional options
|
|
19403
19404
|
*/
|
|
19404
19405
|
|
|
19405
|
-
var
|
|
19406
|
-
var _ref52 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(
|
|
19406
|
+
var refund = /*#__PURE__*/function () {
|
|
19407
|
+
var _ref52 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(transactionId, body, opts) {
|
|
19407
19408
|
return _regeneratorRuntime.wrap(function _callee52$(_context52) {
|
|
19408
19409
|
while (1) {
|
|
19409
19410
|
switch (_context52.prev = _context52.next) {
|
|
@@ -19413,10 +19414,10 @@ var saveDraft = /*#__PURE__*/function () {
|
|
|
19413
19414
|
}
|
|
19414
19415
|
|
|
19415
19416
|
doesParamExist.default({
|
|
19416
|
-
|
|
19417
|
+
transactionId: transactionId
|
|
19417
19418
|
}, opts.hyperMediaEndpoint);
|
|
19418
19419
|
return _context52.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19419
|
-
path:
|
|
19420
|
+
path: pathTransactionRefund(transactionId)
|
|
19420
19421
|
}), {
|
|
19421
19422
|
method: 'post',
|
|
19422
19423
|
data: body
|
|
@@ -19430,19 +19431,19 @@ var saveDraft = /*#__PURE__*/function () {
|
|
|
19430
19431
|
}, _callee52);
|
|
19431
19432
|
}));
|
|
19432
19433
|
|
|
19433
|
-
return function
|
|
19434
|
+
return function refund(_x169, _x170, _x171) {
|
|
19434
19435
|
return _ref52.apply(this, arguments);
|
|
19435
19436
|
};
|
|
19436
19437
|
}();
|
|
19437
19438
|
/**
|
|
19438
|
-
*
|
|
19439
|
-
* @param {String}
|
|
19439
|
+
* Save invoice as draft
|
|
19440
|
+
* @param {String} businessId - BusinessId
|
|
19440
19441
|
* @param {Object} body - Request body
|
|
19441
19442
|
* @param {Object} opts - Additional options
|
|
19442
19443
|
*/
|
|
19443
19444
|
|
|
19444
|
-
var
|
|
19445
|
-
var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(
|
|
19445
|
+
var saveDraft = /*#__PURE__*/function () {
|
|
19446
|
+
var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(businessId, body, opts) {
|
|
19446
19447
|
return _regeneratorRuntime.wrap(function _callee53$(_context53) {
|
|
19447
19448
|
while (1) {
|
|
19448
19449
|
switch (_context53.prev = _context53.next) {
|
|
@@ -19452,10 +19453,10 @@ var convertDraft = /*#__PURE__*/function () {
|
|
|
19452
19453
|
}
|
|
19453
19454
|
|
|
19454
19455
|
doesParamExist.default({
|
|
19455
|
-
|
|
19456
|
+
businessId: businessId
|
|
19456
19457
|
}, opts.hyperMediaEndpoint);
|
|
19457
19458
|
return _context53.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19458
|
-
path:
|
|
19459
|
+
path: pathCreateDraft(businessId)
|
|
19459
19460
|
}), {
|
|
19460
19461
|
method: 'post',
|
|
19461
19462
|
data: body
|
|
@@ -19469,18 +19470,19 @@ var convertDraft = /*#__PURE__*/function () {
|
|
|
19469
19470
|
}, _callee53);
|
|
19470
19471
|
}));
|
|
19471
19472
|
|
|
19472
|
-
return function
|
|
19473
|
+
return function saveDraft(_x172, _x173, _x174) {
|
|
19473
19474
|
return _ref53.apply(this, arguments);
|
|
19474
19475
|
};
|
|
19475
19476
|
}();
|
|
19476
19477
|
/**
|
|
19477
|
-
*
|
|
19478
|
+
* Convert draft to an invoice
|
|
19478
19479
|
* @param {String} transactionId - Transaction ID
|
|
19480
|
+
* @param {Object} body - Request body
|
|
19479
19481
|
* @param {Object} opts - Additional options
|
|
19480
19482
|
*/
|
|
19481
19483
|
|
|
19482
|
-
var
|
|
19483
|
-
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) {
|
|
19484
19486
|
return _regeneratorRuntime.wrap(function _callee54$(_context54) {
|
|
19485
19487
|
while (1) {
|
|
19486
19488
|
switch (_context54.prev = _context54.next) {
|
|
@@ -19493,9 +19495,10 @@ var archive = /*#__PURE__*/function () {
|
|
|
19493
19495
|
transactionId: transactionId
|
|
19494
19496
|
}, opts.hyperMediaEndpoint);
|
|
19495
19497
|
return _context54.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19496
|
-
path:
|
|
19498
|
+
path: pathConvertDraft(transactionId)
|
|
19497
19499
|
}), {
|
|
19498
|
-
method: '
|
|
19500
|
+
method: 'post',
|
|
19501
|
+
data: body
|
|
19499
19502
|
}));
|
|
19500
19503
|
|
|
19501
19504
|
case 3:
|
|
@@ -19506,17 +19509,17 @@ var archive = /*#__PURE__*/function () {
|
|
|
19506
19509
|
}, _callee54);
|
|
19507
19510
|
}));
|
|
19508
19511
|
|
|
19509
|
-
return function
|
|
19512
|
+
return function convertDraft(_x175, _x176, _x177) {
|
|
19510
19513
|
return _ref54.apply(this, arguments);
|
|
19511
19514
|
};
|
|
19512
19515
|
}();
|
|
19513
19516
|
/**
|
|
19514
|
-
*
|
|
19517
|
+
* Archive an invoice
|
|
19515
19518
|
* @param {String} transactionId - Transaction ID
|
|
19516
19519
|
* @param {Object} opts - Additional options
|
|
19517
19520
|
*/
|
|
19518
19521
|
|
|
19519
|
-
var
|
|
19522
|
+
var archive = /*#__PURE__*/function () {
|
|
19520
19523
|
var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(transactionId, opts) {
|
|
19521
19524
|
return _regeneratorRuntime.wrap(function _callee55$(_context55) {
|
|
19522
19525
|
while (1) {
|
|
@@ -19530,7 +19533,7 @@ var unarchive = /*#__PURE__*/function () {
|
|
|
19530
19533
|
transactionId: transactionId
|
|
19531
19534
|
}, opts.hyperMediaEndpoint);
|
|
19532
19535
|
return _context55.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19533
|
-
path:
|
|
19536
|
+
path: pathTransactionArchives(transactionId)
|
|
19534
19537
|
}), {
|
|
19535
19538
|
method: 'put'
|
|
19536
19539
|
}));
|
|
@@ -19543,19 +19546,18 @@ var unarchive = /*#__PURE__*/function () {
|
|
|
19543
19546
|
}, _callee55);
|
|
19544
19547
|
}));
|
|
19545
19548
|
|
|
19546
|
-
return function
|
|
19549
|
+
return function archive(_x178, _x179) {
|
|
19547
19550
|
return _ref55.apply(this, arguments);
|
|
19548
19551
|
};
|
|
19549
19552
|
}();
|
|
19550
19553
|
/**
|
|
19551
|
-
*
|
|
19554
|
+
* Unarchive an invoice
|
|
19552
19555
|
* @param {String} transactionId - Transaction ID
|
|
19553
|
-
* @param {Object} body - Request body
|
|
19554
19556
|
* @param {Object} opts - Additional options
|
|
19555
19557
|
*/
|
|
19556
19558
|
|
|
19557
|
-
var
|
|
19558
|
-
var _ref56 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(transactionId,
|
|
19559
|
+
var unarchive = /*#__PURE__*/function () {
|
|
19560
|
+
var _ref56 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(transactionId, opts) {
|
|
19559
19561
|
return _regeneratorRuntime.wrap(function _callee56$(_context56) {
|
|
19560
19562
|
while (1) {
|
|
19561
19563
|
switch (_context56.prev = _context56.next) {
|
|
@@ -19568,10 +19570,9 @@ var terminalInput = /*#__PURE__*/function () {
|
|
|
19568
19570
|
transactionId: transactionId
|
|
19569
19571
|
}, opts.hyperMediaEndpoint);
|
|
19570
19572
|
return _context56.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19571
|
-
path:
|
|
19573
|
+
path: pathTransactionUnarchives(transactionId)
|
|
19572
19574
|
}), {
|
|
19573
|
-
method: '
|
|
19574
|
-
data: body
|
|
19575
|
+
method: 'put'
|
|
19575
19576
|
}));
|
|
19576
19577
|
|
|
19577
19578
|
case 3:
|
|
@@ -19582,18 +19583,18 @@ var terminalInput = /*#__PURE__*/function () {
|
|
|
19582
19583
|
}, _callee56);
|
|
19583
19584
|
}));
|
|
19584
19585
|
|
|
19585
|
-
return function
|
|
19586
|
+
return function unarchive(_x180, _x181) {
|
|
19586
19587
|
return _ref56.apply(this, arguments);
|
|
19587
19588
|
};
|
|
19588
19589
|
}();
|
|
19589
19590
|
/**
|
|
19590
|
-
* Send terminal
|
|
19591
|
+
* Send terminal input
|
|
19591
19592
|
* @param {String} transactionId - Transaction ID
|
|
19592
19593
|
* @param {Object} body - Request body
|
|
19593
19594
|
* @param {Object} opts - Additional options
|
|
19594
19595
|
*/
|
|
19595
19596
|
|
|
19596
|
-
var
|
|
19597
|
+
var terminalInput = /*#__PURE__*/function () {
|
|
19597
19598
|
var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(transactionId, body, opts) {
|
|
19598
19599
|
return _regeneratorRuntime.wrap(function _callee57$(_context57) {
|
|
19599
19600
|
while (1) {
|
|
@@ -19607,7 +19608,7 @@ var terminalCancellation = /*#__PURE__*/function () {
|
|
|
19607
19608
|
transactionId: transactionId
|
|
19608
19609
|
}, opts.hyperMediaEndpoint);
|
|
19609
19610
|
return _context57.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19610
|
-
path:
|
|
19611
|
+
path: pathTransactionTerminalInput(transactionId)
|
|
19611
19612
|
}), {
|
|
19612
19613
|
method: 'post',
|
|
19613
19614
|
data: body
|
|
@@ -19621,20 +19622,19 @@ var terminalCancellation = /*#__PURE__*/function () {
|
|
|
19621
19622
|
}, _callee57);
|
|
19622
19623
|
}));
|
|
19623
19624
|
|
|
19624
|
-
return function
|
|
19625
|
+
return function terminalInput(_x182, _x183, _x184) {
|
|
19625
19626
|
return _ref57.apply(this, arguments);
|
|
19626
19627
|
};
|
|
19627
19628
|
}();
|
|
19628
19629
|
/**
|
|
19629
|
-
*
|
|
19630
|
-
* @param {String} transactionId -
|
|
19631
|
-
* @param {String} paymentId - PaymentId
|
|
19630
|
+
* Send terminal cancellation
|
|
19631
|
+
* @param {String} transactionId - Transaction ID
|
|
19632
19632
|
* @param {Object} body - Request body
|
|
19633
19633
|
* @param {Object} opts - Additional options
|
|
19634
19634
|
*/
|
|
19635
19635
|
|
|
19636
|
-
var
|
|
19637
|
-
var _ref58 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(transactionId,
|
|
19636
|
+
var terminalCancellation = /*#__PURE__*/function () {
|
|
19637
|
+
var _ref58 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(transactionId, body, opts) {
|
|
19638
19638
|
return _regeneratorRuntime.wrap(function _callee58$(_context58) {
|
|
19639
19639
|
while (1) {
|
|
19640
19640
|
switch (_context58.prev = _context58.next) {
|
|
@@ -19647,7 +19647,7 @@ var refundPayment = /*#__PURE__*/function () {
|
|
|
19647
19647
|
transactionId: transactionId
|
|
19648
19648
|
}, opts.hyperMediaEndpoint);
|
|
19649
19649
|
return _context58.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19650
|
-
path:
|
|
19650
|
+
path: pathTransactionTerminalCancel(transactionId)
|
|
19651
19651
|
}), {
|
|
19652
19652
|
method: 'post',
|
|
19653
19653
|
data: body
|
|
@@ -19661,18 +19661,20 @@ var refundPayment = /*#__PURE__*/function () {
|
|
|
19661
19661
|
}, _callee58);
|
|
19662
19662
|
}));
|
|
19663
19663
|
|
|
19664
|
-
return function
|
|
19664
|
+
return function terminalCancellation(_x185, _x186, _x187) {
|
|
19665
19665
|
return _ref58.apply(this, arguments);
|
|
19666
19666
|
};
|
|
19667
19667
|
}();
|
|
19668
19668
|
/**
|
|
19669
|
-
*
|
|
19669
|
+
* Refund transaction's payment
|
|
19670
|
+
* @param {String} transactionId - TransactionId
|
|
19671
|
+
* @param {String} paymentId - PaymentId
|
|
19670
19672
|
* @param {Object} body - Request body
|
|
19671
19673
|
* @param {Object} opts - Additional options
|
|
19672
19674
|
*/
|
|
19673
19675
|
|
|
19674
|
-
var
|
|
19675
|
-
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) {
|
|
19676
19678
|
return _regeneratorRuntime.wrap(function _callee59$(_context59) {
|
|
19677
19679
|
while (1) {
|
|
19678
19680
|
switch (_context59.prev = _context59.next) {
|
|
@@ -19681,14 +19683,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
|
|
|
19681
19683
|
opts = {};
|
|
19682
19684
|
}
|
|
19683
19685
|
|
|
19686
|
+
doesParamExist.default({
|
|
19687
|
+
transactionId: transactionId
|
|
19688
|
+
}, opts.hyperMediaEndpoint);
|
|
19684
19689
|
return _context59.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19685
|
-
path:
|
|
19690
|
+
path: pathTransactionPaymentRefund(transactionId, paymentId)
|
|
19686
19691
|
}), {
|
|
19687
19692
|
method: 'post',
|
|
19688
19693
|
data: body
|
|
19689
19694
|
}));
|
|
19690
19695
|
|
|
19691
|
-
case
|
|
19696
|
+
case 3:
|
|
19692
19697
|
case "end":
|
|
19693
19698
|
return _context59.stop();
|
|
19694
19699
|
}
|
|
@@ -19696,17 +19701,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
|
|
|
19696
19701
|
}, _callee59);
|
|
19697
19702
|
}));
|
|
19698
19703
|
|
|
19699
|
-
return function
|
|
19704
|
+
return function refundPayment(_x188, _x189, _x190, _x191) {
|
|
19700
19705
|
return _ref59.apply(this, arguments);
|
|
19701
19706
|
};
|
|
19702
19707
|
}();
|
|
19703
19708
|
/**
|
|
19704
|
-
* Create ECLIPSE invoice -
|
|
19709
|
+
* Create ECLIPSE invoice - In Patient
|
|
19705
19710
|
* @param {Object} body - Request body
|
|
19706
19711
|
* @param {Object} opts - Additional options
|
|
19707
19712
|
*/
|
|
19708
19713
|
|
|
19709
|
-
var
|
|
19714
|
+
var createEclipseInPatientInvoice = /*#__PURE__*/function () {
|
|
19710
19715
|
var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(body, opts) {
|
|
19711
19716
|
return _regeneratorRuntime.wrap(function _callee60$(_context60) {
|
|
19712
19717
|
while (1) {
|
|
@@ -19717,7 +19722,7 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
|
|
|
19717
19722
|
}
|
|
19718
19723
|
|
|
19719
19724
|
return _context60.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19720
|
-
path:
|
|
19725
|
+
path: pathCreateEclipseInPatientInvoice()
|
|
19721
19726
|
}), {
|
|
19722
19727
|
method: 'post',
|
|
19723
19728
|
data: body
|
|
@@ -19731,17 +19736,17 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
|
|
|
19731
19736
|
}, _callee60);
|
|
19732
19737
|
}));
|
|
19733
19738
|
|
|
19734
|
-
return function
|
|
19739
|
+
return function createEclipseInPatientInvoice(_x192, _x193) {
|
|
19735
19740
|
return _ref60.apply(this, arguments);
|
|
19736
19741
|
};
|
|
19737
19742
|
}();
|
|
19738
19743
|
/**
|
|
19739
|
-
* Create ECLIPSE invoice -
|
|
19744
|
+
* Create ECLIPSE invoice - Overseas
|
|
19740
19745
|
* @param {Object} body - Request body
|
|
19741
19746
|
* @param {Object} opts - Additional options
|
|
19742
19747
|
*/
|
|
19743
19748
|
|
|
19744
|
-
var
|
|
19749
|
+
var createEclipseOverseasInvoice = /*#__PURE__*/function () {
|
|
19745
19750
|
var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(body, opts) {
|
|
19746
19751
|
return _regeneratorRuntime.wrap(function _callee61$(_context61) {
|
|
19747
19752
|
while (1) {
|
|
@@ -19752,7 +19757,7 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
|
|
|
19752
19757
|
}
|
|
19753
19758
|
|
|
19754
19759
|
return _context61.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19755
|
-
path:
|
|
19760
|
+
path: pathCreateEclipseOverseasInvoice()
|
|
19756
19761
|
}), {
|
|
19757
19762
|
method: 'post',
|
|
19758
19763
|
data: body
|
|
@@ -19766,10 +19771,45 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
|
|
|
19766
19771
|
}, _callee61);
|
|
19767
19772
|
}));
|
|
19768
19773
|
|
|
19769
|
-
return function
|
|
19774
|
+
return function createEclipseOverseasInvoice(_x194, _x195) {
|
|
19770
19775
|
return _ref61.apply(this, arguments);
|
|
19771
19776
|
};
|
|
19772
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
|
+
}();
|
|
19773
19813
|
/**
|
|
19774
19814
|
* Get business ECLIPSE transaction payment report
|
|
19775
19815
|
* @param {String} businessId - Business ID
|
|
@@ -19778,10 +19818,10 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
|
|
|
19778
19818
|
*/
|
|
19779
19819
|
|
|
19780
19820
|
var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
|
|
19781
|
-
var
|
|
19782
|
-
return _regeneratorRuntime.wrap(function
|
|
19821
|
+
var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(businessId, transactionId, query, opts) {
|
|
19822
|
+
return _regeneratorRuntime.wrap(function _callee63$(_context63) {
|
|
19783
19823
|
while (1) {
|
|
19784
|
-
switch (
|
|
19824
|
+
switch (_context63.prev = _context63.next) {
|
|
19785
19825
|
case 0:
|
|
19786
19826
|
if (opts === void 0) {
|
|
19787
19827
|
opts = {};
|
|
@@ -19791,7 +19831,7 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
|
|
|
19791
19831
|
businessId: businessId,
|
|
19792
19832
|
transactionId: transactionId
|
|
19793
19833
|
}, opts.hyperMediaEndpoint);
|
|
19794
|
-
return
|
|
19834
|
+
return _context63.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19795
19835
|
path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
|
|
19796
19836
|
}), {
|
|
19797
19837
|
method: 'get',
|
|
@@ -19800,14 +19840,14 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
|
|
|
19800
19840
|
|
|
19801
19841
|
case 3:
|
|
19802
19842
|
case "end":
|
|
19803
|
-
return
|
|
19843
|
+
return _context63.stop();
|
|
19804
19844
|
}
|
|
19805
19845
|
}
|
|
19806
|
-
},
|
|
19846
|
+
}, _callee63);
|
|
19807
19847
|
}));
|
|
19808
19848
|
|
|
19809
|
-
return function getBusinessEclipseTransactionPaymentReport(
|
|
19810
|
-
return
|
|
19849
|
+
return function getBusinessEclipseTransactionPaymentReport(_x198, _x199, _x200, _x201) {
|
|
19850
|
+
return _ref63.apply(this, arguments);
|
|
19811
19851
|
};
|
|
19812
19852
|
}();
|
|
19813
19853
|
/**
|
|
@@ -19818,10 +19858,10 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
|
|
|
19818
19858
|
*/
|
|
19819
19859
|
|
|
19820
19860
|
var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
|
|
19821
|
-
var
|
|
19822
|
-
return _regeneratorRuntime.wrap(function
|
|
19861
|
+
var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(businessId, transactionId, query, opts) {
|
|
19862
|
+
return _regeneratorRuntime.wrap(function _callee64$(_context64) {
|
|
19823
19863
|
while (1) {
|
|
19824
|
-
switch (
|
|
19864
|
+
switch (_context64.prev = _context64.next) {
|
|
19825
19865
|
case 0:
|
|
19826
19866
|
if (opts === void 0) {
|
|
19827
19867
|
opts = {};
|
|
@@ -19831,7 +19871,7 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
|
|
|
19831
19871
|
businessId: businessId,
|
|
19832
19872
|
transactionId: transactionId
|
|
19833
19873
|
}, opts.hyperMediaEndpoint);
|
|
19834
|
-
return
|
|
19874
|
+
return _context64.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19835
19875
|
path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
|
|
19836
19876
|
}), {
|
|
19837
19877
|
method: 'get',
|
|
@@ -19840,14 +19880,14 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
|
|
|
19840
19880
|
|
|
19841
19881
|
case 3:
|
|
19842
19882
|
case "end":
|
|
19843
|
-
return
|
|
19883
|
+
return _context64.stop();
|
|
19844
19884
|
}
|
|
19845
19885
|
}
|
|
19846
|
-
},
|
|
19886
|
+
}, _callee64);
|
|
19847
19887
|
}));
|
|
19848
19888
|
|
|
19849
|
-
return function getBusinessEclipseTransactionProcessingReport(
|
|
19850
|
-
return
|
|
19889
|
+
return function getBusinessEclipseTransactionProcessingReport(_x202, _x203, _x204, _x205) {
|
|
19890
|
+
return _ref64.apply(this, arguments);
|
|
19851
19891
|
};
|
|
19852
19892
|
}();
|
|
19853
19893
|
/**
|
|
@@ -19858,10 +19898,10 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
|
|
|
19858
19898
|
*/
|
|
19859
19899
|
|
|
19860
19900
|
var reconcileClaim = /*#__PURE__*/function () {
|
|
19861
|
-
var
|
|
19862
|
-
return _regeneratorRuntime.wrap(function
|
|
19901
|
+
var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(transactionId, claimId, opts) {
|
|
19902
|
+
return _regeneratorRuntime.wrap(function _callee65$(_context65) {
|
|
19863
19903
|
while (1) {
|
|
19864
|
-
switch (
|
|
19904
|
+
switch (_context65.prev = _context65.next) {
|
|
19865
19905
|
case 0:
|
|
19866
19906
|
if (opts === void 0) {
|
|
19867
19907
|
opts = {};
|
|
@@ -19870,7 +19910,7 @@ var reconcileClaim = /*#__PURE__*/function () {
|
|
|
19870
19910
|
doesParamExist.default({
|
|
19871
19911
|
transactionId: transactionId
|
|
19872
19912
|
}, opts.hyperMediaEndpoint);
|
|
19873
|
-
return
|
|
19913
|
+
return _context65.abrupt("return", request(_objectSpread$14({}, opts, {
|
|
19874
19914
|
path: pathReconcileClaim(transactionId, claimId)
|
|
19875
19915
|
}), {
|
|
19876
19916
|
method: 'post'
|
|
@@ -19878,14 +19918,14 @@ var reconcileClaim = /*#__PURE__*/function () {
|
|
|
19878
19918
|
|
|
19879
19919
|
case 3:
|
|
19880
19920
|
case "end":
|
|
19881
|
-
return
|
|
19921
|
+
return _context65.stop();
|
|
19882
19922
|
}
|
|
19883
19923
|
}
|
|
19884
|
-
},
|
|
19924
|
+
}, _callee65);
|
|
19885
19925
|
}));
|
|
19886
19926
|
|
|
19887
|
-
return function reconcileClaim(
|
|
19888
|
-
return
|
|
19927
|
+
return function reconcileClaim(_x206, _x207, _x208) {
|
|
19928
|
+
return _ref65.apply(this, arguments);
|
|
19889
19929
|
};
|
|
19890
19930
|
}();
|
|
19891
19931
|
|
|
@@ -19920,6 +19960,7 @@ var transactions = /*#__PURE__*/Object.freeze({
|
|
|
19920
19960
|
getTransactionByTransactionId: getTransactionByTransactionId,
|
|
19921
19961
|
getTransactionPDF: getTransactionPDF,
|
|
19922
19962
|
getTransactionClaimPDF: getTransactionClaimPDF,
|
|
19963
|
+
getEclipseTransactionClaimPDF: getEclipseTransactionClaimPDF,
|
|
19923
19964
|
replyToQuote: replyToQuote,
|
|
19924
19965
|
sendReceipt: sendReceipt$1,
|
|
19925
19966
|
submitInvoice: submitInvoice,
|
|
@@ -22142,6 +22183,7 @@ exports.getDeviceId = getDeviceId;
|
|
|
22142
22183
|
exports.getDocAccount = getDocAccount;
|
|
22143
22184
|
exports.getDocAccounts = getDocAccounts;
|
|
22144
22185
|
exports.getDraftProgressStatus = getDraftProgressStatus;
|
|
22186
|
+
exports.getEclipseTransactionClaimPDF = getEclipseTransactionClaimPDF;
|
|
22145
22187
|
exports.getFunder = getFunder;
|
|
22146
22188
|
exports.getFunders = getFunders;
|
|
22147
22189
|
exports.getFuture = getFuture;
|