@heliofi/common 0.1.278-alpha.4 → 0.1.279

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 (45) hide show
  1. package/dist/src/domain/constants/index.d.ts +1 -0
  2. package/dist/src/domain/constants/index.js +33 -48
  3. package/dist/src/domain/constants/index.js.map +1 -1
  4. package/dist/src/domain/constants/transactionDirection.d.ts +5 -0
  5. package/dist/src/domain/constants/transactionDirection.js +14 -0
  6. package/dist/src/domain/constants/transactionDirection.js.map +1 -0
  7. package/dist/src/domain/index.js +22 -38
  8. package/dist/src/domain/model/blockchain/index.d.ts +1 -0
  9. package/dist/src/domain/model/blockchain/index.js +21 -36
  10. package/dist/src/domain/model/blockchain/index.js.map +1 -1
  11. package/dist/src/domain/model/blockchain/typeGuards/index.d.ts +2 -0
  12. package/dist/src/domain/model/blockchain/typeGuards/index.js +10 -0
  13. package/dist/src/domain/model/blockchain/typeGuards/index.js.map +1 -0
  14. package/dist/src/domain/model/currency/entities/Currency.entity.js +6 -5
  15. package/dist/src/domain/model/email/dtos/email.dto.js +78 -198
  16. package/dist/src/domain/model/email/dtos/emailInvoice.dto.js +57 -142
  17. package/dist/src/domain/model/evm-transaction-monitoring/entities/EvmTransactionMonitoring.entity.js +6 -5
  18. package/dist/src/domain/model/index.js +94 -110
  19. package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.js +6 -5
  20. package/dist/src/domain/model/paylink/dtos/createPaylink.dto.js +42 -92
  21. package/dist/src/domain/model/paylink/dtos/updatePaylink.dto.js +42 -92
  22. package/dist/src/domain/model/paylink/entities/BasePaylink.js +6 -5
  23. package/dist/src/domain/model/paylink/entities/ShallowEnrichedPaylink.js +6 -5
  24. package/dist/src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.js +25 -56
  25. package/dist/src/domain/model/payment-request/dtos/createPaymentRequest.dto.js +97 -232
  26. package/dist/src/domain/model/payment-request/dtos/updatePaymentRequest.dto.js +88 -212
  27. package/dist/src/domain/model/paystream/dtos/createPaystream.dto.js +31 -66
  28. package/dist/src/domain/model/paystream/dtos/updatePaystream.dto.js +31 -66
  29. package/dist/src/domain/model/paystream/entities/BasePaystream.js +6 -5
  30. package/dist/src/domain/model/paystream/entities/Paystream.js +6 -5
  31. package/dist/src/domain/model/paystream/entities/ShallowEnrichedPaystream.js +6 -5
  32. package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.entity.js +34 -74
  33. package/dist/src/domain/model/recipient/dtos/Recipient.dto.d.ts +2 -2
  34. package/dist/src/domain/model/recipient/dtos/Recipient.dto.js +20 -45
  35. package/dist/src/domain/model/recipient/dtos/Recipient.dto.js.map +1 -1
  36. package/dist/src/domain/model/recipient/dtos/index.js +18 -34
  37. package/dist/src/domain/model/refund/dtos/createRefund.dto.js +33 -75
  38. package/dist/src/domain/model/report/entities/ReportItem.entity.js +6 -5
  39. package/dist/src/domain/model/wallet/entities/Wallet.entity.js +6 -5
  40. package/dist/src/domain/services/ClusterService.js +45 -44
  41. package/dist/src/domain/services/ExplorerAggregateService.js +15 -25
  42. package/dist/src/domain/services/PolygonExplorerService.js +12 -14
  43. package/dist/src/domain/services/SolscanService.js +8 -8
  44. package/dist/tsconfig.tsbuildinfo +1 -1
  45. package/package.json +2 -2
@@ -1,111 +1,61 @@
1
- 'use strict';
2
- var __decorate =
3
- (this && this.__decorate) ||
4
- function (decorators, target, key, desc) {
5
- var c = arguments.length,
6
- r =
7
- c < 3
8
- ? target
9
- : desc === null
10
- ? (desc = Object.getOwnPropertyDescriptor(target, key))
11
- : desc,
12
- d;
13
- if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
14
- r = Reflect.decorate(decorators, target, key, desc);
15
- else
16
- for (var i = decorators.length - 1; i >= 0; i--)
17
- if ((d = decorators[i]))
18
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
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;
19
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20
- };
21
- var __metadata =
22
- (this && this.__metadata) ||
23
- function (k, v) {
24
- if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function')
25
- return Reflect.metadata(k, v);
26
- };
27
- Object.defineProperty(exports, '__esModule', { value: true });
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
+ Object.defineProperty(exports, "__esModule", { value: true });
28
12
  exports.UpdatePaylinkDto = void 0;
29
- const class_validator_1 = require('class-validator');
30
- const class_transformer_1 = require('class-transformer');
31
- const link_features_1 = require('../../link-features');
32
- const split_wallets_1 = require('../../split-wallets');
33
- const payment_request_1 = require('../../payment-request');
34
- const helio_play_1 = require('../../helio-play');
35
- const discount_codes_1 = require('../../discount-codes');
36
- const constants_1 = require('../../../constants');
37
- class UpdatePaylinkDto extends payment_request_1.UpdatePaymentRequestDto {}
38
- __decorate(
39
- [
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const link_features_1 = require("../../link-features");
16
+ const split_wallets_1 = require("../../split-wallets");
17
+ const payment_request_1 = require("../../payment-request");
18
+ const helio_play_1 = require("../../helio-play");
19
+ const discount_codes_1 = require("../../discount-codes");
20
+ const constants_1 = require("../../../constants");
21
+ class UpdatePaylinkDto extends payment_request_1.UpdatePaymentRequestDto {
22
+ }
23
+ __decorate([
40
24
  (0, class_validator_1.IsOptional)(),
41
25
  (0, class_transformer_1.Type)(() => link_features_1.LinkFeaturesDto),
42
26
  (0, class_validator_1.ValidateNested)(),
43
- __metadata('design:type', link_features_1.LinkFeaturesDto),
44
- ],
45
- UpdatePaylinkDto.prototype,
46
- 'features',
47
- void 0,
48
- );
49
- __decorate(
50
- [
27
+ __metadata("design:type", link_features_1.LinkFeaturesDto)
28
+ ], UpdatePaylinkDto.prototype, "features", void 0);
29
+ __decorate([
51
30
  (0, class_transformer_1.Type)(() => split_wallets_1.SplitWalletDto),
52
31
  (0, class_validator_1.IsOptional)(),
53
- __metadata('design:type', Array),
54
- ],
55
- UpdatePaylinkDto.prototype,
56
- 'splitWallets',
57
- void 0,
58
- );
59
- __decorate(
60
- [
32
+ __metadata("design:type", Array)
33
+ ], UpdatePaylinkDto.prototype, "splitWallets", void 0);
34
+ __decorate([
61
35
  (0, class_transformer_1.Type)(() => discount_codes_1.DiscountCodeDto),
62
36
  (0, class_validator_1.IsOptional)(),
63
- __metadata('design:type', Array),
64
- ],
65
- UpdatePaylinkDto.prototype,
66
- 'discountCodes',
67
- void 0,
68
- );
69
- __decorate(
70
- [
37
+ __metadata("design:type", Array)
38
+ ], UpdatePaylinkDto.prototype, "discountCodes", void 0);
39
+ __decorate([
71
40
  (0, class_validator_1.IsEnum)(constants_1.LimitSaleType),
72
41
  (0, class_validator_1.IsOptional)(),
73
- __metadata('design:type', String),
74
- ],
75
- UpdatePaylinkDto.prototype,
76
- 'limitSaleType',
77
- void 0,
78
- );
79
- __decorate(
80
- [
42
+ __metadata("design:type", String)
43
+ ], UpdatePaylinkDto.prototype, "limitSaleType", void 0);
44
+ __decorate([
81
45
  (0, class_validator_1.IsNumber)(),
82
46
  (0, class_validator_1.IsOptional)(),
83
- __metadata('design:type', Number),
84
- ],
85
- UpdatePaylinkDto.prototype,
86
- 'minQuantity',
87
- void 0,
88
- );
89
- __decorate(
90
- [
47
+ __metadata("design:type", Number)
48
+ ], UpdatePaylinkDto.prototype, "minQuantity", void 0);
49
+ __decorate([
91
50
  (0, class_validator_1.IsNumber)(),
92
51
  (0, class_validator_1.IsOptional)(),
93
- __metadata('design:type', Number),
94
- ],
95
- UpdatePaylinkDto.prototype,
96
- 'maxQuantity',
97
- void 0,
98
- );
99
- __decorate(
100
- [
52
+ __metadata("design:type", Number)
53
+ ], UpdatePaylinkDto.prototype, "maxQuantity", void 0);
54
+ __decorate([
101
55
  (0, class_validator_1.IsOptional)(),
102
56
  (0, class_transformer_1.Type)(() => helio_play_1.HelioPlayPropertiesDto),
103
57
  (0, class_validator_1.ValidateNested)(),
104
- __metadata('design:type', helio_play_1.HelioPlayPropertiesDto),
105
- ],
106
- UpdatePaylinkDto.prototype,
107
- 'helioPlayProperties',
108
- void 0,
109
- );
58
+ __metadata("design:type", helio_play_1.HelioPlayPropertiesDto)
59
+ ], UpdatePaylinkDto.prototype, "helioPlayProperties", void 0);
110
60
  exports.UpdatePaylinkDto = UpdatePaylinkDto;
111
- //# sourceMappingURL=updatePaylink.dto.js.map
61
+ //# sourceMappingURL=updatePaylink.dto.js.map
@@ -1,7 +1,8 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BasePaylink = void 0;
4
- const payment_request_1 = require('../../payment-request');
5
- class BasePaylink extends payment_request_1.BasePaymentRequest {}
4
+ const payment_request_1 = require("../../payment-request");
5
+ class BasePaylink extends payment_request_1.BasePaymentRequest {
6
+ }
6
7
  exports.BasePaylink = BasePaylink;
7
- //# sourceMappingURL=BasePaylink.js.map
8
+ //# sourceMappingURL=BasePaylink.js.map
@@ -1,7 +1,8 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ShallowEnrichedPaylink = void 0;
4
- const payment_request_1 = require('../../payment-request');
5
- class ShallowEnrichedPaylink extends payment_request_1.ShallowEnrichedPaymentRequest {}
4
+ const payment_request_1 = require("../../payment-request");
5
+ class ShallowEnrichedPaylink extends payment_request_1.ShallowEnrichedPaymentRequest {
6
+ }
6
7
  exports.ShallowEnrichedPaylink = ShallowEnrichedPaylink;
7
- //# sourceMappingURL=ShallowEnrichedPaylink.js.map
8
+ //# sourceMappingURL=ShallowEnrichedPaylink.js.map
@@ -1,59 +1,28 @@
1
- 'use strict';
2
- var __decorate =
3
- (this && this.__decorate) ||
4
- function (decorators, target, key, desc) {
5
- var c = arguments.length,
6
- r =
7
- c < 3
8
- ? target
9
- : desc === null
10
- ? (desc = Object.getOwnPropertyDescriptor(target, key))
11
- : desc,
12
- d;
13
- if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
14
- r = Reflect.decorate(decorators, target, key, desc);
15
- else
16
- for (var i = decorators.length - 1; i >= 0; i--)
17
- if ((d = decorators[i]))
18
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
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;
19
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20
- };
21
- var __metadata =
22
- (this && this.__metadata) ||
23
- function (k, v) {
24
- if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function')
25
- return Reflect.metadata(k, v);
26
- };
27
- Object.defineProperty(exports, '__esModule', { value: true });
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
+ Object.defineProperty(exports, "__esModule", { value: true });
28
12
  exports.PaylinkTxWithShallowEnrichedPaylink = void 0;
29
- const class_transformer_1 = require('class-transformer');
30
- const BasePaylinkTx_1 = require('./BasePaylinkTx');
31
- const transaction_meta_1 = require('../../transaction-meta');
32
- const paylink_1 = require('../../paylink');
33
- class PaylinkTxWithShallowEnrichedPaylink extends BasePaylinkTx_1.BasePaylinkTx {}
34
- __decorate(
35
- [
36
- (0, class_transformer_1.Type)(
37
- () => transaction_meta_1.ShallowEnrichedTransactionMeta,
38
- ),
39
- __metadata(
40
- 'design:type',
41
- transaction_meta_1.ShallowEnrichedTransactionMeta,
42
- ),
43
- ],
44
- PaylinkTxWithShallowEnrichedPaylink.prototype,
45
- 'meta',
46
- void 0,
47
- );
48
- __decorate(
49
- [
13
+ const class_transformer_1 = require("class-transformer");
14
+ const BasePaylinkTx_1 = require("./BasePaylinkTx");
15
+ const transaction_meta_1 = require("../../transaction-meta");
16
+ const paylink_1 = require("../../paylink");
17
+ class PaylinkTxWithShallowEnrichedPaylink extends BasePaylinkTx_1.BasePaylinkTx {
18
+ }
19
+ __decorate([
20
+ (0, class_transformer_1.Type)(() => transaction_meta_1.ShallowEnrichedTransactionMeta),
21
+ __metadata("design:type", transaction_meta_1.ShallowEnrichedTransactionMeta)
22
+ ], PaylinkTxWithShallowEnrichedPaylink.prototype, "meta", void 0);
23
+ __decorate([
50
24
  (0, class_transformer_1.Type)(() => paylink_1.ShallowEnrichedPaylink),
51
- __metadata('design:type', paylink_1.ShallowEnrichedPaylink),
52
- ],
53
- PaylinkTxWithShallowEnrichedPaylink.prototype,
54
- 'paylink',
55
- void 0,
56
- );
57
- exports.PaylinkTxWithShallowEnrichedPaylink =
58
- PaylinkTxWithShallowEnrichedPaylink;
59
- //# sourceMappingURL=PaylinkTxWithShallowEnrichedPaylink.js.map
25
+ __metadata("design:type", paylink_1.ShallowEnrichedPaylink)
26
+ ], PaylinkTxWithShallowEnrichedPaylink.prototype, "paylink", void 0);
27
+ exports.PaylinkTxWithShallowEnrichedPaylink = PaylinkTxWithShallowEnrichedPaylink;
28
+ //# sourceMappingURL=PaylinkTxWithShallowEnrichedPaylink.js.map
@@ -1,290 +1,155 @@
1
- 'use strict';
2
- var __decorate =
3
- (this && this.__decorate) ||
4
- function (decorators, target, key, desc) {
5
- var c = arguments.length,
6
- r =
7
- c < 3
8
- ? target
9
- : desc === null
10
- ? (desc = Object.getOwnPropertyDescriptor(target, key))
11
- : desc,
12
- d;
13
- if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
14
- r = Reflect.decorate(decorators, target, key, desc);
15
- else
16
- for (var i = decorators.length - 1; i >= 0; i--)
17
- if ((d = decorators[i]))
18
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
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;
19
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20
- };
21
- var __metadata =
22
- (this && this.__metadata) ||
23
- function (k, v) {
24
- if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function')
25
- return Reflect.metadata(k, v);
26
- };
27
- Object.defineProperty(exports, '__esModule', { value: true });
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
+ Object.defineProperty(exports, "__esModule", { value: true });
28
12
  exports.CreatePaymentRequestDto = void 0;
29
- const class_validator_1 = require('class-validator');
30
- const class_transformer_1 = require('class-transformer');
31
- const content_1 = require('../../content');
32
- const product_1 = require('../../product');
33
- const fixed_currency_1 = require('../../fixed-currency');
34
- const discordAuthProperties_1 = require('../../discordAuthProperties');
35
- const access_code_auth_properties_1 = require('../../access-code-auth-properties');
36
- const blockchain_1 = require('../../blockchain');
37
- const nft_drop_1 = require('../../nft-drop');
38
- const decorators_1 = require('../../../decorators');
39
- const recipient_1 = require('../../recipient');
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const content_1 = require("../../content");
16
+ const product_1 = require("../../product");
17
+ const fixed_currency_1 = require("../../fixed-currency");
18
+ const discordAuthProperties_1 = require("../../discordAuthProperties");
19
+ const access_code_auth_properties_1 = require("../../access-code-auth-properties");
20
+ const blockchain_1 = require("../../blockchain");
21
+ const nft_drop_1 = require("../../nft-drop");
22
+ const decorators_1 = require("../../../decorators");
23
+ const recipient_1 = require("../../recipient");
40
24
  class CreatePaymentRequestDto {
41
- constructor() {
42
- this.notifySenderByEmail = false;
43
- this.notifyReceiverByEmail = false;
44
- this.addDiscordRole = false;
45
- }
25
+ constructor() {
26
+ this.notifySenderByEmail = false;
27
+ this.notifyReceiverByEmail = false;
28
+ this.addDiscordRole = false;
29
+ }
46
30
  }
47
- __decorate(
48
- [
31
+ __decorate([
49
32
  (0, class_validator_1.IsString)(),
50
33
  (0, class_validator_1.IsNotEmpty)(),
51
- __metadata('design:type', String),
52
- ],
53
- CreatePaymentRequestDto.prototype,
54
- 'company',
55
- void 0,
56
- );
57
- __decorate(
58
- [
34
+ __metadata("design:type", String)
35
+ ], CreatePaymentRequestDto.prototype, "company", void 0);
36
+ __decorate([
59
37
  (0, class_validator_1.IsString)(),
60
38
  (0, class_validator_1.IsNotEmpty)(),
61
- __metadata('design:type', String),
62
- ],
63
- CreatePaymentRequestDto.prototype,
64
- 'name',
65
- void 0,
66
- );
67
- __decorate(
68
- [
39
+ __metadata("design:type", String)
40
+ ], CreatePaymentRequestDto.prototype, "name", void 0);
41
+ __decorate([
69
42
  (0, class_validator_1.IsString)(),
70
43
  (0, class_validator_1.IsOptional)(),
71
- __metadata('design:type', String),
72
- ],
73
- CreatePaymentRequestDto.prototype,
74
- 'description',
75
- void 0,
76
- );
77
- __decorate(
78
- [
44
+ __metadata("design:type", String)
45
+ ], CreatePaymentRequestDto.prototype, "description", void 0);
46
+ __decorate([
79
47
  (0, class_validator_1.IsString)(),
80
48
  (0, class_validator_1.IsOptional)(),
81
- __metadata('design:type', String),
82
- ],
83
- CreatePaymentRequestDto.prototype,
84
- 'image',
85
- void 0,
86
- );
87
- __decorate(
88
- [
49
+ __metadata("design:type", String)
50
+ ], CreatePaymentRequestDto.prototype, "image", void 0);
51
+ __decorate([
89
52
  (0, class_validator_1.ValidateIf)((object) => {
90
- return !object.dynamic && !object.features?.canChangePrice;
91
- }),
92
- (0, decorators_1.BigintMin)(1n, {
93
- message: 'Price must be greater than 0',
53
+ return !object.dynamic && !object.features?.canChangePrice;
94
54
  }),
55
+ (0, decorators_1.BigintMin)(1n, { message: 'Price must be greater than 0' }),
95
56
  (0, class_validator_1.IsOptional)(),
96
57
  (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
97
- __metadata('design:type', String),
98
- ],
99
- CreatePaymentRequestDto.prototype,
100
- 'normalizedPrice',
101
- void 0,
102
- );
103
- __decorate(
104
- [
58
+ __metadata("design:type", String)
59
+ ], CreatePaymentRequestDto.prototype, "normalizedPrice", void 0);
60
+ __decorate([
105
61
  (0, class_validator_1.IsBoolean)(),
106
62
  (0, class_validator_1.IsOptional)(),
107
- __metadata('design:type', Boolean),
108
- ],
109
- CreatePaymentRequestDto.prototype,
110
- 'notifySenderByEmail',
111
- void 0,
112
- );
113
- __decorate(
114
- [
63
+ __metadata("design:type", Boolean)
64
+ ], CreatePaymentRequestDto.prototype, "notifySenderByEmail", void 0);
65
+ __decorate([
115
66
  (0, class_validator_1.IsBoolean)(),
116
67
  (0, class_validator_1.IsOptional)(),
117
- __metadata('design:type', Boolean),
118
- ],
119
- CreatePaymentRequestDto.prototype,
120
- 'notifyReceiverByEmail',
121
- void 0,
122
- );
123
- __decorate(
124
- [
68
+ __metadata("design:type", Boolean)
69
+ ], CreatePaymentRequestDto.prototype, "notifyReceiverByEmail", void 0);
70
+ __decorate([
125
71
  (0, class_validator_1.IsBoolean)(),
126
72
  (0, class_validator_1.IsOptional)(),
127
- __metadata('design:type', Boolean),
128
- ],
129
- CreatePaymentRequestDto.prototype,
130
- 'addDiscordRole',
131
- void 0,
132
- );
133
- __decorate(
134
- [
73
+ __metadata("design:type", Boolean)
74
+ ], CreatePaymentRequestDto.prototype, "addDiscordRole", void 0);
75
+ __decorate([
135
76
  (0, class_validator_1.IsString)(),
136
77
  (0, class_validator_1.IsOptional)(),
137
- __metadata('design:type', String),
138
- ],
139
- CreatePaymentRequestDto.prototype,
140
- 'currency',
141
- void 0,
142
- );
143
- __decorate(
144
- [
78
+ __metadata("design:type", String)
79
+ ], CreatePaymentRequestDto.prototype, "currency", void 0);
80
+ __decorate([
145
81
  (0, class_validator_1.IsString)(),
146
82
  (0, class_validator_1.IsOptional)(),
147
83
  (0, class_validator_1.IsEnum)(blockchain_1.BlockchainSymbol),
148
- __metadata('design:type', String),
149
- ],
150
- CreatePaymentRequestDto.prototype,
151
- 'blockchain',
152
- void 0,
153
- );
154
- __decorate(
155
- [
84
+ __metadata("design:type", String)
85
+ ], CreatePaymentRequestDto.prototype, "blockchain", void 0);
86
+ __decorate([
156
87
  (0, class_validator_1.IsBoolean)(),
157
88
  (0, class_validator_1.IsOptional)(),
158
- __metadata('design:type', Boolean),
159
- ],
160
- CreatePaymentRequestDto.prototype,
161
- 'disabled',
162
- void 0,
163
- );
164
- __decorate(
165
- [
89
+ __metadata("design:type", Boolean)
90
+ ], CreatePaymentRequestDto.prototype, "disabled", void 0);
91
+ __decorate([
166
92
  (0, class_validator_1.IsBoolean)(),
167
93
  (0, class_validator_1.IsOptional)(),
168
- __metadata('design:type', Boolean),
169
- ],
170
- CreatePaymentRequestDto.prototype,
171
- 'dynamic',
172
- void 0,
173
- );
174
- __decorate(
175
- [
94
+ __metadata("design:type", Boolean)
95
+ ], CreatePaymentRequestDto.prototype, "dynamic", void 0);
96
+ __decorate([
176
97
  (0, class_validator_1.IsString)(),
177
98
  (0, class_validator_1.IsOptional)(),
178
- __metadata('design:type', String),
179
- ],
180
- CreatePaymentRequestDto.prototype,
181
- 'wallet',
182
- void 0,
183
- );
184
- __decorate(
185
- [
99
+ __metadata("design:type", String)
100
+ ], CreatePaymentRequestDto.prototype, "wallet", void 0);
101
+ __decorate([
186
102
  (0, class_validator_1.IsOptional)(),
187
103
  (0, class_transformer_1.Type)(() => content_1.ContentDto),
188
104
  (0, class_validator_1.ValidateNested)(),
189
- __metadata('design:type', content_1.ContentDto),
190
- ],
191
- CreatePaymentRequestDto.prototype,
192
- 'content',
193
- void 0,
194
- );
195
- __decorate(
196
- [
105
+ __metadata("design:type", content_1.ContentDto)
106
+ ], CreatePaymentRequestDto.prototype, "content", void 0);
107
+ __decorate([
197
108
  (0, class_validator_1.IsNumber)(),
198
109
  (0, class_validator_1.IsOptional)(),
199
- __metadata('design:type', Number),
200
- ],
201
- CreatePaymentRequestDto.prototype,
202
- 'maxTransactions',
203
- void 0,
204
- );
205
- __decorate(
206
- [
110
+ __metadata("design:type", Number)
111
+ ], CreatePaymentRequestDto.prototype, "maxTransactions", void 0);
112
+ __decorate([
207
113
  (0, class_validator_1.IsOptional)(),
208
114
  (0, class_transformer_1.Type)(() => product_1.ProductDto),
209
115
  (0, class_validator_1.ValidateNested)(),
210
- __metadata('design:type', product_1.ProductDto),
211
- ],
212
- CreatePaymentRequestDto.prototype,
213
- 'product',
214
- void 0,
215
- );
216
- __decorate(
217
- [
116
+ __metadata("design:type", product_1.ProductDto)
117
+ ], CreatePaymentRequestDto.prototype, "product", void 0);
118
+ __decorate([
218
119
  (0, class_validator_1.IsString)(),
219
120
  (0, class_validator_1.IsOptional)(),
220
- __metadata('design:type', String),
221
- ],
222
- CreatePaymentRequestDto.prototype,
223
- 'nftCollectionAddress',
224
- void 0,
225
- );
226
- __decorate(
227
- [
228
- (0, class_transformer_1.Type)(
229
- () => discordAuthProperties_1.DiscordAuthPropertiesDto,
230
- ),
121
+ __metadata("design:type", String)
122
+ ], CreatePaymentRequestDto.prototype, "nftCollectionAddress", void 0);
123
+ __decorate([
124
+ (0, class_transformer_1.Type)(() => discordAuthProperties_1.DiscordAuthPropertiesDto),
231
125
  (0, class_validator_1.IsOptional)(),
232
126
  (0, class_validator_1.ValidateNested)(),
233
- __metadata('design:type', discordAuthProperties_1.DiscordAuthPropertiesDto),
234
- ],
235
- CreatePaymentRequestDto.prototype,
236
- 'discordAuthProperties',
237
- void 0,
238
- );
239
- __decorate(
240
- [
127
+ __metadata("design:type", discordAuthProperties_1.DiscordAuthPropertiesDto)
128
+ ], CreatePaymentRequestDto.prototype, "discordAuthProperties", void 0);
129
+ __decorate([
241
130
  (0, class_transformer_1.Type)(() => nft_drop_1.NftDropDto),
242
131
  (0, class_validator_1.IsOptional)(),
243
132
  (0, class_validator_1.ValidateNested)(),
244
- __metadata('design:type', nft_drop_1.NftDropDto),
245
- ],
246
- CreatePaymentRequestDto.prototype,
247
- 'nftDrop',
248
- void 0,
249
- );
250
- __decorate(
251
- [
252
- (0, class_transformer_1.Type)(
253
- () => access_code_auth_properties_1.AccessCodeAuthPropertiesDto,
254
- ),
133
+ __metadata("design:type", nft_drop_1.NftDropDto)
134
+ ], CreatePaymentRequestDto.prototype, "nftDrop", void 0);
135
+ __decorate([
136
+ (0, class_transformer_1.Type)(() => access_code_auth_properties_1.AccessCodeAuthPropertiesDto),
255
137
  (0, class_validator_1.IsOptional)(),
256
138
  (0, class_validator_1.ValidateNested)(),
257
- __metadata(
258
- 'design:type',
259
- access_code_auth_properties_1.AccessCodeAuthPropertiesDto,
260
- ),
261
- ],
262
- CreatePaymentRequestDto.prototype,
263
- 'accessCodeAuthProperties',
264
- void 0,
265
- );
266
- __decorate(
267
- [
139
+ __metadata("design:type", access_code_auth_properties_1.AccessCodeAuthPropertiesDto)
140
+ ], CreatePaymentRequestDto.prototype, "accessCodeAuthProperties", void 0);
141
+ __decorate([
268
142
  (0, class_transformer_1.Type)(() => fixed_currency_1.FixedCurrencyDto),
269
143
  (0, class_validator_1.IsOptional)(),
270
- __metadata('design:type', fixed_currency_1.FixedCurrencyDto),
271
- ],
272
- CreatePaymentRequestDto.prototype,
273
- 'fixedCurrency',
274
- void 0,
275
- );
276
- __decorate(
277
- [
144
+ __metadata("design:type", fixed_currency_1.FixedCurrencyDto)
145
+ ], CreatePaymentRequestDto.prototype, "fixedCurrency", void 0);
146
+ __decorate([
278
147
  (0, class_validator_1.IsArray)(),
279
148
  (0, class_transformer_1.Type)(() => recipient_1.RecipientDto),
280
149
  (0, class_validator_1.IsOptional)(),
281
150
  (0, class_validator_1.ArrayMinSize)(1),
282
151
  (0, class_validator_1.ValidateNested)({ each: true }),
283
- __metadata('design:type', Array),
284
- ],
285
- CreatePaymentRequestDto.prototype,
286
- 'recipients',
287
- void 0,
288
- );
152
+ __metadata("design:type", Array)
153
+ ], CreatePaymentRequestDto.prototype, "recipients", void 0);
289
154
  exports.CreatePaymentRequestDto = CreatePaymentRequestDto;
290
- //# sourceMappingURL=createPaymentRequest.dto.js.map
155
+ //# sourceMappingURL=createPaymentRequest.dto.js.map