@medipass/web-sdk 11.70.6 → 11.70.8
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.d.ts +3 -1
- package/lib/index.js +2 -1
- package/lib/resources/__tests__/apple.test.d.ts +1 -0
- package/lib/resources/abr.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/applePay.d.ts +11 -0
- package/lib/resources/applePay.js +49 -0
- package/lib/resources/applications.js +1 -1
- package/lib/resources/attachments.js +1 -1
- package/lib/resources/auth.js +1 -1
- package/lib/resources/blacklist.js +1 -1
- package/lib/resources/bulk-submits.js +1 -1
- package/lib/resources/bulk-uploads.js +1 -1
- package/lib/resources/business-email-log.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/filter-options.js +1 -1
- package/lib/resources/form-application-templates.js +1 -1
- package/lib/resources/form-applications.js +1 -1
- package/lib/resources/forms.js +1 -1
- package/lib/resources/funder-services.js +1 -1
- package/lib/resources/funder-settings.js +1 -1
- package/lib/resources/funder-values.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/icare.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/qbe.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 -1
- 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-f11af0e4.js → staff-ef1bde1e.js} +125 -50
- package/lib/utils/application.js +1 -1
- package/lib/utils/professions.js +1 -1
- package/lib/utils/request.js +1 -1
- package/lib/utils/staff.js +1 -1
- package/package.json +2 -2
|
@@ -79,9 +79,9 @@ var staffUtils = /*#__PURE__*/Object.freeze({
|
|
|
79
79
|
get parseProviderRegistrations () { return parseProviderRegistrations; }
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
function ownKeys$
|
|
82
|
+
function ownKeys$1l(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; }
|
|
83
83
|
|
|
84
|
-
function _objectSpread$
|
|
84
|
+
function _objectSpread$1l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1l(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
85
85
|
var DEFAULT_API_NAME = 'core';
|
|
86
86
|
|
|
87
87
|
var getBaseUrl = function getBaseUrl(apiName, requestOpts) {
|
|
@@ -103,7 +103,7 @@ var stripBottleneckOpts = function stripBottleneckOpts(axiosRequestOpts) {
|
|
|
103
103
|
axiosRequestOpts = {};
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
var opts = _objectSpread$
|
|
106
|
+
var opts = _objectSpread$1l({}, axiosRequestOpts);
|
|
107
107
|
|
|
108
108
|
if (((_opts$params = opts.params) == null ? void 0 : (_opts$params$searchTe = _opts$params.searchText) == null ? void 0 : _opts$params$searchTe.trim().length) < 3) {
|
|
109
109
|
console.error("Unable to query transactions with a search text fewer than 3 characters. Ignoring search for query " + axiosRequestOpts.params.searchText);
|
|
@@ -131,7 +131,7 @@ var request = /*#__PURE__*/function () {
|
|
|
131
131
|
strippedAxiosRequestOpts = medipassRequestOpts.unrestrictBottleneckOpts ? axiosRequestOpts : module.exports.stripBottleneckOpts(axiosRequestOpts);
|
|
132
132
|
_context.prev = 5;
|
|
133
133
|
_context.next = 8;
|
|
134
|
-
return sdkClient.axios(medipassRequestOpts.hyperMediaEndpoint || "" + baseUrl + version + medipassRequestOpts.path, _objectSpread$
|
|
134
|
+
return sdkClient.axios(medipassRequestOpts.hyperMediaEndpoint || "" + baseUrl + version + medipassRequestOpts.path, _objectSpread$1l({}, strippedAxiosRequestOpts, {}, medipassRequestOpts.requestConfig));
|
|
135
135
|
|
|
136
136
|
case 8:
|
|
137
137
|
res = _context.sent;
|
|
@@ -167,9 +167,9 @@ var request = /*#__PURE__*/function () {
|
|
|
167
167
|
};
|
|
168
168
|
}();
|
|
169
169
|
|
|
170
|
-
function ownKeys$
|
|
170
|
+
function ownKeys$1k(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; }
|
|
171
171
|
|
|
172
|
-
function _objectSpread$
|
|
172
|
+
function _objectSpread$1k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1k(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
173
173
|
var pathGetAbr = function pathGetAbr() {
|
|
174
174
|
return '/abr/search';
|
|
175
175
|
};
|
|
@@ -188,7 +188,7 @@ var getAbr = /*#__PURE__*/function () {
|
|
|
188
188
|
opts = {};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
return _context.abrupt("return", request(_objectSpread$
|
|
191
|
+
return _context.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
192
192
|
path: pathGetAbr()
|
|
193
193
|
}), {
|
|
194
194
|
method: 'get',
|
|
@@ -214,6 +214,53 @@ var abr = /*#__PURE__*/Object.freeze({
|
|
|
214
214
|
getAbr: getAbr
|
|
215
215
|
});
|
|
216
216
|
|
|
217
|
+
function ownKeys$1j(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; }
|
|
218
|
+
|
|
219
|
+
function _objectSpread$1j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1j(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
220
|
+
var pathPerformMerchantValidation = function pathPerformMerchantValidation() {
|
|
221
|
+
return '/applepay/validatesession';
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @param {Object} body - Response body
|
|
226
|
+
* @param {Object} opts - Additional options
|
|
227
|
+
*/
|
|
228
|
+
var performMerchantValidation = /*#__PURE__*/function () {
|
|
229
|
+
var _ref = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(body, opts) {
|
|
230
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
231
|
+
while (1) {
|
|
232
|
+
switch (_context.prev = _context.next) {
|
|
233
|
+
case 0:
|
|
234
|
+
if (opts === void 0) {
|
|
235
|
+
opts = {};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
return _context.abrupt("return", request(_objectSpread$1j({}, opts, {
|
|
239
|
+
path: pathPerformMerchantValidation()
|
|
240
|
+
}), {
|
|
241
|
+
method: 'post',
|
|
242
|
+
data: body
|
|
243
|
+
}));
|
|
244
|
+
|
|
245
|
+
case 2:
|
|
246
|
+
case "end":
|
|
247
|
+
return _context.stop();
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}, _callee);
|
|
251
|
+
}));
|
|
252
|
+
|
|
253
|
+
return function performMerchantValidation(_x, _x2) {
|
|
254
|
+
return _ref.apply(this, arguments);
|
|
255
|
+
};
|
|
256
|
+
}();
|
|
257
|
+
|
|
258
|
+
var applePay = /*#__PURE__*/Object.freeze({
|
|
259
|
+
__proto__: null,
|
|
260
|
+
pathPerformMerchantValidation: pathPerformMerchantValidation,
|
|
261
|
+
performMerchantValidation: performMerchantValidation
|
|
262
|
+
});
|
|
263
|
+
|
|
217
264
|
function ownKeys$1i(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; }
|
|
218
265
|
|
|
219
266
|
function _objectSpread$1i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1i(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -11697,7 +11744,7 @@ var getPaymentGatewayError = function getPaymentGatewayError(sessionResponse) {
|
|
|
11697
11744
|
|
|
11698
11745
|
var getNonce = /*#__PURE__*/function () {
|
|
11699
11746
|
var _ref22 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee21(_ref21, opts) {
|
|
11700
|
-
var amount, businessId, patientId, _cardNumber, expiry, cvc, _ref21$paymentProvide, paymentProvider, _ref21$isSales, isSales, _ref21$isSelfCheckout, isSelfCheckoutSession, _ref21$source, source, cardNumber, cardExpiryMonth, cardExpiryYear, cardSecurityCode, clientToken, _window, _window$google, _window$google$paymen, paymentSession, updateSessionResponse, error, _clientToken, paymentsClient, tokenizationSpecification, baseCardPaymentMethod, cardPaymentMethod, response, _clientToken2, paymentDataRequest, paymentData, clientInstance, sourceResponse, _sourceResponse, _sourceResponse$credi, _sourceResponse$credi2, _paymentsClient, googlePaymentInstance, _response, _paymentDataRequest, _cardPaymentMethod, _paymentData,
|
|
11747
|
+
var amount, businessId, patientId, _cardNumber, expiry, cvc, _ref21$paymentProvide, paymentProvider, _ref21$isSales, isSales, _ref21$isSelfCheckout, isSelfCheckoutSession, _ref21$source, source, cardNumber, cardExpiryMonth, cardExpiryYear, cardSecurityCode, clientToken, _window, _window$google, _window$google$paymen, paymentSession, updateSessionResponse, error, _clientToken, paymentsClient, tokenizationSpecification, baseCardPaymentMethod, cardPaymentMethod, response, _clientToken2, paymentDataRequest, paymentData, _clientToken3, canMakeApplePayment, paymentRequest, applePayInstance, clientInstance, sourceResponse, _sourceResponse, _sourceResponse$credi, _sourceResponse$credi2, _paymentsClient, googlePaymentInstance, _response, _paymentDataRequest, _cardPaymentMethod, _paymentData, _applePayInstance, _paymentRequest, _canMakeApplePayment;
|
|
11701
11748
|
|
|
11702
11749
|
return _regeneratorRuntime__default["default"].wrap(function _callee21$(_context21) {
|
|
11703
11750
|
while (1) {
|
|
@@ -11772,7 +11819,7 @@ var getNonce = /*#__PURE__*/function () {
|
|
|
11772
11819
|
if (!clientToken.source) clientToken.source = source;
|
|
11773
11820
|
|
|
11774
11821
|
if (!(clientToken.source === 'mastercard')) {
|
|
11775
|
-
_context21.next =
|
|
11822
|
+
_context21.next = 64;
|
|
11776
11823
|
break;
|
|
11777
11824
|
}
|
|
11778
11825
|
|
|
@@ -11827,7 +11874,7 @@ var getNonce = /*#__PURE__*/function () {
|
|
|
11827
11874
|
|
|
11828
11875
|
case 42:
|
|
11829
11876
|
if (!(paymentProvider === constants.PAYMENT_PROVIDERS.GOOGLE_PAY && amount && (_window = window) != null && (_window$google = _window.google) != null && (_window$google$paymen = _window$google.payments) != null && _window$google$paymen.api)) {
|
|
11830
|
-
_context21.next =
|
|
11877
|
+
_context21.next = 56;
|
|
11831
11878
|
break;
|
|
11832
11879
|
}
|
|
11833
11880
|
|
|
@@ -11863,11 +11910,10 @@ var getNonce = /*#__PURE__*/function () {
|
|
|
11863
11910
|
response = _context21.sent;
|
|
11864
11911
|
|
|
11865
11912
|
if (!response.result) {
|
|
11866
|
-
_context21.next =
|
|
11913
|
+
_context21.next = 56;
|
|
11867
11914
|
break;
|
|
11868
11915
|
}
|
|
11869
11916
|
|
|
11870
|
-
console.log('JOSH: NEW response', response);
|
|
11871
11917
|
paymentDataRequest = {
|
|
11872
11918
|
apiVersion: 2,
|
|
11873
11919
|
apiVersionMinor: 0,
|
|
@@ -11886,43 +11932,68 @@ var getNonce = /*#__PURE__*/function () {
|
|
|
11886
11932
|
prefetch payment method data for performance boost
|
|
11887
11933
|
*/
|
|
11888
11934
|
|
|
11889
|
-
_context21.next =
|
|
11935
|
+
_context21.next = 54;
|
|
11890
11936
|
return paymentsClient.loadPaymentData(paymentDataRequest);
|
|
11891
11937
|
|
|
11892
|
-
case
|
|
11938
|
+
case 54:
|
|
11893
11939
|
paymentData = _context21.sent;
|
|
11894
|
-
console.log('JOSH: NEW loadPaymentData', paymentData);
|
|
11895
11940
|
return _context21.abrupt("return", _objectSpread$A({}, clientToken, {
|
|
11896
11941
|
nonce: paymentData.paymentMethodData.tokenizationData.token,
|
|
11897
11942
|
sourceResponse: paymentData
|
|
11898
11943
|
}));
|
|
11899
11944
|
|
|
11900
|
-
case
|
|
11901
|
-
if (paymentProvider === constants.PAYMENT_PROVIDERS.APPLE_PAY)
|
|
11945
|
+
case 56:
|
|
11946
|
+
if (!(paymentProvider === constants.PAYMENT_PROVIDERS.APPLE_PAY)) {
|
|
11947
|
+
_context21.next = 63;
|
|
11948
|
+
break;
|
|
11949
|
+
}
|
|
11950
|
+
|
|
11951
|
+
_context21.next = 59;
|
|
11952
|
+
return window.ApplePaySession.canMakePaymentsWithActiveCard((_clientToken3 = clientToken) == null ? void 0 : _clientToken3.merchantId);
|
|
11953
|
+
|
|
11954
|
+
case 59:
|
|
11955
|
+
canMakeApplePayment = _context21.sent;
|
|
11956
|
+
paymentRequest = {
|
|
11957
|
+
countryCode: 'AU',
|
|
11958
|
+
currencyCode: 'AUD',
|
|
11959
|
+
supportedNetworks: ['visa', 'masterCard'],
|
|
11960
|
+
merchantCapabilities: ['supports3DS'],
|
|
11961
|
+
total: {
|
|
11962
|
+
label: 'Tyro Health',
|
|
11963
|
+
amount: amount == null ? void 0 : amount.replace('$', '')
|
|
11964
|
+
}
|
|
11965
|
+
};
|
|
11966
|
+
applePayInstance = null;
|
|
11967
|
+
return _context21.abrupt("return", _objectSpread$A({}, clientToken, {
|
|
11968
|
+
applePayInstance: applePayInstance,
|
|
11969
|
+
canMakeApplePayment: canMakeApplePayment,
|
|
11970
|
+
paymentRequest: paymentRequest
|
|
11971
|
+
}));
|
|
11902
11972
|
|
|
11973
|
+
case 63:
|
|
11903
11974
|
return _context21.abrupt("return", clientToken);
|
|
11904
11975
|
|
|
11905
|
-
case
|
|
11976
|
+
case 64:
|
|
11906
11977
|
if (!(clientToken.source === 'braintree')) {
|
|
11907
|
-
_context21.next =
|
|
11978
|
+
_context21.next = 102;
|
|
11908
11979
|
break;
|
|
11909
11980
|
}
|
|
11910
11981
|
|
|
11911
|
-
_context21.next =
|
|
11982
|
+
_context21.next = 67;
|
|
11912
11983
|
return braintreeClient__default["default"].create({
|
|
11913
11984
|
authorization: clientToken.clientToken
|
|
11914
11985
|
});
|
|
11915
11986
|
|
|
11916
|
-
case
|
|
11987
|
+
case 67:
|
|
11917
11988
|
clientInstance = _context21.sent;
|
|
11918
11989
|
sourceResponse = {};
|
|
11919
11990
|
|
|
11920
11991
|
if (!(paymentProvider === constants.PAYMENT_PROVIDERS.PAYMENT_CARD)) {
|
|
11921
|
-
_context21.next =
|
|
11992
|
+
_context21.next = 74;
|
|
11922
11993
|
break;
|
|
11923
11994
|
}
|
|
11924
11995
|
|
|
11925
|
-
_context21.next =
|
|
11996
|
+
_context21.next = 72;
|
|
11926
11997
|
return clientInstance.request({
|
|
11927
11998
|
endpoint: 'payment_methods/credit_cards',
|
|
11928
11999
|
method: 'post',
|
|
@@ -11938,43 +12009,43 @@ var getNonce = /*#__PURE__*/function () {
|
|
|
11938
12009
|
}
|
|
11939
12010
|
});
|
|
11940
12011
|
|
|
11941
|
-
case
|
|
12012
|
+
case 72:
|
|
11942
12013
|
sourceResponse = _context21.sent;
|
|
11943
12014
|
return _context21.abrupt("return", _objectSpread$A({}, clientToken, {
|
|
11944
12015
|
nonce: (_sourceResponse = sourceResponse) == null ? void 0 : (_sourceResponse$credi = _sourceResponse.creditCards) == null ? void 0 : (_sourceResponse$credi2 = _sourceResponse$credi[0]) == null ? void 0 : _sourceResponse$credi2.nonce,
|
|
11945
12016
|
sourceResponse: sourceResponse
|
|
11946
12017
|
}));
|
|
11947
12018
|
|
|
11948
|
-
case
|
|
12019
|
+
case 74:
|
|
11949
12020
|
if (!(paymentProvider === constants.PAYMENT_PROVIDERS.GOOGLE_PAY && amount && _get__default["default"](window, 'google.payments.api'))) {
|
|
11950
|
-
_context21.next =
|
|
12021
|
+
_context21.next = 93;
|
|
11951
12022
|
break;
|
|
11952
12023
|
}
|
|
11953
12024
|
|
|
11954
12025
|
_paymentsClient = new window.google.payments.api.PaymentsClient({
|
|
11955
12026
|
environment: env__default["default"].ENV_NAME === 'prod' || env__default["default"].ENV_NAME === 'pre-prod' ? 'PRODUCTION' : 'TEST'
|
|
11956
12027
|
});
|
|
11957
|
-
_context21.next =
|
|
12028
|
+
_context21.next = 78;
|
|
11958
12029
|
return braintreeGooglePayment__default["default"].create({
|
|
11959
12030
|
client: clientInstance,
|
|
11960
12031
|
googlePayVersion: 2,
|
|
11961
12032
|
googleMerchantId: env__default["default"].GOOGLE_MERCHANT_ID
|
|
11962
12033
|
});
|
|
11963
12034
|
|
|
11964
|
-
case
|
|
12035
|
+
case 78:
|
|
11965
12036
|
googlePaymentInstance = _context21.sent;
|
|
11966
|
-
_context21.next =
|
|
12037
|
+
_context21.next = 81;
|
|
11967
12038
|
return _paymentsClient.isReadyToPay({
|
|
11968
12039
|
apiVersion: 2,
|
|
11969
12040
|
apiVersionMinor: 0,
|
|
11970
12041
|
allowedPaymentMethods: googlePaymentInstance.createPaymentDataRequest().allowedPaymentMethods
|
|
11971
12042
|
});
|
|
11972
12043
|
|
|
11973
|
-
case
|
|
12044
|
+
case 81:
|
|
11974
12045
|
_response = _context21.sent;
|
|
11975
12046
|
|
|
11976
12047
|
if (!_response.result) {
|
|
11977
|
-
_context21.next =
|
|
12048
|
+
_context21.next = 93;
|
|
11978
12049
|
break;
|
|
11979
12050
|
}
|
|
11980
12051
|
|
|
@@ -11987,55 +12058,55 @@ var getNonce = /*#__PURE__*/function () {
|
|
|
11987
12058
|
});
|
|
11988
12059
|
_cardPaymentMethod = _paymentDataRequest.allowedPaymentMethods[0];
|
|
11989
12060
|
_cardPaymentMethod.parameters.billingAddressRequired = false;
|
|
11990
|
-
_context21.next =
|
|
12061
|
+
_context21.next = 88;
|
|
11991
12062
|
return _paymentsClient.loadPaymentData(_paymentDataRequest);
|
|
11992
12063
|
|
|
11993
|
-
case
|
|
12064
|
+
case 88:
|
|
11994
12065
|
_paymentData = _context21.sent;
|
|
11995
|
-
_context21.next =
|
|
12066
|
+
_context21.next = 91;
|
|
11996
12067
|
return googlePaymentInstance.parseResponse(_paymentData);
|
|
11997
12068
|
|
|
11998
|
-
case
|
|
12069
|
+
case 91:
|
|
11999
12070
|
sourceResponse = _context21.sent;
|
|
12000
12071
|
return _context21.abrupt("return", _objectSpread$A({}, clientToken, {
|
|
12001
12072
|
nonce: sourceResponse.nonce,
|
|
12002
12073
|
sourceResponse: sourceResponse
|
|
12003
12074
|
}));
|
|
12004
12075
|
|
|
12005
|
-
case
|
|
12076
|
+
case 93:
|
|
12006
12077
|
if (!(paymentProvider === constants.PAYMENT_PROVIDERS.APPLE_PAY)) {
|
|
12007
|
-
_context21.next =
|
|
12078
|
+
_context21.next = 102;
|
|
12008
12079
|
break;
|
|
12009
12080
|
}
|
|
12010
12081
|
|
|
12011
|
-
_context21.next =
|
|
12082
|
+
_context21.next = 96;
|
|
12012
12083
|
return braintreeApplePay__default["default"].create({
|
|
12013
12084
|
client: clientInstance
|
|
12014
12085
|
});
|
|
12015
12086
|
|
|
12016
|
-
case
|
|
12017
|
-
|
|
12018
|
-
|
|
12087
|
+
case 96:
|
|
12088
|
+
_applePayInstance = _context21.sent;
|
|
12089
|
+
_paymentRequest = _applePayInstance.createPaymentRequest({
|
|
12019
12090
|
total: {
|
|
12020
12091
|
label: 'Tyro Health Payment',
|
|
12021
12092
|
amount: amount == null ? void 0 : amount.replace('$', '')
|
|
12022
12093
|
}
|
|
12023
12094
|
});
|
|
12024
|
-
_context21.next =
|
|
12025
|
-
return window.ApplePaySession.canMakePaymentsWithActiveCard(
|
|
12095
|
+
_context21.next = 100;
|
|
12096
|
+
return window.ApplePaySession.canMakePaymentsWithActiveCard(_applePayInstance.merchantIdentifier);
|
|
12026
12097
|
|
|
12027
|
-
case
|
|
12028
|
-
|
|
12098
|
+
case 100:
|
|
12099
|
+
_canMakeApplePayment = _context21.sent;
|
|
12029
12100
|
return _context21.abrupt("return", _objectSpread$A({}, clientToken, {
|
|
12030
|
-
applePayInstance:
|
|
12031
|
-
canMakeApplePayment:
|
|
12032
|
-
paymentRequest:
|
|
12101
|
+
applePayInstance: _applePayInstance,
|
|
12102
|
+
canMakeApplePayment: _canMakeApplePayment,
|
|
12103
|
+
paymentRequest: _paymentRequest
|
|
12033
12104
|
}));
|
|
12034
12105
|
|
|
12035
|
-
case
|
|
12106
|
+
case 102:
|
|
12036
12107
|
return _context21.abrupt("return", clientToken);
|
|
12037
12108
|
|
|
12038
|
-
case
|
|
12109
|
+
case 103:
|
|
12039
12110
|
case "end":
|
|
12040
12111
|
return _context21.stop();
|
|
12041
12112
|
}
|
|
@@ -23105,6 +23176,7 @@ var sdkClient = {
|
|
|
23105
23176
|
},
|
|
23106
23177
|
// Attach resource getters/setters
|
|
23107
23178
|
abr: abr,
|
|
23179
|
+
applePay: applePay,
|
|
23108
23180
|
accounts: accounts,
|
|
23109
23181
|
actions: actions,
|
|
23110
23182
|
apiKeys: apiKeys,
|
|
@@ -23673,6 +23745,7 @@ exports.addMemberToSelfCheckoutSession = addMemberToSelfCheckoutSession;
|
|
|
23673
23745
|
exports.addPaymentMethodToSelfCheckoutSession = addPaymentMethodToSelfCheckoutSession;
|
|
23674
23746
|
exports.addTransactionNote = addTransactionNote;
|
|
23675
23747
|
exports.apiKeys = apiKeys;
|
|
23748
|
+
exports.applePay = applePay;
|
|
23676
23749
|
exports.applicationUtils = applicationUtils;
|
|
23677
23750
|
exports.applications = applications;
|
|
23678
23751
|
exports.applyForBusinessForm = applyForBusinessForm;
|
|
@@ -24250,6 +24323,7 @@ exports.pathOrganisationBusinessProfiles = pathOrganisationBusinessProfiles;
|
|
|
24250
24323
|
exports.pathOrganisationPracticeProfiles = pathOrganisationPracticeProfiles;
|
|
24251
24324
|
exports.pathOrganisationStaffProfiles = pathOrganisationStaffProfiles;
|
|
24252
24325
|
exports.pathPaymentLink = pathPaymentLink;
|
|
24326
|
+
exports.pathPerformMerchantValidation = pathPerformMerchantValidation;
|
|
24253
24327
|
exports.pathPracticeKyc = pathPracticeKyc;
|
|
24254
24328
|
exports.pathPracticeKycUnverify = pathPracticeKycUnverify;
|
|
24255
24329
|
exports.pathPracticeKycVerify = pathPracticeKycVerify;
|
|
@@ -24293,6 +24367,7 @@ exports.pathVerifyEclipse = pathVerifyEclipse;
|
|
|
24293
24367
|
exports.patients = patients;
|
|
24294
24368
|
exports.pay = pay;
|
|
24295
24369
|
exports.payments = payments;
|
|
24370
|
+
exports.performMerchantValidation = performMerchantValidation;
|
|
24296
24371
|
exports.pms = pms;
|
|
24297
24372
|
exports.practiceProfiles = practiceProfiles;
|
|
24298
24373
|
exports.practiceTypes = practiceTypes;
|
package/lib/utils/application.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
6
6
|
require('@babel/runtime/regenerator');
|
|
7
|
-
var utils_request = require('../staff-
|
|
7
|
+
var utils_request = require('../staff-ef1bde1e.js');
|
|
8
8
|
require('@babel/runtime/helpers/defineProperty');
|
|
9
9
|
require('lodash/merge');
|
|
10
10
|
require('lodash/uniq');
|
package/lib/utils/professions.js
CHANGED
|
@@ -7,7 +7,7 @@ require('@babel/runtime/helpers/asyncToGenerator');
|
|
|
7
7
|
require('@babel/runtime/regenerator');
|
|
8
8
|
require('lodash/uniq');
|
|
9
9
|
require('lodash/flatten');
|
|
10
|
-
var utils_request = require('../staff-
|
|
10
|
+
var utils_request = require('../staff-ef1bde1e.js');
|
|
11
11
|
require('lodash/merge');
|
|
12
12
|
require('axios');
|
|
13
13
|
require('date-fns/differenceInSeconds');
|
package/lib/utils/request.js
CHANGED
|
@@ -7,7 +7,7 @@ require('@babel/runtime/helpers/defineProperty');
|
|
|
7
7
|
require('@babel/runtime/regenerator');
|
|
8
8
|
require('@medipass/utils/sentry');
|
|
9
9
|
require('lodash/get');
|
|
10
|
-
var utils_request = require('../staff-
|
|
10
|
+
var utils_request = require('../staff-ef1bde1e.js');
|
|
11
11
|
require('./get-axios-error.js');
|
|
12
12
|
require('lodash/merge');
|
|
13
13
|
require('lodash/uniq');
|
package/lib/utils/staff.js
CHANGED
|
@@ -7,7 +7,7 @@ require('@babel/runtime/helpers/asyncToGenerator');
|
|
|
7
7
|
require('@babel/runtime/regenerator');
|
|
8
8
|
require('lodash/merge');
|
|
9
9
|
require('lodash/uniq');
|
|
10
|
-
var utils_request = require('../staff-
|
|
10
|
+
var utils_request = require('../staff-ef1bde1e.js');
|
|
11
11
|
require('axios');
|
|
12
12
|
require('date-fns/differenceInSeconds');
|
|
13
13
|
require('jwt-decode');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/web-sdk",
|
|
3
|
-
"version": "11.70.
|
|
3
|
+
"version": "11.70.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"resolutions": {
|
|
60
60
|
"react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "e0ad08e956c5bb4912984d064a490883dd726feb"
|
|
63
63
|
}
|