podverse-external-services 5.1.1-alpha.14 → 5.1.1-alpha.15

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.
@@ -29,16 +29,18 @@ class PayPalService {
29
29
  }
30
30
  getPaymentInfo(paymentId) {
31
31
  return __awaiter(this, void 0, void 0, function* () {
32
+ var _a;
32
33
  const request = new payments.PaymentGetRequest(paymentId);
33
34
  const response = yield this.client.execute(request);
34
- return response.result;
35
+ return (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.result;
35
36
  });
36
37
  }
37
38
  getCaptureInfo(paymentId) {
38
39
  return __awaiter(this, void 0, void 0, function* () {
40
+ var _a;
39
41
  const request = new payments.CaptureGetRequest(paymentId);
40
42
  const response = yield this.client.execute(request);
41
- return response.result;
43
+ return (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.result;
42
44
  });
43
45
  }
44
46
  }
@@ -42,7 +42,7 @@ class PodcastIndexService {
42
42
  Authorization: hash
43
43
  }
44
44
  })), config));
45
- return response;
45
+ return response === null || response === void 0 ? void 0 : response.data;
46
46
  }
47
47
  catch (error) {
48
48
  this.loggerService.logError('[PodcastIndex] Request failed', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podverse-external-services",
3
- "version": "5.1.1-alpha.14",
3
+ "version": "5.1.1-alpha.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "module-alias": "^2.2.3",
35
35
  "paypal-rest-sdk": "2.0.0-rc.2",
36
36
  "podcast-partytime": "^4.8.3",
37
- "podverse-helpers": "^5.1.2-alpha.7",
37
+ "podverse-helpers": "^5.1.2-alpha.8",
38
38
  "web-push": "^3.6.3"
39
39
  }
40
40
  }