@heliofi/common 0.1.200 → 0.1.202

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.
Files changed (60) hide show
  1. package/dist/src/domain/constants/index.d.ts +1 -0
  2. package/dist/src/domain/constants/index.js +1 -0
  3. package/dist/src/domain/constants/index.js.map +1 -1
  4. package/dist/src/domain/constants/intervalUnit.d.ts +9 -1
  5. package/dist/src/domain/constants/intervalUnit.js +25 -16
  6. package/dist/src/domain/constants/intervalUnit.js.map +1 -1
  7. package/dist/src/domain/constants/paymentType.d.ts +11 -0
  8. package/dist/src/domain/constants/paymentType.js +29 -0
  9. package/dist/src/domain/constants/paymentType.js.map +1 -0
  10. package/dist/src/domain/model/index.d.ts +1 -0
  11. package/dist/src/domain/model/index.js +1 -0
  12. package/dist/src/domain/model/index.js.map +1 -1
  13. package/dist/src/domain/model/paylink/entities/ShallowEnrichedPaylink.d.ts +2 -0
  14. package/dist/src/domain/model/paylink/entities/ShallowEnrichedPaylink.js.map +1 -1
  15. package/dist/src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.d.ts +1 -0
  16. package/dist/src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.js +8 -0
  17. package/dist/src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.js.map +1 -1
  18. package/dist/src/domain/model/paylink-tx/entities/PaylinkTx.d.ts +2 -0
  19. package/dist/src/domain/model/paylink-tx/entities/PaylinkTx.js.map +1 -1
  20. package/dist/src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.d.ts +2 -0
  21. package/dist/src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.js +1 -1
  22. package/dist/src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.js.map +1 -1
  23. package/dist/src/domain/model/paystream/dtos/createPaystream.dto.d.ts +1 -1
  24. package/dist/src/domain/model/paystream/dtos/createPaystream.dto.js +2 -2
  25. package/dist/src/domain/model/paystream/dtos/createPaystream.dto.js.map +1 -1
  26. package/dist/src/domain/model/paystream/dtos/updatePaystream.dto.d.ts +1 -1
  27. package/dist/src/domain/model/paystream/dtos/updatePaystream.dto.js +2 -2
  28. package/dist/src/domain/model/paystream/dtos/updatePaystream.dto.js.map +1 -1
  29. package/dist/src/domain/model/paystream/entities/BasePaystream.d.ts +1 -1
  30. package/dist/src/domain/model/paystream/entities/Paystream.d.ts +1 -1
  31. package/dist/src/domain/model/paystream/entities/ShallowEnrichedPaystream.d.ts +4 -2
  32. package/dist/src/domain/model/paystream/entities/ShallowEnrichedPaystream.js.map +1 -1
  33. package/dist/src/domain/model/paystream/entities/index.d.ts +0 -1
  34. package/dist/src/domain/model/paystream/entities/index.js +0 -1
  35. package/dist/src/domain/model/paystream/entities/index.js.map +1 -1
  36. package/dist/src/domain/model/refund/dtos/createRefund.dto.d.ts +7 -5
  37. package/dist/src/domain/model/refund/dtos/createRefund.dto.js +15 -8
  38. package/dist/src/domain/model/refund/dtos/createRefund.dto.js.map +1 -1
  39. package/dist/src/domain/model/refund/entities/BaseRefund.entity.d.ts +8 -0
  40. package/dist/src/domain/model/refund/entities/BaseRefund.entity.js +8 -0
  41. package/dist/src/domain/model/refund/entities/BaseRefund.entity.js.map +1 -0
  42. package/dist/src/domain/model/refund/entities/Refund.entity.d.ts +8 -6
  43. package/dist/src/domain/model/refund/entities/Refund.entity.js +0 -14
  44. package/dist/src/domain/model/refund/entities/Refund.entity.js.map +1 -1
  45. package/dist/src/domain/model/refund/entities/index.d.ts +1 -0
  46. package/dist/src/domain/model/refund/entities/index.js +1 -0
  47. package/dist/src/domain/model/refund/entities/index.js.map +1 -1
  48. package/dist/src/domain/model/report/entities/ReportItem.entity.d.ts +1 -1
  49. package/dist/src/domain/model/report/entities/ReportItem.entity.js.map +1 -1
  50. package/dist/src/domain/model/transaction/entities/index.js.map +1 -1
  51. package/dist/src/domain/model/transaction-meta/constants/index.d.ts +1 -0
  52. package/dist/src/domain/model/transaction-meta/constants/index.js +1 -0
  53. package/dist/src/domain/model/transaction-meta/constants/index.js.map +1 -1
  54. package/dist/src/domain/model/transaction-meta/dtos/createTransactionMeta.dto.d.ts +4 -3
  55. package/dist/src/domain/model/transaction-meta/dtos/createTransactionMeta.dto.js +6 -1
  56. package/dist/src/domain/model/transaction-meta/dtos/createTransactionMeta.dto.js.map +1 -1
  57. package/dist/src/domain/model/transaction-meta/entities/BaseTransactionMeta.entity.d.ts +2 -1
  58. package/dist/src/domain/model/transaction-meta/entities/BaseTransactionMeta.entity.js.map +1 -1
  59. package/dist/tsconfig.tsbuildinfo +1 -1
  60. package/package.json +2 -2
@@ -8,3 +8,4 @@ export * from './fixedPriceTokens';
8
8
  export * from './helioPlay';
9
9
  export * from './transactionStatusTokenHeaderName';
10
10
  export * from './generalNetwork';
11
+ export * from './paymentType';
@@ -24,4 +24,5 @@ __exportStar(require("./fixedPriceTokens"), exports);
24
24
  __exportStar(require("./helioPlay"), exports);
25
25
  __exportStar(require("./transactionStatusTokenHeaderName"), exports);
26
26
  __exportStar(require("./generalNetwork"), exports);
27
+ __exportStar(require("./paymentType"), exports);
27
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC;AACnC,8CAA4B;AAC5B,qEAAmD;AACnD,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC;AACnC,8CAA4B;AAC5B,qEAAmD;AACnD,mDAAiC;AACjC,gDAA8B"}
@@ -1,3 +1,11 @@
1
- import { IntervalType } from '../model';
1
+ export declare enum IntervalType {
2
+ SECOND = "SECOND",
3
+ MINUTE = "MINUTE",
4
+ HOUR = "HOUR",
5
+ DAY = "DAY",
6
+ WEEK = "WEEK",
7
+ MONTH = "MONTH",
8
+ YEAR = "YEAR"
9
+ }
2
10
  export declare const intervalUnit: Record<IntervalType, number>;
3
11
  export declare const intervalValue: Record<number, IntervalType>;
@@ -1,23 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.intervalValue = exports.intervalUnit = void 0;
4
- const model_1 = require("../model");
3
+ exports.intervalValue = exports.intervalUnit = exports.IntervalType = void 0;
4
+ var IntervalType;
5
+ (function (IntervalType) {
6
+ IntervalType["SECOND"] = "SECOND";
7
+ IntervalType["MINUTE"] = "MINUTE";
8
+ IntervalType["HOUR"] = "HOUR";
9
+ IntervalType["DAY"] = "DAY";
10
+ IntervalType["WEEK"] = "WEEK";
11
+ IntervalType["MONTH"] = "MONTH";
12
+ IntervalType["YEAR"] = "YEAR";
13
+ })(IntervalType = exports.IntervalType || (exports.IntervalType = {}));
5
14
  exports.intervalUnit = {
6
- [model_1.IntervalType.SECOND]: 1,
7
- [model_1.IntervalType.MINUTE]: 60,
8
- [model_1.IntervalType.HOUR]: 3600,
9
- [model_1.IntervalType.DAY]: 86400,
10
- [model_1.IntervalType.WEEK]: 604800,
11
- [model_1.IntervalType.MONTH]: 2592000,
12
- [model_1.IntervalType.YEAR]: 31536000,
15
+ [IntervalType.SECOND]: 1,
16
+ [IntervalType.MINUTE]: 60,
17
+ [IntervalType.HOUR]: 3600,
18
+ [IntervalType.DAY]: 86400,
19
+ [IntervalType.WEEK]: 604800,
20
+ [IntervalType.MONTH]: 2592000,
21
+ [IntervalType.YEAR]: 31536000,
13
22
  };
14
23
  exports.intervalValue = {
15
- 1: model_1.IntervalType.SECOND,
16
- 60: model_1.IntervalType.MINUTE,
17
- 3600: model_1.IntervalType.HOUR,
18
- 86400: model_1.IntervalType.DAY,
19
- 604800: model_1.IntervalType.WEEK,
20
- 2592000: model_1.IntervalType.MONTH,
21
- 31536000: model_1.IntervalType.YEAR,
24
+ 1: IntervalType.SECOND,
25
+ 60: IntervalType.MINUTE,
26
+ 3600: IntervalType.HOUR,
27
+ 86400: IntervalType.DAY,
28
+ 604800: IntervalType.WEEK,
29
+ 2592000: IntervalType.MONTH,
30
+ 31536000: IntervalType.YEAR,
22
31
  };
23
32
  //# sourceMappingURL=intervalUnit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"intervalUnit.js","sourceRoot":"","sources":["../../../../src/domain/constants/intervalUnit.ts"],"names":[],"mappings":";;;AAAA,oCAAwC;AAE3B,QAAA,YAAY,GAAiC;IACxD,CAAC,oBAAY,CAAC,MAAM,CAAC,EAAE,CAAC;IACxB,CAAC,oBAAY,CAAC,MAAM,CAAC,EAAE,EAAE;IACzB,CAAC,oBAAY,CAAC,IAAI,CAAC,EAAE,IAAI;IACzB,CAAC,oBAAY,CAAC,GAAG,CAAC,EAAE,KAAK;IACzB,CAAC,oBAAY,CAAC,IAAI,CAAC,EAAE,MAAM;IAC3B,CAAC,oBAAY,CAAC,KAAK,CAAC,EAAE,OAAO;IAC7B,CAAC,oBAAY,CAAC,IAAI,CAAC,EAAE,QAAQ;CAC9B,CAAC;AAEW,QAAA,aAAa,GAAiC;IACzD,CAAC,EAAE,oBAAY,CAAC,MAAM;IACtB,EAAE,EAAE,oBAAY,CAAC,MAAM;IACvB,IAAI,EAAE,oBAAY,CAAC,IAAI;IACvB,KAAK,EAAE,oBAAY,CAAC,GAAG;IACvB,MAAM,EAAE,oBAAY,CAAC,IAAI;IACzB,OAAO,EAAE,oBAAY,CAAC,KAAK;IAC3B,QAAQ,EAAE,oBAAY,CAAC,IAAI;CAC5B,CAAC"}
1
+ {"version":3,"file":"intervalUnit.js","sourceRoot":"","sources":["../../../../src/domain/constants/intervalUnit.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,6BAAa,CAAA;AACf,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;AAEY,QAAA,YAAY,GAAiC;IACxD,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;IACxB,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,EAAE;IACzB,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI;IACzB,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,KAAK;IACzB,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM;IAC3B,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,OAAO;IAC7B,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,QAAQ;CAC9B,CAAC;AAEW,QAAA,aAAa,GAAiC;IACzD,CAAC,EAAE,YAAY,CAAC,MAAM;IACtB,EAAE,EAAE,YAAY,CAAC,MAAM;IACvB,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,KAAK,EAAE,YAAY,CAAC,GAAG;IACvB,MAAM,EAAE,YAAY,CAAC,IAAI;IACzB,OAAO,EAAE,YAAY,CAAC,KAAK;IAC3B,QAAQ,EAAE,YAAY,CAAC,IAAI;CAC5B,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare enum PaymentSchemaType {
2
+ Paylink = "Paylink",
3
+ Paystream = "Paystream",
4
+ Invoice = "Invoice"
5
+ }
6
+ export declare enum PaymentTxSchemaType {
7
+ PaylinkTx = "PaylinkTx",
8
+ PaystreamTx = "PaystreamTx",
9
+ InvoiceTx = "InvoiceTx"
10
+ }
11
+ export declare const PaymentTypeToPaymentTxSchema: (paymentSchemaType: PaymentSchemaType) => PaymentTxSchemaType;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentTypeToPaymentTxSchema = exports.PaymentTxSchemaType = exports.PaymentSchemaType = void 0;
4
+ var PaymentSchemaType;
5
+ (function (PaymentSchemaType) {
6
+ PaymentSchemaType["Paylink"] = "Paylink";
7
+ PaymentSchemaType["Paystream"] = "Paystream";
8
+ PaymentSchemaType["Invoice"] = "Invoice";
9
+ })(PaymentSchemaType = exports.PaymentSchemaType || (exports.PaymentSchemaType = {}));
10
+ var PaymentTxSchemaType;
11
+ (function (PaymentTxSchemaType) {
12
+ PaymentTxSchemaType["PaylinkTx"] = "PaylinkTx";
13
+ PaymentTxSchemaType["PaystreamTx"] = "PaystreamTx";
14
+ PaymentTxSchemaType["InvoiceTx"] = "InvoiceTx";
15
+ })(PaymentTxSchemaType = exports.PaymentTxSchemaType || (exports.PaymentTxSchemaType = {}));
16
+ const PaymentTypeToPaymentTxSchema = (paymentSchemaType) => {
17
+ switch (paymentSchemaType) {
18
+ case PaymentSchemaType.Paylink:
19
+ return PaymentTxSchemaType.PaylinkTx;
20
+ case PaymentSchemaType.Paystream:
21
+ return PaymentTxSchemaType.PaystreamTx;
22
+ case PaymentSchemaType.Invoice:
23
+ return PaymentTxSchemaType.InvoiceTx;
24
+ default:
25
+ throw new Error(`Incorrect type: ${paymentSchemaType}`);
26
+ }
27
+ };
28
+ exports.PaymentTypeToPaymentTxSchema = PaymentTypeToPaymentTxSchema;
29
+ //# sourceMappingURL=paymentType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentType.js","sourceRoot":"","sources":["../../../../src/domain/constants/paymentType.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;AACrB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,8CAAuB,CAAA;AACzB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAEM,MAAM,4BAA4B,GAAG,CAC1C,iBAAoC,EACf,EAAE;IACvB,QAAQ,iBAAiB,EAAE;QACzB,KAAK,iBAAiB,CAAC,OAAO;YAC5B,OAAO,mBAAmB,CAAC,SAAS,CAAC;QACvC,KAAK,iBAAiB,CAAC,SAAS;YAC9B,OAAO,mBAAmB,CAAC,WAAW,CAAC;QACzC,KAAK,iBAAiB,CAAC,OAAO;YAC5B,OAAO,mBAAmB,CAAC,SAAS,CAAC;QACvC;YACE,MAAM,IAAI,KAAK,CAAC,mBAAmB,iBAAiB,EAAE,CAAC,CAAC;KAC3D;AACH,CAAC,CAAC;AAbW,QAAA,4BAA4B,gCAavC"}
@@ -65,4 +65,5 @@ export * from './helio-play';
65
65
  export * from './funding';
66
66
  export * from './prepare-refund';
67
67
  export * from './refund';
68
+ export * from './submit-refund';
68
69
  export * from './enrich-payment-request';
@@ -81,5 +81,6 @@ __exportStar(require("./helio-play"), exports);
81
81
  __exportStar(require("./funding"), exports);
82
82
  __exportStar(require("./prepare-refund"), exports);
83
83
  __exportStar(require("./refund"), exports);
84
+ __exportStar(require("./submit-refund"), exports);
84
85
  __exportStar(require("./enrich-payment-request"), exports);
85
86
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,0DAAwC;AACxC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,2CAAyB;AACzB,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,0DAAwC;AACxC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,2DAAyC"}
@@ -1,9 +1,11 @@
1
1
  import { ShallowEnrichedPaymentRequest } from '../../payment-request';
2
2
  import type { ContentResponse } from '../../content';
3
3
  import type { LinkFeatures } from '../../link-features';
4
+ import { HelioPlayProperties } from '../../helio-play';
4
5
  export declare class ShallowEnrichedPaylink extends ShallowEnrichedPaymentRequest {
5
6
  content: ContentResponse;
6
7
  minQuantity?: number;
7
8
  maxQuantity?: number;
8
9
  features: LinkFeatures;
10
+ helioPlayProperties?: HelioPlayProperties;
9
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ShallowEnrichedPaylink.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink/entities/ShallowEnrichedPaylink.ts"],"names":[],"mappings":";;;AAAA,2DAAsE;AAItE,MAAa,sBAAuB,SAAQ,+CAA6B;CAQxE;AARD,wDAQC"}
1
+ {"version":3,"file":"ShallowEnrichedPaylink.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink/entities/ShallowEnrichedPaylink.ts"],"names":[],"mappings":";;;AAAA,2DAAsE;AAKtE,MAAa,sBAAuB,SAAQ,+CAA6B;CAUxE;AAVD,wDAUC"}
@@ -1,3 +1,4 @@
1
1
  export declare class UpdatePaylinkTxDto {
2
2
  quantity?: number;
3
+ refund?: string[];
3
4
  }
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpdatePaylinkTxDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const refund_1 = require("../../refund");
14
16
  class UpdatePaylinkTxDto {
15
17
  }
16
18
  __decorate([
@@ -18,5 +20,11 @@ __decorate([
18
20
  (0, class_validator_1.IsOptional)(),
19
21
  __metadata("design:type", Number)
20
22
  ], UpdatePaylinkTxDto.prototype, "quantity", void 0);
23
+ __decorate([
24
+ (0, class_transformer_1.Type)(() => refund_1.Refund),
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.ValidateNested)({ each: true }),
27
+ __metadata("design:type", Array)
28
+ ], UpdatePaylinkTxDto.prototype, "refund", void 0);
21
29
  exports.UpdatePaylinkTxDto = UpdatePaylinkTxDto;
22
30
  //# sourceMappingURL=updatePaylinkTx.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updatePaylinkTx.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,kBAAkB;CAI9B;AAHC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACK;AAHpB,gDAIC"}
1
+ {"version":3,"file":"updatePaylinkTx.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,yDAAyC;AACzC,yCAAsC;AAEtC,MAAa,kBAAkB;CAS9B;AARC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACK;AAElB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;IAClB,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACb;AARpB,gDASC"}
@@ -1,7 +1,9 @@
1
1
  import type { TransactionMeta } from '../../transaction-meta';
2
2
  import type { Paylink } from '../../paylink';
3
3
  import { BasePaylinkTx } from './BasePaylinkTx';
4
+ import { Refund } from '../../refund';
4
5
  export declare class PaylinkTx extends BasePaylinkTx {
5
6
  meta: TransactionMeta;
6
7
  paylink: Paylink;
8
+ refunds: Refund[];
7
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PaylinkTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/entities/PaylinkTx.ts"],"names":[],"mappings":";;;AAEA,mDAAgD;AAEhD,MAAa,SAAU,SAAQ,6BAAa;CAI3C;AAJD,8BAIC"}
1
+ {"version":3,"file":"PaylinkTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/entities/PaylinkTx.ts"],"names":[],"mappings":";;;AAEA,mDAAgD;AAGhD,MAAa,SAAU,SAAQ,6BAAa;CAM3C;AAND,8BAMC"}
@@ -3,6 +3,7 @@ import { ShallowEnrichedTransactionMeta } from '../../transaction-meta';
3
3
  import { ShallowEnrichedPaylink } from '../../paylink';
4
4
  import { Contact } from '../../contact';
5
5
  import { BlockchainSymbol } from '../../blockchain';
6
+ import { Refund } from '../../refund';
6
7
  export declare class PaylinkTxWithShallowEnrichedPaylink extends BasePaylinkTx {
7
8
  meta: ShallowEnrichedTransactionMeta;
8
9
  paylink: ShallowEnrichedPaylink;
@@ -12,4 +13,5 @@ export declare class PaylinkTxWithShallowEnrichedPaylink extends BasePaylinkTx {
12
13
  paymentRequestImageUrl?: string;
13
14
  paymentRequestCurrencySymbol: string;
14
15
  paymentRequestBlockchain: BlockchainSymbol;
16
+ refunds: Refund[];
15
17
  }
@@ -10,10 +10,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PaylinkTxWithShallowEnrichedPaylink = void 0;
13
+ const class_transformer_1 = require("class-transformer");
13
14
  const BasePaylinkTx_1 = require("./BasePaylinkTx");
14
15
  const transaction_meta_1 = require("../../transaction-meta");
15
16
  const paylink_1 = require("../../paylink");
16
- const class_transformer_1 = require("class-transformer");
17
17
  class PaylinkTxWithShallowEnrichedPaylink extends BasePaylinkTx_1.BasePaylinkTx {
18
18
  }
19
19
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"PaylinkTxWithShallowEnrichedPaylink.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAgD;AAChD,6DAAwE;AACxE,2CAAuD;AACvD,yDAAyC;AAIzC,MAAa,mCAAoC,SAAQ,6BAAa;CAkBrE;AAjBC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iDAA8B,CAAC;8BACrC,iDAA8B;iEAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAsB,CAAC;8BAC1B,gCAAsB;oEAAC;AALlC,kFAkBC"}
1
+ {"version":3,"file":"PaylinkTxWithShallowEnrichedPaylink.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,mDAAgD;AAChD,6DAAwE;AACxE,2CAAuD;AAKvD,MAAa,mCAAoC,SAAQ,6BAAa;CAoBrE;AAnBC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iDAA8B,CAAC;8BACrC,iDAA8B;iEAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAsB,CAAC;8BAC1B,gCAAsB;oEAAC;AALlC,kFAoBC"}
@@ -1,7 +1,7 @@
1
1
  import { StreamFeaturesDto } from '../../stream-features';
2
- import { IntervalType } from '../entities';
3
2
  import { CreatePaymentRequestDto } from '../../payment-request';
4
3
  import { HelioPlayPropertiesDto } from '../../helio-play';
4
+ import { IntervalType } from '../../../constants';
5
5
  export declare class CreatePaystreamDto extends CreatePaymentRequestDto {
6
6
  helioPlayProperties?: HelioPlayPropertiesDto;
7
7
  features?: StreamFeaturesDto;
@@ -13,9 +13,9 @@ exports.CreatePaystreamDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const stream_features_1 = require("../../stream-features");
16
- const entities_1 = require("../entities");
17
16
  const payment_request_1 = require("../../payment-request");
18
17
  const helio_play_1 = require("../../helio-play");
18
+ const constants_1 = require("../../../constants");
19
19
  class CreatePaystreamDto extends payment_request_1.CreatePaymentRequestDto {
20
20
  }
21
21
  __decorate([
@@ -31,7 +31,7 @@ __decorate([
31
31
  __metadata("design:type", stream_features_1.StreamFeaturesDto)
32
32
  ], CreatePaystreamDto.prototype, "features", void 0);
33
33
  __decorate([
34
- (0, class_validator_1.IsEnum)(entities_1.IntervalType),
34
+ (0, class_validator_1.IsEnum)(constants_1.IntervalType),
35
35
  (0, class_validator_1.IsNotEmpty)(),
36
36
  __metadata("design:type", String)
37
37
  ], CreatePaystreamDto.prototype, "interval", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"createPaystream.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/dtos/createPaystream.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAyC;AACzC,2DAA0D;AAC1D,0CAA2C;AAC3C,2DAAgE;AAChE,iDAA0D;AAE1D,MAAa,kBAAmB,SAAQ,yCAAuB;CAkB9D;AAjBC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAsB,CAAC;IAClC,IAAA,gCAAc,GAAE;8BACK,mCAAsB;+DAAC;AAE7C;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;8BACN,mCAAiB;oDAAC;AAE7B;IAAC,IAAA,wBAAM,EAAC,uBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;oDACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAjBlB,gDAkBC"}
1
+ {"version":3,"file":"createPaystream.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/dtos/createPaystream.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAyC;AACzC,2DAA0D;AAC1D,2DAAgE;AAChE,iDAA0D;AAC1D,kDAAkD;AAElD,MAAa,kBAAmB,SAAQ,yCAAuB;CAkB9D;AAjBC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAsB,CAAC;IAClC,IAAA,gCAAc,GAAE;8BACK,mCAAsB;+DAAC;AAE7C;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;8BACN,mCAAiB;oDAAC;AAE7B;IAAC,IAAA,wBAAM,EAAC,wBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;oDACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAjBlB,gDAkBC"}
@@ -1,7 +1,7 @@
1
1
  import { StreamFeaturesDto } from '../../stream-features';
2
- import { IntervalType } from '../entities';
3
2
  import { UpdatePaymentRequestDto } from '../../payment-request';
4
3
  import { HelioPlayPropertiesDto } from '../../helio-play';
4
+ import { IntervalType } from '../../../constants';
5
5
  export declare class UpdatePaystreamDto extends UpdatePaymentRequestDto {
6
6
  helioPlayProperties?: HelioPlayPropertiesDto;
7
7
  features?: StreamFeaturesDto;
@@ -13,9 +13,9 @@ exports.UpdatePaystreamDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const stream_features_1 = require("../../stream-features");
16
- const entities_1 = require("../entities");
17
16
  const payment_request_1 = require("../../payment-request");
18
17
  const helio_play_1 = require("../../helio-play");
18
+ const constants_1 = require("../../../constants");
19
19
  class UpdatePaystreamDto extends payment_request_1.UpdatePaymentRequestDto {
20
20
  }
21
21
  __decorate([
@@ -31,7 +31,7 @@ __decorate([
31
31
  __metadata("design:type", stream_features_1.StreamFeaturesDto)
32
32
  ], UpdatePaystreamDto.prototype, "features", void 0);
33
33
  __decorate([
34
- (0, class_validator_1.IsEnum)(entities_1.IntervalType),
34
+ (0, class_validator_1.IsEnum)(constants_1.IntervalType),
35
35
  (0, class_validator_1.IsOptional)(),
36
36
  __metadata("design:type", String)
37
37
  ], UpdatePaystreamDto.prototype, "interval", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"updatePaystream.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/dtos/updatePaystream.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+E;AAC/E,yDAAyC;AACzC,2DAA0D;AAC1D,0CAA2C;AAC3C,2DAAgE;AAChE,iDAA0D;AAE1D,MAAa,kBAAmB,SAAQ,yCAAuB;CAkB9D;AAjBC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAsB,CAAC;IAClC,IAAA,gCAAc,GAAE;8BACK,mCAAsB;+DAAC;AAE7C;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;8BACN,mCAAiB;oDAAC;AAE7B;IAAC,IAAA,wBAAM,EAAC,uBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;oDACW;AAExB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACI;AAjBnB,gDAkBC"}
1
+ {"version":3,"file":"updatePaystream.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/dtos/updatePaystream.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+E;AAC/E,yDAAyC;AACzC,2DAA0D;AAC1D,2DAAgE;AAChE,iDAA0D;AAC1D,kDAAkD;AAElD,MAAa,kBAAmB,SAAQ,yCAAuB;CAkB9D;AAjBC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAsB,CAAC;IAClC,IAAA,gCAAc,GAAE;8BACK,mCAAsB;+DAAC;AAE7C;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;8BACN,mCAAiB;oDAAC;AAE7B;IAAC,IAAA,wBAAM,EAAC,wBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;oDACW;AAExB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACI;AAjBnB,gDAkBC"}
@@ -1,7 +1,7 @@
1
1
  import type { StreamFeatures } from '../../stream-features';
2
2
  import { BasePaymentRequest } from '../../payment-request';
3
- import { IntervalType } from './IntervalType';
4
3
  import { HelioPlayProperties } from '../../helio-play';
4
+ import { IntervalType } from '../../../constants';
5
5
  export declare class BasePaystream extends BasePaymentRequest {
6
6
  maxTime: number;
7
7
  interval: IntervalType;
@@ -1,7 +1,7 @@
1
1
  import { HelioPlayProperties } from '../../helio-play';
2
2
  import { PaymentRequest } from '../../payment-request';
3
3
  import { StreamFeatures } from '../../stream-features';
4
- import { IntervalType } from './IntervalType';
4
+ import { IntervalType } from '../../../constants';
5
5
  export declare class Paystream extends PaymentRequest {
6
6
  maxTime: number;
7
7
  interval: IntervalType;
@@ -1,10 +1,12 @@
1
1
  import type { StreamFeatures } from '../../stream-features';
2
2
  import { ShallowEnrichedPaymentRequest } from '../../payment-request';
3
- import { IntervalType } from './IntervalType';
4
3
  import { ContentResponse } from '../../content';
4
+ import { HelioPlayProperties } from '../../helio-play';
5
+ import { IntervalType } from '../../../constants';
5
6
  export declare class ShallowEnrichedPaystream extends ShallowEnrichedPaymentRequest {
6
7
  maxTime: number;
7
8
  interval: IntervalType;
8
- content: ContentResponse;
9
+ content?: ContentResponse;
9
10
  features: StreamFeatures;
11
+ helioPlayProperties?: HelioPlayProperties;
10
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ShallowEnrichedPaystream.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/entities/ShallowEnrichedPaystream.ts"],"names":[],"mappings":";;;AACA,2DAAsE;AAItE,MAAa,wBAAyB,SAAQ,+CAA6B;CAQ1E;AARD,4DAQC"}
1
+ {"version":3,"file":"ShallowEnrichedPaystream.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/entities/ShallowEnrichedPaystream.ts"],"names":[],"mappings":";;;AACA,2DAAsE;AAKtE,MAAa,wBAAyB,SAAQ,+CAA6B;CAU1E;AAVD,4DAUC"}
@@ -2,4 +2,3 @@ export * from './Paystream';
2
2
  export * from './PaystreamStats';
3
3
  export * from './BasePaystream';
4
4
  export * from './ShallowEnrichedPaystream';
5
- export * from './IntervalType';
@@ -18,5 +18,4 @@ __exportStar(require("./Paystream"), exports);
18
18
  __exportStar(require("./PaystreamStats"), exports);
19
19
  __exportStar(require("./BasePaystream"), exports);
20
20
  __exportStar(require("./ShallowEnrichedPaystream"), exports);
21
- __exportStar(require("./IntervalType"), exports);
22
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC;AACjC,kDAAgC;AAChC,6DAA2C;AAC3C,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC;AACjC,kDAAgC;AAChC,6DAA2C"}
@@ -1,7 +1,9 @@
1
- import { TransactionStatus } from '../../transaction-meta';
1
+ import { CreateTransactionMetaDto } from '../../transaction-meta';
2
+ import { PaymentSchemaType, PaymentTxSchemaType } from '../../../constants';
2
3
  export declare class CreateRefundDto {
3
- transactionSignature: string;
4
- transactionStatus: TransactionStatus;
5
- amount: bigint;
6
- currency: string;
4
+ meta: CreateTransactionMetaDto;
5
+ paymentRequest: string;
6
+ paymentRequestType: PaymentSchemaType;
7
+ paymentRequestTx: string;
8
+ paymentRequestTxType: PaymentTxSchemaType;
7
9
  }
@@ -13,27 +13,34 @@ exports.CreateRefundDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const transaction_meta_1 = require("../../transaction-meta");
16
+ const constants_1 = require("../../../constants");
16
17
  class CreateRefundDto {
17
18
  }
19
+ __decorate([
20
+ (0, class_transformer_1.Type)(() => transaction_meta_1.CreateTransactionMetaDto),
21
+ (0, class_validator_1.IsNotEmpty)(),
22
+ (0, class_validator_1.ValidateNested)(),
23
+ __metadata("design:type", transaction_meta_1.CreateTransactionMetaDto)
24
+ ], CreateRefundDto.prototype, "meta", void 0);
18
25
  __decorate([
19
26
  (0, class_validator_1.IsString)(),
20
27
  (0, class_validator_1.IsNotEmpty)(),
21
28
  __metadata("design:type", String)
22
- ], CreateRefundDto.prototype, "transactionSignature", void 0);
29
+ ], CreateRefundDto.prototype, "paymentRequest", void 0);
23
30
  __decorate([
24
- (0, class_validator_1.IsEnum)(transaction_meta_1.TransactionStatus),
31
+ (0, class_validator_1.IsEnum)(constants_1.PaymentSchemaType),
25
32
  (0, class_validator_1.IsNotEmpty)(),
26
33
  __metadata("design:type", String)
27
- ], CreateRefundDto.prototype, "transactionStatus", void 0);
34
+ ], CreateRefundDto.prototype, "paymentRequestType", void 0);
28
35
  __decorate([
29
- (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
36
+ (0, class_validator_1.IsString)(),
30
37
  (0, class_validator_1.IsNotEmpty)(),
31
- __metadata("design:type", BigInt)
32
- ], CreateRefundDto.prototype, "amount", void 0);
38
+ __metadata("design:type", String)
39
+ ], CreateRefundDto.prototype, "paymentRequestTx", void 0);
33
40
  __decorate([
34
- (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.IsEnum)(constants_1.PaymentTxSchemaType),
35
42
  (0, class_validator_1.IsNotEmpty)(),
36
43
  __metadata("design:type", String)
37
- ], CreateRefundDto.prototype, "currency", void 0);
44
+ ], CreateRefundDto.prototype, "paymentRequestTxType", void 0);
38
45
  exports.CreateRefundDto = CreateRefundDto;
39
46
  //# sourceMappingURL=createRefund.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createRefund.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund/dtos/createRefund.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAA8C;AAC9C,6DAA2D;AAE3D,MAAa,eAAe;CAgB3B;AAfC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACgB;AAE7B;IAAC,IAAA,wBAAM,EAAC,oCAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;0DACwB;AAErC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;;+CACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACI;AAfnB,0CAgBC"}
1
+ {"version":3,"file":"createRefund.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund/dtos/createRefund.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+E;AAC/E,yDAAyC;AACzC,6DAAkE;AAClE,kDAA4E;AAE5E,MAAa,eAAe;CAqB3B;AApBC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2CAAwB,CAAC;IACpC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;8BACX,2CAAwB;6CAAC;AAE/B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACU;AAEvB;IAAC,IAAA,wBAAM,EAAC,6BAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;2DACyB;AAEtC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACY;AAEzB;IAAC,IAAA,wBAAM,EAAC,+BAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;;6DAC6B;AApB5C,0CAqBC"}
@@ -0,0 +1,8 @@
1
+ import { Entity } from '../../entity';
2
+ import { TransactionMeta } from '../../transaction-meta';
3
+ export declare class BaseRefund extends Entity {
4
+ id: string;
5
+ meta: TransactionMeta;
6
+ paymentRequest: string;
7
+ paymentRequestTx: string;
8
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseRefund = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class BaseRefund extends entity_1.Entity {
6
+ }
7
+ exports.BaseRefund = BaseRefund;
8
+ //# sourceMappingURL=BaseRefund.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseRefund.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund/entities/BaseRefund.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,UAAW,SAAQ,eAAM;CAQrC;AARD,gCAQC"}
@@ -1,9 +1,11 @@
1
1
  import { Entity } from '../../entity';
2
- import { TransactionStatus } from '../../transaction-meta';
3
- import { Currency } from '../../currency';
2
+ import { TransactionMeta } from '../../transaction-meta';
3
+ import { Contact } from '../../contact';
4
+ import { BasePaymentRequest } from '../../payment-request';
4
5
  export declare class Refund extends Entity {
5
- transactionSignature: string;
6
- transactionStatus: TransactionStatus;
7
- amount: bigint;
8
- currency: Currency;
6
+ id: string;
7
+ meta: TransactionMeta;
8
+ paymentRequest: BasePaymentRequest;
9
+ paymentRequestTx: string;
10
+ contact: Contact;
9
11
  }
@@ -1,22 +1,8 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Refund = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
4
  const entity_1 = require("../../entity");
15
5
  class Refund extends entity_1.Entity {
16
6
  }
17
- __decorate([
18
- (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
19
- __metadata("design:type", BigInt)
20
- ], Refund.prototype, "amount", void 0);
21
7
  exports.Refund = Refund;
22
8
  //# sourceMappingURL=Refund.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Refund.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund/entities/Refund.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAItC,MAAa,MAAO,SAAQ,eAAM;CASjC;AAJC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;sCACzB;AANjB,wBASC"}
1
+ {"version":3,"file":"Refund.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund/entities/Refund.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAKtC,MAAa,MAAO,SAAQ,eAAM;CAUjC;AAVD,wBAUC"}
@@ -1 +1,2 @@
1
+ export * from './BaseRefund.entity';
1
2
  export * from './Refund.entity';
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BaseRefund.entity"), exports);
17
18
  __exportStar(require("./Refund.entity"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC"}
@@ -1,6 +1,6 @@
1
- import { IntervalType } from '../../paystream';
2
1
  import { BlockchainSymbol } from '../../blockchain';
3
2
  import { Entity } from '../../entity';
3
+ import { IntervalType } from '../../../constants';
4
4
  export declare class ReportItem extends Entity {
5
5
  id: string;
6
6
  txSignature: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ReportItem.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/report/entities/ReportItem.entity.ts"],"names":[],"mappings":";;;AAEA,yCAAsC;AAEtC,MAAa,UAAW,SAAQ,eAAM;CAoErC;AApED,gCAoEC"}
1
+ {"version":3,"file":"ReportItem.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/report/entities/ReportItem.entity.ts"],"names":[],"mappings":";;;AACA,yCAAsC;AAGtC,MAAa,UAAW,SAAQ,eAAM;CAoErC;AApED,gCAoEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,kEAAgD;AAChD,qEAAmD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,kEAAgD;AAChD,qEAAmD"}
@@ -1 +1,2 @@
1
1
  export * from './TransactionStatus';
2
+ export * from './TransactionType';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./TransactionStatus"), exports);
18
+ __exportStar(require("./TransactionType"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC"}