@felloh-org/lambda-wrapper 1.11.60 → 1.11.61

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.js CHANGED
@@ -375,6 +375,12 @@ Object.defineProperty(exports, "RefundStatusEntity", {
375
375
  return _refundStatus.default;
376
376
  }
377
377
  });
378
+ Object.defineProperty(exports, "RefundWebhookModel", {
379
+ enumerable: true,
380
+ get: function () {
381
+ return _refund2.default;
382
+ }
383
+ });
378
384
  Object.defineProperty(exports, "RequestService", {
379
385
  enumerable: true,
380
386
  get: function () {
@@ -878,6 +884,8 @@ var _status = _interopRequireWildcard(require("./model/status"));
878
884
 
879
885
  var _transaction7 = _interopRequireDefault(require("./model/webhook/transaction"));
880
886
 
887
+ var _refund2 = _interopRequireDefault(require("./model/webhook/refund"));
888
+
881
889
  var _http = _interopRequireDefault(require("./service/http"));
882
890
 
883
891
  var _logger = _interopRequireDefault(require("./service/logger"));
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ class RefundWebhook {
9
+ constructor(refund) {
10
+ this.refund = refund;
11
+ }
12
+
13
+ get() {
14
+ var _this$refund, _this$refund2, _this$refund$transact, _this$refund3, _this$refund3$status;
15
+
16
+ return {
17
+ authorisation_code: (_this$refund = this.refund) === null || _this$refund === void 0 ? void 0 : _this$refund.authorisation_code,
18
+ actioned_at: (_this$refund2 = this.refund) === null || _this$refund2 === void 0 ? void 0 : _this$refund2.updated_at,
19
+ transaction: {
20
+ id: (_this$refund$transact = this.refund.transaction) === null || _this$refund$transact === void 0 ? void 0 : _this$refund$transact.id
21
+ },
22
+ status: {
23
+ id: (_this$refund3 = this.refund) === null || _this$refund3 === void 0 ? void 0 : (_this$refund3$status = _this$refund3.status) === null || _this$refund3$status === void 0 ? void 0 : _this$refund3$status.id
24
+ }
25
+ };
26
+ }
27
+
28
+ }
29
+
30
+ exports.default = RefundWebhook;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.60",
3
+ "version": "1.11.61",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {