wallaby-cash 1.7.17 → 1.7.18

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/dist/index.cjs.js CHANGED
@@ -6449,10 +6449,7 @@ var MerchantsRoutes = {
6449
6449
  requiresAccessToken: false,
6450
6450
  },
6451
6451
  getAssets: {
6452
- fullPath: function (_a) {
6453
- var merchantId = _a.merchantId;
6454
- return "/merchants/".concat(merchantId, "/assets");
6455
- },
6452
+ fullPath: function () { return "/users/merchants/assets"; },
6456
6453
  method: exports.RequestMethod.Get,
6457
6454
  requiresAccessToken: true,
6458
6455
  },
@@ -6627,29 +6624,25 @@ var Merchants = /** @class */ (function (_super) {
6627
6624
  */
6628
6625
  Merchants.prototype.getAssets = function () {
6629
6626
  return __awaiter(this, void 0, void 0, function () {
6630
- var merchantId, response, error_5;
6627
+ var response, error_5;
6631
6628
  return __generator(this, function (_a) {
6632
6629
  switch (_a.label) {
6633
6630
  case 0:
6634
- _a.trys.push([0, 3, , 4]);
6635
- return [4 /*yield*/, this.device];
6636
- case 1:
6637
- merchantId = (_a.sent()).user.merchantId;
6631
+ _a.trys.push([0, 2, , 3]);
6638
6632
  return [4 /*yield*/, this.request(MerchantsRoutes.getAssets, {
6639
6633
  method: MerchantsRoutes.getAssets.method,
6640
- payload: { merchantId: merchantId },
6641
6634
  })];
6642
- case 2:
6635
+ case 1:
6643
6636
  response = _a.sent();
6644
6637
  if (!response || response.error) {
6645
6638
  throw new Error(response.error);
6646
6639
  }
6647
6640
  return [2 /*return*/, response];
6648
- case 3:
6641
+ case 2:
6649
6642
  error_5 = _a.sent();
6650
6643
  logger.error('SDK::Merchants::list::error', error_5);
6651
6644
  return [2 /*return*/, Promise.reject(error_5)];
6652
- case 4: return [2 /*return*/];
6645
+ case 3: return [2 /*return*/];
6653
6646
  }
6654
6647
  });
6655
6648
  });