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