@heliofi/common 0.2.79 → 0.2.80-alpha.0

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.
@@ -1,6 +1,21 @@
1
- import { PrepareTransactionDto } from '../../prepare-transaction';
2
- export declare class PrepareTransactionFromChargeDto extends PrepareTransactionDto {
1
+ import { SourceIntegration } from '../../transaction-meta';
2
+ import { CustomerDetailsDto } from '../../customer-details';
3
+ import { ProductDetailsDto } from '../../product-details';
4
+ import { SolanaTransactionVersion } from '../../../constants';
5
+ export declare class PrepareTransactionFromChargeDto {
6
+ paymentRequestId: string;
3
7
  sender: string;
4
8
  canSwapTokens?: boolean;
5
9
  swapRouteToken?: string;
10
+ currency: string;
11
+ amount?: string;
12
+ quantity?: number;
13
+ discountToken?: string;
14
+ affiliateCode?: string;
15
+ customerDetails?: CustomerDetailsDto;
16
+ productDetails?: ProductDetailsDto;
17
+ pricingCurrencyRateToken: string;
18
+ sourceIntegration?: SourceIntegration;
19
+ sourceIntegrationVersion?: string;
20
+ solanaTransactionVersion?: SolanaTransactionVersion;
6
21
  }
@@ -11,9 +11,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PrepareTransactionFromChargeDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- const prepare_transaction_1 = require("../../prepare-transaction");
15
- class PrepareTransactionFromChargeDto extends prepare_transaction_1.PrepareTransactionDto {
14
+ const class_transformer_1 = require("class-transformer");
15
+ const transaction_meta_1 = require("../../transaction-meta");
16
+ const customer_details_1 = require("../../customer-details");
17
+ const product_details_1 = require("../../product-details");
18
+ const constants_1 = require("../../../constants");
19
+ class PrepareTransactionFromChargeDto {
16
20
  }
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ __metadata("design:type", String)
25
+ ], PrepareTransactionFromChargeDto.prototype, "paymentRequestId", void 0);
17
26
  __decorate([
18
27
  (0, class_validator_1.IsString)(),
19
28
  (0, class_validator_1.IsOptional)(),
@@ -29,5 +38,64 @@ __decorate([
29
38
  (0, class_validator_1.IsOptional)(),
30
39
  __metadata("design:type", String)
31
40
  ], PrepareTransactionFromChargeDto.prototype, "swapRouteToken", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsString)(),
43
+ (0, class_validator_1.IsNotEmpty)(),
44
+ __metadata("design:type", String)
45
+ ], PrepareTransactionFromChargeDto.prototype, "currency", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
49
+ __metadata("design:type", String)
50
+ ], PrepareTransactionFromChargeDto.prototype, "amount", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsNumber)(),
53
+ (0, class_validator_1.IsOptional)(),
54
+ __metadata("design:type", Number)
55
+ ], PrepareTransactionFromChargeDto.prototype, "quantity", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsString)(),
58
+ (0, class_validator_1.IsOptional)(),
59
+ __metadata("design:type", String)
60
+ ], PrepareTransactionFromChargeDto.prototype, "discountToken", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsString)(),
63
+ (0, class_validator_1.IsOptional)(),
64
+ __metadata("design:type", String)
65
+ ], PrepareTransactionFromChargeDto.prototype, "affiliateCode", void 0);
66
+ __decorate([
67
+ (0, class_transformer_1.Type)(() => customer_details_1.CustomerDetailsDto),
68
+ (0, class_validator_1.ValidateNested)(),
69
+ (0, class_validator_1.IsOptional)(),
70
+ __metadata("design:type", customer_details_1.CustomerDetailsDto)
71
+ ], PrepareTransactionFromChargeDto.prototype, "customerDetails", void 0);
72
+ __decorate([
73
+ (0, class_transformer_1.Type)(() => product_details_1.ProductDetailsDto),
74
+ (0, class_validator_1.ValidateNested)(),
75
+ (0, class_validator_1.IsOptional)(),
76
+ __metadata("design:type", product_details_1.ProductDetailsDto)
77
+ ], PrepareTransactionFromChargeDto.prototype, "productDetails", void 0);
78
+ __decorate([
79
+ (0, class_validator_1.IsString)(),
80
+ (0, class_validator_1.IsNotEmpty)(),
81
+ __metadata("design:type", String)
82
+ ], PrepareTransactionFromChargeDto.prototype, "pricingCurrencyRateToken", void 0);
83
+ __decorate([
84
+ (0, class_validator_1.IsEnum)(transaction_meta_1.SourceIntegration),
85
+ (0, class_validator_1.IsOptional)(),
86
+ __metadata("design:type", String)
87
+ ], PrepareTransactionFromChargeDto.prototype, "sourceIntegration", void 0);
88
+ __decorate([
89
+ (0, class_validator_1.IsString)(),
90
+ (0, class_validator_1.IsOptional)(),
91
+ (0, class_validator_1.MaxLength)(100),
92
+ __metadata("design:type", String)
93
+ ], PrepareTransactionFromChargeDto.prototype, "sourceIntegrationVersion", void 0);
94
+ __decorate([
95
+ (0, class_validator_1.IsString)(),
96
+ (0, class_validator_1.IsEnum)(constants_1.SolanaTransactionVersion),
97
+ (0, class_validator_1.IsOptional)(),
98
+ __metadata("design:type", String)
99
+ ], PrepareTransactionFromChargeDto.prototype, "solanaTransactionVersion", void 0);
32
100
  exports.PrepareTransactionFromChargeDto = PrepareTransactionFromChargeDto;
33
101
  //# sourceMappingURL=prepareRequestBodyFromCharge.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareRequestBodyFromCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/prepareRequestBodyFromCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAClE,mEAAkE;AAElE,MAAa,+BAAgC,SAAQ,2CAAqB;CAYzE;AAXC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACE;AAEf;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;sEACW;AAExB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACW;AAX1B,0EAYC"}
1
+ {"version":3,"file":"prepareRequestBodyFromCharge.dto.js","sourceRoot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CAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;0EACyB;AAEtC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;iFACmB;AAElC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,oCAAwB,CAAC;IAChC,IAAA,4BAAU,GAAE;;iFACuC;AA/DtD,0EAgEC"}
@@ -1,6 +1,5 @@
1
1
  export * from './email.dto';
2
2
  export * from './emailInvoice.dto';
3
- export * from './emailTopUp.dto';
4
3
  export * from './emailClaimRequest.dto';
5
4
  export * from './emailClaimSuccess.dto';
6
5
  export * from './emailClaimFailure.dto';
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./email.dto"), exports);
18
18
  __exportStar(require("./emailInvoice.dto"), exports);
19
- __exportStar(require("./emailTopUp.dto"), exports);
20
19
  __exportStar(require("./emailClaimRequest.dto"), exports);
21
20
  __exportStar(require("./emailClaimSuccess.dto"), exports);
22
21
  __exportStar(require("./emailClaimFailure.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/email/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,qDAAmC;AACnC,mDAAiC;AACjC,0DAAwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC;AACzC,8DAA4C;AAC5C,iEAA+C;AAC/C,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/email/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,qDAAmC;AACnC,0DAAwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC;AACzC,8DAA4C;AAC5C,iEAA+C;AAC/C,4DAA0C"}
@@ -1 +1 @@
1
- {"version":3,"file":"createStreamPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-stream/dtos/createStreamPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAC7E,yDAA8C;AAC9C,2EAAyE;AAEzE,MAAa,sBAAuB,SAAQ,kDAAwB;CAwBnE;AAvBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;yDACtB;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;uDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACoB;AAvBnC,wDAwBC"}
1
+ {"version":3,"file":"createStreamPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-stream/dtos/createStreamPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAC9C,2EAAyE;AAEzE,MAAa,sBAAuB,SAAQ,kDAAwB;CAwBnE;AAvBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;yDACtB;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;uDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACoB;AAvBnC,wDAwBC"}