@medipass/web-sdk 11.52.3 → 11.53.1-chore-discounted-pricing-endpoint.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/index.js +1 -1
  3. package/lib/resources/abr.js +1 -1
  4. package/lib/resources/accounts.js +1 -1
  5. package/lib/resources/actions.js +1 -1
  6. package/lib/resources/api-keys.js +1 -1
  7. package/lib/resources/applications.js +1 -1
  8. package/lib/resources/attachments.js +1 -1
  9. package/lib/resources/auth.js +1 -1
  10. package/lib/resources/blacklist.js +1 -1
  11. package/lib/resources/bulk-submits.js +1 -1
  12. package/lib/resources/bulk-uploads.js +1 -1
  13. package/lib/resources/business-profiles.js +1 -1
  14. package/lib/resources/businesses.d.ts +7 -0
  15. package/lib/resources/businesses.js +2 -1
  16. package/lib/resources/claim-items.js +1 -1
  17. package/lib/resources/devices.js +1 -1
  18. package/lib/resources/doc-accounts.js +1 -1
  19. package/lib/resources/documents.js +1 -1
  20. package/lib/resources/emails.js +1 -1
  21. package/lib/resources/filter-options.js +1 -1
  22. package/lib/resources/form-application-templates.js +1 -1
  23. package/lib/resources/form-applications.js +1 -1
  24. package/lib/resources/forms.js +1 -1
  25. package/lib/resources/funder-services.js +1 -1
  26. package/lib/resources/funder-settings.js +1 -1
  27. package/lib/resources/funder-values.js +1 -1
  28. package/lib/resources/funders.js +1 -1
  29. package/lib/resources/futures.js +1 -1
  30. package/lib/resources/health-fund-accounts.js +1 -1
  31. package/lib/resources/health-fund-settings.js +1 -1
  32. package/lib/resources/healthfunds.js +1 -1
  33. package/lib/resources/icditems.js +1 -1
  34. package/lib/resources/invoice-scans.js +1 -1
  35. package/lib/resources/jhcs.js +1 -1
  36. package/lib/resources/kyc.js +1 -1
  37. package/lib/resources/logs.js +1 -1
  38. package/lib/resources/members.js +1 -1
  39. package/lib/resources/message-mappings.js +1 -1
  40. package/lib/resources/minions.js +1 -1
  41. package/lib/resources/modalities.js +1 -1
  42. package/lib/resources/notes.js +1 -1
  43. package/lib/resources/onboarding-applications.js +1 -1
  44. package/lib/resources/onboarding-requests.js +1 -1
  45. package/lib/resources/ops.js +1 -1
  46. package/lib/resources/organisations.js +1 -1
  47. package/lib/resources/partners.js +1 -1
  48. package/lib/resources/patients.js +1 -1
  49. package/lib/resources/payments.js +1 -1
  50. package/lib/resources/pms.js +1 -1
  51. package/lib/resources/practice-profiles.js +1 -1
  52. package/lib/resources/practice-types.js +1 -1
  53. package/lib/resources/practices.js +1 -1
  54. package/lib/resources/products.js +1 -1
  55. package/lib/resources/professional-categories.js +1 -1
  56. package/lib/resources/provider-number-types.js +1 -1
  57. package/lib/resources/provider-registration-types.js +1 -1
  58. package/lib/resources/provider-requests.js +1 -1
  59. package/lib/resources/provider-types.js +1 -1
  60. package/lib/resources/ref-sources.js +1 -1
  61. package/lib/resources/risk.js +1 -1
  62. package/lib/resources/rnas.js +1 -1
  63. package/lib/resources/roles.js +1 -1
  64. package/lib/resources/self-checkout-sessions.js +1 -1
  65. package/lib/resources/services.js +1 -1
  66. package/lib/resources/settlements.js +1 -1
  67. package/lib/resources/sign-up.js +1 -1
  68. package/lib/resources/specialties.js +1 -1
  69. package/lib/resources/staff-profiles.js +1 -1
  70. package/lib/resources/staff.js +1 -1
  71. package/lib/resources/statistics.js +1 -1
  72. package/lib/resources/subscriptions.js +1 -1
  73. package/lib/resources/terminals.js +2 -2
  74. package/lib/resources/transaction-export.js +1 -1
  75. package/lib/resources/transactions.js +1 -1
  76. package/lib/resources/triggers.js +1 -1
  77. package/lib/resources/vendors.js +1 -1
  78. package/lib/resources/verify.js +1 -1
  79. package/lib/resources/workers.js +1 -1
  80. package/lib/resources/workflow-exceptions.js +1 -1
  81. package/lib/services/aws.js +1 -1
  82. package/lib/services/version.js +1 -1
  83. package/lib/{staff-75ea1b6f.js → staff-b636bd48.js} +316 -135
  84. package/lib/utils/application.js +1 -1
  85. package/lib/utils/professions.js +1 -1
  86. package/lib/utils/request.js +1 -1
  87. package/lib/utils/staff.js +1 -1
  88. package/package.json +3 -3
@@ -3680,6 +3680,10 @@ var pathOrganisationBusiness = function pathOrganisationBusiness(organisationId)
3680
3680
 
3681
3681
  var pathVerifyMedicare = function pathVerifyMedicare(businessId) {
3682
3682
  return "/businesses/" + businessId + "/medicare/verify";
3683
+ };
3684
+
3685
+ var pathGetBusinessTerminals = function pathGetBusinessTerminals(businessId) {
3686
+ return "/v3/businesses/" + businessId + "/terminals";
3683
3687
  }; // This can be removed once we migrate to the new medicare service
3684
3688
 
3685
3689
 
@@ -4302,6 +4306,28 @@ var suspendBusiness = function suspendBusiness(businessId, body, opts) {
4302
4306
  data: body
4303
4307
  });
4304
4308
  };
4309
+ /**
4310
+ * Get all the business terminals by location
4311
+ * @param {String} businessId - Business ID
4312
+ * @param {Object} body - Request body
4313
+ * @param {Object} opts - Additional options
4314
+ */
4315
+
4316
+ var getBusinessTerminals = function getBusinessTerminals(businessId, query, opts) {
4317
+ if (opts === void 0) {
4318
+ opts = {};
4319
+ }
4320
+
4321
+ doesParamExist.default({
4322
+ businessId: businessId
4323
+ }, opts.hyperMediaEndpoint);
4324
+ return request(_objectSpread$e({}, opts, {
4325
+ path: pathGetBusinessTerminals(businessId)
4326
+ }), {
4327
+ method: 'get',
4328
+ params: query
4329
+ });
4330
+ };
4305
4331
 
4306
4332
  var businesses = /*#__PURE__*/Object.freeze({
4307
4333
  __proto__: null,
@@ -4329,7 +4355,8 @@ var businesses = /*#__PURE__*/Object.freeze({
4329
4355
  createSupportNote: createSupportNote,
4330
4356
  getBsbDetails: getBsbDetails,
4331
4357
  sendBusinessEmail: sendBusinessEmail,
4332
- suspendBusiness: suspendBusiness
4358
+ suspendBusiness: suspendBusiness,
4359
+ getBusinessTerminals: getBusinessTerminals
4333
4360
  });
4334
4361
 
4335
4362
  function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -6121,41 +6148,75 @@ var createBusinessHold = function createBusinessHold(businessId, body, opts) {
6121
6148
  * @param {Object} opts - Additional options
6122
6149
  */
6123
6150
 
6124
- var createBusinessInstalmentPlan = function createBusinessInstalmentPlan(businessId, body, opts) {
6125
- if (opts === void 0) {
6126
- opts = {};
6127
- }
6151
+ var createBusinessInstalmentPlan = /*#__PURE__*/function () {
6152
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(businessId, body, opts) {
6153
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
6154
+ while (1) {
6155
+ switch (_context.prev = _context.next) {
6156
+ case 0:
6157
+ if (opts === void 0) {
6158
+ opts = {};
6159
+ }
6128
6160
 
6129
- doesParamExist.default({
6130
- businessId: businessId
6131
- }, opts.hyperMediaEndpoint);
6132
- return request(_objectSpread$r({}, opts, {
6133
- path: pathBusinessInstalmentPlans(businessId)
6134
- }), {
6135
- method: 'post',
6136
- data: body
6137
- });
6138
- };
6161
+ doesParamExist.default({
6162
+ businessId: businessId
6163
+ }, opts.hyperMediaEndpoint);
6164
+ return _context.abrupt("return", request(_objectSpread$r({}, opts, {
6165
+ path: pathBusinessInstalmentPlans(businessId)
6166
+ }), {
6167
+ method: 'post',
6168
+ data: body
6169
+ }));
6170
+
6171
+ case 3:
6172
+ case "end":
6173
+ return _context.stop();
6174
+ }
6175
+ }
6176
+ }, _callee);
6177
+ }));
6178
+
6179
+ return function createBusinessInstalmentPlan(_x, _x2, _x3) {
6180
+ return _ref.apply(this, arguments);
6181
+ };
6182
+ }();
6139
6183
  /**
6140
6184
  * Cancel a future
6141
6185
  * @param {String} futureId - Future ID
6142
6186
  * @param {Object} opts - Additional options
6143
6187
  */
6144
6188
 
6145
- var cancel = function cancel(futureId, opts) {
6146
- if (opts === void 0) {
6147
- opts = {};
6148
- }
6189
+ var cancel = /*#__PURE__*/function () {
6190
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(futureId, opts) {
6191
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
6192
+ while (1) {
6193
+ switch (_context2.prev = _context2.next) {
6194
+ case 0:
6195
+ if (opts === void 0) {
6196
+ opts = {};
6197
+ }
6149
6198
 
6150
- doesParamExist.default({
6151
- futureId: futureId
6152
- }, opts.hyperMediaEndpoint);
6153
- return request(_objectSpread$r({}, opts, {
6154
- path: pathCancels(futureId)
6155
- }), {
6156
- method: 'post'
6157
- });
6158
- };
6199
+ doesParamExist.default({
6200
+ futureId: futureId
6201
+ }, opts.hyperMediaEndpoint);
6202
+ return _context2.abrupt("return", request(_objectSpread$r({}, opts, {
6203
+ path: pathCancels(futureId)
6204
+ }), {
6205
+ method: 'post'
6206
+ }));
6207
+
6208
+ case 3:
6209
+ case "end":
6210
+ return _context2.stop();
6211
+ }
6212
+ }
6213
+ }, _callee2);
6214
+ }));
6215
+
6216
+ return function cancel(_x4, _x5) {
6217
+ return _ref2.apply(this, arguments);
6218
+ };
6219
+ }();
6159
6220
  /**
6160
6221
  * Get business futures
6161
6222
  * @param {String} businessId - Business ID
@@ -6163,21 +6224,38 @@ var cancel = function cancel(futureId, opts) {
6163
6224
  * @param {Object} opts - Additional options
6164
6225
  */
6165
6226
 
6166
- var getBusinessFutures = function getBusinessFutures(businessId, query, opts) {
6167
- if (opts === void 0) {
6168
- opts = {};
6169
- }
6227
+ var getBusinessFutures = /*#__PURE__*/function () {
6228
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(businessId, query, opts) {
6229
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
6230
+ while (1) {
6231
+ switch (_context3.prev = _context3.next) {
6232
+ case 0:
6233
+ if (opts === void 0) {
6234
+ opts = {};
6235
+ }
6170
6236
 
6171
- doesParamExist.default({
6172
- businessId: businessId
6173
- }, opts.hyperMediaEndpoint);
6174
- return request(_objectSpread$r({}, opts, {
6175
- path: pathBusinessFutures(businessId)
6176
- }), {
6177
- method: 'get',
6178
- params: query
6179
- });
6180
- };
6237
+ doesParamExist.default({
6238
+ businessId: businessId
6239
+ }, opts.hyperMediaEndpoint);
6240
+ return _context3.abrupt("return", request(_objectSpread$r({}, opts, {
6241
+ path: pathBusinessFutures(businessId)
6242
+ }), {
6243
+ method: 'get',
6244
+ params: query
6245
+ }));
6246
+
6247
+ case 3:
6248
+ case "end":
6249
+ return _context3.stop();
6250
+ }
6251
+ }
6252
+ }, _callee3);
6253
+ }));
6254
+
6255
+ return function getBusinessFutures(_x6, _x7, _x8) {
6256
+ return _ref3.apply(this, arguments);
6257
+ };
6258
+ }();
6181
6259
  /**
6182
6260
  * Get business future
6183
6261
  * @param {String} businessId - Business ID
@@ -6185,41 +6263,75 @@ var getBusinessFutures = function getBusinessFutures(businessId, query, opts) {
6185
6263
  * @param {Object} opts - Additional options
6186
6264
  */
6187
6265
 
6188
- var getBusinessFuture = function getBusinessFuture(businessId, futureId, opts) {
6189
- if (opts === void 0) {
6190
- opts = {};
6191
- }
6266
+ var getBusinessFuture = /*#__PURE__*/function () {
6267
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(businessId, futureId, opts) {
6268
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
6269
+ while (1) {
6270
+ switch (_context4.prev = _context4.next) {
6271
+ case 0:
6272
+ if (opts === void 0) {
6273
+ opts = {};
6274
+ }
6192
6275
 
6193
- doesParamExist.default({
6194
- businessId: businessId,
6195
- futureId: futureId
6196
- }, opts.hyperMediaEndpoint);
6197
- return request(_objectSpread$r({}, opts, {
6198
- path: pathBusinessFuture(businessId, futureId)
6199
- }), {
6200
- method: 'get'
6201
- });
6202
- };
6276
+ doesParamExist.default({
6277
+ businessId: businessId,
6278
+ futureId: futureId
6279
+ }, opts.hyperMediaEndpoint);
6280
+ return _context4.abrupt("return", request(_objectSpread$r({}, opts, {
6281
+ path: pathBusinessFuture(businessId, futureId)
6282
+ }), {
6283
+ method: 'get'
6284
+ }));
6285
+
6286
+ case 3:
6287
+ case "end":
6288
+ return _context4.stop();
6289
+ }
6290
+ }
6291
+ }, _callee4);
6292
+ }));
6293
+
6294
+ return function getBusinessFuture(_x9, _x10, _x11) {
6295
+ return _ref4.apply(this, arguments);
6296
+ };
6297
+ }();
6203
6298
  /**
6204
6299
  * Get a future
6205
6300
  * @param {String} futureId - Future ID
6206
6301
  * @param {Object} opts - Additional options
6207
6302
  */
6208
6303
 
6209
- var getFuture = function getFuture(futureId, opts) {
6210
- if (opts === void 0) {
6211
- opts = {};
6212
- }
6304
+ var getFuture = /*#__PURE__*/function () {
6305
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(futureId, opts) {
6306
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
6307
+ while (1) {
6308
+ switch (_context5.prev = _context5.next) {
6309
+ case 0:
6310
+ if (opts === void 0) {
6311
+ opts = {};
6312
+ }
6213
6313
 
6214
- doesParamExist.default({
6215
- futureId: futureId
6216
- }, opts.hyperMediaEndpoint);
6217
- return request(_objectSpread$r({}, opts, {
6218
- path: pathFuture(futureId)
6219
- }), {
6220
- method: 'get'
6221
- });
6222
- };
6314
+ doesParamExist.default({
6315
+ futureId: futureId
6316
+ }, opts.hyperMediaEndpoint);
6317
+ return _context5.abrupt("return", request(_objectSpread$r({}, opts, {
6318
+ path: pathFuture(futureId)
6319
+ }), {
6320
+ method: 'get'
6321
+ }));
6322
+
6323
+ case 3:
6324
+ case "end":
6325
+ return _context5.stop();
6326
+ }
6327
+ }
6328
+ }, _callee5);
6329
+ }));
6330
+
6331
+ return function getFuture(_x12, _x13) {
6332
+ return _ref5.apply(this, arguments);
6333
+ };
6334
+ }();
6223
6335
  /**
6224
6336
  * Get payment link
6225
6337
  * @param {String} futureId - Future ID
@@ -6227,10 +6339,10 @@ var getFuture = function getFuture(futureId, opts) {
6227
6339
  */
6228
6340
 
6229
6341
  var getPaymentLink = /*#__PURE__*/function () {
6230
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(futureId, opts) {
6231
- return _regeneratorRuntime.wrap(function _callee$(_context) {
6342
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(futureId, opts) {
6343
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
6232
6344
  while (1) {
6233
- switch (_context.prev = _context.next) {
6345
+ switch (_context6.prev = _context6.next) {
6234
6346
  case 0:
6235
6347
  if (opts === void 0) {
6236
6348
  opts = {};
@@ -6239,7 +6351,7 @@ var getPaymentLink = /*#__PURE__*/function () {
6239
6351
  doesParamExist.default({
6240
6352
  futureId: futureId
6241
6353
  }, opts.hyperMediaEndpoint);
6242
- return _context.abrupt("return", request(_objectSpread$r({}, opts, {
6354
+ return _context6.abrupt("return", request(_objectSpread$r({}, opts, {
6243
6355
  path: pathPaymentLink(futureId)
6244
6356
  }), {
6245
6357
  method: 'get'
@@ -6247,14 +6359,14 @@ var getPaymentLink = /*#__PURE__*/function () {
6247
6359
 
6248
6360
  case 3:
6249
6361
  case "end":
6250
- return _context.stop();
6362
+ return _context6.stop();
6251
6363
  }
6252
6364
  }
6253
- }, _callee);
6365
+ }, _callee6);
6254
6366
  }));
6255
6367
 
6256
- return function getPaymentLink(_x, _x2) {
6257
- return _ref.apply(this, arguments);
6368
+ return function getPaymentLink(_x14, _x15) {
6369
+ return _ref6.apply(this, arguments);
6258
6370
  };
6259
6371
  }();
6260
6372
  /**
@@ -6264,21 +6376,38 @@ var getPaymentLink = /*#__PURE__*/function () {
6264
6376
  * @param {Object} opts - Additional options
6265
6377
  */
6266
6378
 
6267
- var sendProcessingRequest = function sendProcessingRequest(futureId, body, opts) {
6268
- if (opts === void 0) {
6269
- opts = {};
6270
- }
6379
+ var sendProcessingRequest = /*#__PURE__*/function () {
6380
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(futureId, body, opts) {
6381
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
6382
+ while (1) {
6383
+ switch (_context7.prev = _context7.next) {
6384
+ case 0:
6385
+ if (opts === void 0) {
6386
+ opts = {};
6387
+ }
6271
6388
 
6272
- doesParamExist.default({
6273
- futureId: futureId
6274
- }, opts.hyperMediaEndpoint);
6275
- return request(_objectSpread$r({}, opts, {
6276
- path: pathProcessingRequests(futureId)
6277
- }), {
6278
- method: 'post',
6279
- data: body
6280
- });
6281
- };
6389
+ doesParamExist.default({
6390
+ futureId: futureId
6391
+ }, opts.hyperMediaEndpoint);
6392
+ return _context7.abrupt("return", request(_objectSpread$r({}, opts, {
6393
+ path: pathProcessingRequests(futureId)
6394
+ }), {
6395
+ method: 'post',
6396
+ data: body
6397
+ }));
6398
+
6399
+ case 3:
6400
+ case "end":
6401
+ return _context7.stop();
6402
+ }
6403
+ }
6404
+ }, _callee7);
6405
+ }));
6406
+
6407
+ return function sendProcessingRequest(_x16, _x17, _x18) {
6408
+ return _ref7.apply(this, arguments);
6409
+ };
6410
+ }();
6282
6411
  /**
6283
6412
  * Submit a future
6284
6413
  * @param {String} futureId - Future ID
@@ -6286,21 +6415,38 @@ var sendProcessingRequest = function sendProcessingRequest(futureId, body, opts)
6286
6415
  * @param {Object} opts - Additional options
6287
6416
  */
6288
6417
 
6289
- var submit = function submit(futureId, body, opts) {
6290
- if (opts === void 0) {
6291
- opts = {};
6292
- }
6418
+ var submit = /*#__PURE__*/function () {
6419
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(futureId, body, opts) {
6420
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
6421
+ while (1) {
6422
+ switch (_context8.prev = _context8.next) {
6423
+ case 0:
6424
+ if (opts === void 0) {
6425
+ opts = {};
6426
+ }
6293
6427
 
6294
- doesParamExist.default({
6295
- futureId: futureId
6296
- }, opts.hyperMediaEndpoint);
6297
- return request(_objectSpread$r({}, opts, {
6298
- path: pathSubmits(futureId)
6299
- }), {
6300
- method: 'post',
6301
- data: body
6302
- });
6303
- };
6428
+ doesParamExist.default({
6429
+ futureId: futureId
6430
+ }, opts.hyperMediaEndpoint);
6431
+ return _context8.abrupt("return", request(_objectSpread$r({}, opts, {
6432
+ path: pathSubmits(futureId)
6433
+ }), {
6434
+ method: 'post',
6435
+ data: body
6436
+ }));
6437
+
6438
+ case 3:
6439
+ case "end":
6440
+ return _context8.stop();
6441
+ }
6442
+ }
6443
+ }, _callee8);
6444
+ }));
6445
+
6446
+ return function submit(_x19, _x20, _x21) {
6447
+ return _ref8.apply(this, arguments);
6448
+ };
6449
+ }();
6304
6450
  /**
6305
6451
  * Update a future
6306
6452
  * @param {String} futureId - Future ID
@@ -6308,21 +6454,38 @@ var submit = function submit(futureId, body, opts) {
6308
6454
  * @param {Object} opts - Additional options
6309
6455
  */
6310
6456
 
6311
- var update = function update(futureId, body, opts) {
6312
- if (opts === void 0) {
6313
- opts = {};
6314
- }
6457
+ var update = /*#__PURE__*/function () {
6458
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(futureId, body, opts) {
6459
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
6460
+ while (1) {
6461
+ switch (_context9.prev = _context9.next) {
6462
+ case 0:
6463
+ if (opts === void 0) {
6464
+ opts = {};
6465
+ }
6315
6466
 
6316
- doesParamExist.default({
6317
- futureId: futureId
6318
- }, opts.hyperMediaEndpoint);
6319
- return request(_objectSpread$r({}, opts, {
6320
- path: pathFuture(futureId)
6321
- }), {
6322
- method: 'put',
6323
- data: body
6324
- });
6325
- };
6467
+ doesParamExist.default({
6468
+ futureId: futureId
6469
+ }, opts.hyperMediaEndpoint);
6470
+ return _context9.abrupt("return", request(_objectSpread$r({}, opts, {
6471
+ path: pathFuture(futureId)
6472
+ }), {
6473
+ method: 'put',
6474
+ data: body
6475
+ }));
6476
+
6477
+ case 3:
6478
+ case "end":
6479
+ return _context9.stop();
6480
+ }
6481
+ }
6482
+ }, _callee9);
6483
+ }));
6484
+
6485
+ return function update(_x22, _x23, _x24) {
6486
+ return _ref9.apply(this, arguments);
6487
+ };
6488
+ }();
6326
6489
  /**
6327
6490
  * Send a payment receipt for a future
6328
6491
  * @param {String} futureId - Future ID
@@ -6330,21 +6493,38 @@ var update = function update(futureId, body, opts) {
6330
6493
  * @param {Object} opts - Additional options
6331
6494
  */
6332
6495
 
6333
- var sendReceipt = function sendReceipt(futureId, body, opts) {
6334
- if (opts === void 0) {
6335
- opts = {};
6336
- }
6496
+ var sendReceipt = /*#__PURE__*/function () {
6497
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(futureId, body, opts) {
6498
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
6499
+ while (1) {
6500
+ switch (_context10.prev = _context10.next) {
6501
+ case 0:
6502
+ if (opts === void 0) {
6503
+ opts = {};
6504
+ }
6337
6505
 
6338
- doesParamExist.default({
6339
- futureId: futureId
6340
- }, opts.hyperMediaEndpoint);
6341
- return request(_objectSpread$r({}, opts, {
6342
- path: pathSendReceipt(futureId)
6343
- }), {
6344
- method: 'post',
6345
- data: body
6346
- });
6347
- };
6506
+ doesParamExist.default({
6507
+ futureId: futureId
6508
+ }, opts.hyperMediaEndpoint);
6509
+ return _context10.abrupt("return", request(_objectSpread$r({}, opts, {
6510
+ path: pathSendReceipt(futureId)
6511
+ }), {
6512
+ method: 'post',
6513
+ data: body
6514
+ }));
6515
+
6516
+ case 3:
6517
+ case "end":
6518
+ return _context10.stop();
6519
+ }
6520
+ }
6521
+ }, _callee10);
6522
+ }));
6523
+
6524
+ return function sendReceipt(_x25, _x26, _x27) {
6525
+ return _ref10.apply(this, arguments);
6526
+ };
6527
+ }();
6348
6528
 
6349
6529
  var futures = /*#__PURE__*/Object.freeze({
6350
6530
  __proto__: null,
@@ -16998,7 +17178,7 @@ var registerTerminal = /*#__PURE__*/function () {
16998
17178
  * @param {Object} opts - Additional options
16999
17179
  */
17000
17180
 
17001
- var getBusinessTerminals = /*#__PURE__*/function () {
17181
+ var getBusinessTerminals$1 = /*#__PURE__*/function () {
17002
17182
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(businessId, query, opts) {
17003
17183
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
17004
17184
  while (1) {
@@ -17288,7 +17468,7 @@ var terminals = /*#__PURE__*/Object.freeze({
17288
17468
  pathResetTerminal: pathResetTerminal,
17289
17469
  pathClientTokenByPracticeId: pathClientTokenByPracticeId,
17290
17470
  registerTerminal: registerTerminal,
17291
- getBusinessTerminals: getBusinessTerminals,
17471
+ getBusinessTerminals: getBusinessTerminals$1,
17292
17472
  getTerminals: getTerminals,
17293
17473
  getTerminal: getTerminal,
17294
17474
  updateTerminal: updateTerminal,
@@ -22678,6 +22858,7 @@ exports.getBusinessStaffUploadUrl = getBusinessStaffUploadUrl;
22678
22858
  exports.getBusinessSubscription = getBusinessSubscription;
22679
22859
  exports.getBusinessSubscriptions = getBusinessSubscriptions;
22680
22860
  exports.getBusinessTerminals = getBusinessTerminals;
22861
+ exports.getBusinessTerminals$1 = getBusinessTerminals$1;
22681
22862
  exports.getBusinessTransaction = getBusinessTransaction;
22682
22863
  exports.getBusinessTransactionByInvoiceReference = getBusinessTransactionByInvoiceReference;
22683
22864
  exports.getBusinessTransactionPaymentReport = getBusinessTransactionPaymentReport;
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-75ea1b6f.js');
17
+ var request = require('../staff-b636bd48.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-75ea1b6f.js');
17
+ var request = require('../staff-b636bd48.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-75ea1b6f.js');
17
+ var request = require('../staff-b636bd48.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-75ea1b6f.js');
17
+ var request = require('../staff-b636bd48.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "11.52.3",
3
+ "version": "11.53.1-chore-discounted-pricing-endpoint.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/plugin-transform-runtime": "7.8.3",
48
- "@medipass/utils": "^11.75.2",
48
+ "@medipass/utils": "^11.76.0",
49
49
  "@types/jest": "28.1.6",
50
50
  "@types/mocha": "9.1.1",
51
51
  "@types/node": "18.7.1",
@@ -57,5 +57,5 @@
57
57
  "resolutions": {
58
58
  "react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
59
59
  },
60
- "gitHead": "24aad1d1f241e14df98e2add87b2f5ae7f56dc63"
60
+ "gitHead": "4300007f179aa02be93ec353fd288c6d03f1f035"
61
61
  }