@rebilly/instruments 6.0.3 → 7.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [7.0.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v6.0.4...instruments/core-v7.0.0) (2023-10-02)
2
+
3
+
4
+ ### ⚠ BREAKING CHANGES
5
+
6
+ * **rebilly-js-sdk:** Rename stopAmlCheckReview to stopReview (#1654)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **rebilly-js-sdk:** Rename stopAmlCheckReview to stopReview ([#1654](https://github.com/Rebilly/rebilly/issues/1654)) ([11a86c8](https://github.com/Rebilly/rebilly/commit/11a86c8cd667c3438a1129806b7dfef3d013d039))
11
+
12
+ ## [6.0.4](https://github.com/Rebilly/rebilly/compare/instruments/core-v6.0.3...instruments/core-v6.0.4) (2023-09-26)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **instruments:** postPayment function didn't include the risk metadata on payload ([#1568](https://github.com/Rebilly/rebilly/issues/1568)) ([da59c14](https://github.com/Rebilly/rebilly/commit/da59c143f4baa201e2c196c74bc1c3b955f7040f))
18
+
1
19
  ## [6.0.3](https://github.com/Rebilly/rebilly/compare/instruments/core-v6.0.2...instruments/core-v6.0.3) (2023-09-26)
2
20
 
3
21
 
package/dist/index.js CHANGED
@@ -5323,7 +5323,7 @@ function cloneArrayDeep(val, instanceClone) {
5323
5323
  return res;
5324
5324
  }
5325
5325
  var cloneDeep_1 = cloneDeep;
5326
- const version = "53.0.1";
5326
+ const version = "53.0.2";
5327
5327
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
5328
5328
  let nanoid = (size2 = 21) => {
5329
5329
  let id2 = "";
@@ -5695,6 +5695,12 @@ function AmlChecksResource({ apiHandler }) {
5695
5695
  get({ id: id2 }) {
5696
5696
  return apiHandler.get(`aml-checks/${id2}`);
5697
5697
  },
5698
+ startReview({ id: id2 }) {
5699
+ return apiHandler.post(`aml-checks/${id2}/start-review`);
5700
+ },
5701
+ stopReview({ id: id2 }) {
5702
+ return apiHandler.post(`aml-checks/${id2}/stop-review`);
5703
+ },
5698
5704
  review({ id: id2, data: data2 }) {
5699
5705
  return apiHandler.post(`aml-checks/${id2}/review`, data2);
5700
5706
  }
@@ -13800,6 +13806,25 @@ const paymentMethods = [
13800
13806
  }
13801
13807
  ]
13802
13808
  },
13809
+ {
13810
+ apiName: "ePayCard",
13811
+ name: "ePayCard",
13812
+ landscapeLogo: null,
13813
+ portraitLogo: null,
13814
+ summary: "ePay is a free mobile application that provides a quick and safe way to pay and receive money.\n",
13815
+ description: "ePay is a free mobile application that provides a quick and safe way to pay and receive money.\n",
13816
+ countries: {
13817
+ mode: "unknown",
13818
+ values: []
13819
+ },
13820
+ storefrontEnabled: true,
13821
+ _links: [
13822
+ {
13823
+ rel: "self",
13824
+ href: "https://api.rebilly.com/payment-methods/ePayCard"
13825
+ }
13826
+ ]
13827
+ },
13803
13828
  {
13804
13829
  apiName: "ezyEFT",
13805
13830
  name: "ezyEFT",
@@ -22621,7 +22646,7 @@ ${displayNode}`
22621
22646
  function handleComputedProperty(options) {
22622
22647
  var _a;
22623
22648
  options._computed = {
22624
- version: "6.0.2",
22649
+ version: "6.0.4",
22625
22650
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
22626
22651
  };
22627
22652
  return options;
@@ -25320,7 +25345,7 @@ async function mountModal({
25320
25345
  return iframe;
25321
25346
  }
25322
25347
  async function makePayment({ payload }) {
25323
- var _a, _b, _c, _d, _e;
25348
+ var _a, _b, _c, _d, _e, _f;
25324
25349
  const {
25325
25350
  _raw: { id: id2 },
25326
25351
  isExistingInstrument
@@ -25354,6 +25379,9 @@ async function makePayment({ payload }) {
25354
25379
  if (((_e = state.data) == null ? void 0 : _e.couponIds) && Array.isArray(state.data.couponIds)) {
25355
25380
  data2.couponIds = state.data.couponIds;
25356
25381
  }
25382
+ if ((_f = state.data) == null ? void 0 : _f.riskMetadata) {
25383
+ data2.riskMetadata = state.data.riskMetadata;
25384
+ }
25357
25385
  let { fields } = await postPayment({
25358
25386
  state,
25359
25387
  data: data2
@@ -25746,7 +25774,7 @@ class RebillyInstrumentsInstance {
25746
25774
  await show({ componentName, payload });
25747
25775
  }
25748
25776
  get version() {
25749
- return `RebillyInstruments Ver.${"6.0.2"}`;
25777
+ return `RebillyInstruments Ver.${"6.0.4"}`;
25750
25778
  }
25751
25779
  on(eventName, callback) {
25752
25780
  on({ eventName, callback });