@paystack/checkout-js 1.24.0 → 1.25.0-dev.1

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/es/checkout.js CHANGED
@@ -20797,6 +20797,21 @@ var ToolkitAPI = {
20797
20797
  resolvedCardBins[bin] = data;
20798
20798
  return data;
20799
20799
  });
20800
+ },
20801
+ resolveIPAddress: function resolveIPAddress(ipAddress) {
20802
+ var url = new URL("decision/resolve_ip/".concat(ipAddress), configToUse.paystackApiUrl).toString();
20803
+ var language = getLanguage();
20804
+
20805
+ var headers = _objectSpread2({}, language && {
20806
+ 'Accept-Language': language
20807
+ });
20808
+
20809
+ return axiosInstance.get(url, {
20810
+ headers: headers
20811
+ }).then(function (_ref2) {
20812
+ var data = _ref2.data;
20813
+ return data;
20814
+ });
20800
20815
  }
20801
20816
  };
20802
20817
 
@@ -20862,6 +20877,11 @@ var Toolkit = /*#__PURE__*/function () {
20862
20877
  value: function resolveCardBin(bin) {
20863
20878
  return ToolkitAPI.resolveCardBin(bin);
20864
20879
  }
20880
+ }, {
20881
+ key: "resolveIPAddress",
20882
+ value: function resolveIPAddress(ipAddress) {
20883
+ return ToolkitAPI.resolveIPAddress(ipAddress);
20884
+ }
20865
20885
  }]);
20866
20886
 
20867
20887
  return Toolkit;
@@ -21303,6 +21323,8 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
21303
21323
  return PreauthorisationAPI.requery({
21304
21324
  reference: this.reference,
21305
21325
  publicKey: this.merchant.key
21326
+ }).then(function (response) {
21327
+ return response.data;
21306
21328
  });
21307
21329
  }
21308
21330
  }, {
package/lib/checkout.js CHANGED
@@ -20801,6 +20801,21 @@ var ToolkitAPI = {
20801
20801
  resolvedCardBins[bin] = data;
20802
20802
  return data;
20803
20803
  });
20804
+ },
20805
+ resolveIPAddress: function resolveIPAddress(ipAddress) {
20806
+ var url = new URL("decision/resolve_ip/".concat(ipAddress), configToUse.paystackApiUrl).toString();
20807
+ var language = getLanguage();
20808
+
20809
+ var headers = _objectSpread2({}, language && {
20810
+ 'Accept-Language': language
20811
+ });
20812
+
20813
+ return axiosInstance.get(url, {
20814
+ headers: headers
20815
+ }).then(function (_ref2) {
20816
+ var data = _ref2.data;
20817
+ return data;
20818
+ });
20804
20819
  }
20805
20820
  };
20806
20821
 
@@ -20866,6 +20881,11 @@ var Toolkit = /*#__PURE__*/function () {
20866
20881
  value: function resolveCardBin(bin) {
20867
20882
  return ToolkitAPI.resolveCardBin(bin);
20868
20883
  }
20884
+ }, {
20885
+ key: "resolveIPAddress",
20886
+ value: function resolveIPAddress(ipAddress) {
20887
+ return ToolkitAPI.resolveIPAddress(ipAddress);
20888
+ }
20869
20889
  }]);
20870
20890
 
20871
20891
  return Toolkit;
@@ -21307,6 +21327,8 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
21307
21327
  return PreauthorisationAPI.requery({
21308
21328
  reference: this.reference,
21309
21329
  publicKey: this.merchant.key
21330
+ }).then(function (response) {
21331
+ return response.data;
21310
21332
  });
21311
21333
  }
21312
21334
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.24.0",
3
+ "version": "1.25.0-dev.1",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",