@heliofi/common 0.2.85 → 0.2.87

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,4 +1,3 @@
1
1
  export declare class PartialUpdateChargeDto {
2
- currency: string;
3
2
  quantity?: number;
4
3
  }
@@ -13,11 +13,6 @@ exports.PartialUpdateChargeDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  class PartialUpdateChargeDto {
15
15
  }
16
- __decorate([
17
- (0, class_validator_1.IsString)(),
18
- (0, class_validator_1.IsNotEmpty)(),
19
- __metadata("design:type", String)
20
- ], PartialUpdateChargeDto.prototype, "currency", void 0);
21
16
  __decorate([
22
17
  (0, class_validator_1.IsOptional)(),
23
18
  (0, class_validator_1.IsNumber)(),
@@ -1 +1 @@
1
- {"version":3,"file":"partialUpdateCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/partialUpdateCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,sBAAsB;CAQlC;AAPC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACO;AAPpB,wDAQC"}
1
+ {"version":3,"file":"partialUpdateCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/partialUpdateCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,sBAAsB;CAIlC;AAHC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACO;AAHpB,wDAIC"}
@@ -3,6 +3,7 @@ import { CustomerDetailsDto } from '../../customer-details';
3
3
  import { ProductDetailsDto } from '../../product-details';
4
4
  export declare class UpdateChargeDto extends PartialUpdateChargeDto {
5
5
  amount: string;
6
+ currency: string;
6
7
  pricingCurrencyRateToken: string;
7
8
  customerDetails?: CustomerDetailsDto;
8
9
  productDetails?: ProductDetailsDto;
@@ -22,6 +22,11 @@ __decorate([
22
22
  (0, class_validator_1.IsNotEmpty)(),
23
23
  __metadata("design:type", String)
24
24
  ], UpdateChargeDto.prototype, "amount", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.IsNotEmpty)(),
28
+ __metadata("design:type", String)
29
+ ], UpdateChargeDto.prototype, "currency", void 0);
25
30
  __decorate([
26
31
  (0, class_validator_1.IsString)(),
27
32
  (0, class_validator_1.IsNotEmpty)(),
@@ -1 +1 @@
1
- {"version":3,"file":"updateCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/updateCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAKyB;AACzB,yDAAyC;AACzC,uEAAmE;AACnE,6DAA4D;AAC5D,2DAA0D;AAE1D,MAAa,eAAgB,SAAQ,gDAAsB;CAkB1D;AAjBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACoB;AAEjC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;wDAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;uDAAC;AAjBrC,0CAkBC"}
1
+ {"version":3,"file":"updateCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/updateCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAKyB;AACzB,yDAAyC;AACzC,uEAAmE;AACnE,6DAA4D;AAC5D,2DAA0D;AAE1D,MAAa,eAAgB,SAAQ,gDAAsB;CAsB1D;AArBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACoB;AAEjC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;wDAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;uDAAC;AArBrC,0CAsBC"}
@@ -4,4 +4,5 @@ export interface TokenRateParams {
4
4
  from: string;
5
5
  to: string;
6
6
  prid: string;
7
+ chargeToken?: string;
7
8
  }
@@ -5,6 +5,7 @@ export declare class TokenRatePayload extends Entity {
5
5
  from: string;
6
6
  to: string;
7
7
  prid: string;
8
+ chargeToken?: string;
8
9
  iat: number;
9
10
  exp: number;
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TokenRatePayload.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/fixed-currency/entities/TokenRatePayload.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAEtC,MAAa,gBAAiB,SAAQ,eAAM;CAe3C;AAdC;IAAC,IAAA,6BAAS,EAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;;8CACzB;AAFf,4CAeC"}
1
+ {"version":3,"file":"TokenRatePayload.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/fixed-currency/entities/TokenRatePayload.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAEtC,MAAa,gBAAiB,SAAQ,eAAM;CAiB3C;AAhBC;IAAC,IAAA,6BAAS,EAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;;8CACzB;AAFf,4CAiBC"}
@@ -0,0 +1,11 @@
1
+ import { CustomerDetailsDto } from '../../customer-details';
2
+ import { ProductDetailsDto } from '../../product-details';
3
+ export declare class PreparePaymentDto {
4
+ paymentRequestId: string;
5
+ senderPublicKey: string;
6
+ currencyId: string;
7
+ quantity?: number;
8
+ affiliateCode?: string;
9
+ customerDetails?: CustomerDetailsDto;
10
+ productDetails?: ProductDetailsDto;
11
+ }
@@ -0,0 +1,57 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PreparePaymentDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const customer_details_1 = require("../../customer-details");
16
+ const product_details_1 = require("../../product-details");
17
+ class PreparePaymentDto {
18
+ }
19
+ __decorate([
20
+ (0, class_validator_1.IsString)(),
21
+ (0, class_validator_1.IsNotEmpty)(),
22
+ __metadata("design:type", String)
23
+ ], PreparePaymentDto.prototype, "paymentRequestId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ __metadata("design:type", String)
28
+ ], PreparePaymentDto.prototype, "senderPublicKey", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ __metadata("design:type", String)
33
+ ], PreparePaymentDto.prototype, "currencyId", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsNumber)(),
36
+ (0, class_validator_1.IsOptional)(),
37
+ __metadata("design:type", Number)
38
+ ], PreparePaymentDto.prototype, "quantity", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.IsOptional)(),
42
+ __metadata("design:type", String)
43
+ ], PreparePaymentDto.prototype, "affiliateCode", void 0);
44
+ __decorate([
45
+ (0, class_transformer_1.Type)(() => customer_details_1.CustomerDetailsDto),
46
+ (0, class_validator_1.ValidateNested)(),
47
+ (0, class_validator_1.IsOptional)(),
48
+ __metadata("design:type", customer_details_1.CustomerDetailsDto)
49
+ ], PreparePaymentDto.prototype, "customerDetails", void 0);
50
+ __decorate([
51
+ (0, class_transformer_1.Type)(() => product_details_1.ProductDetailsDto),
52
+ (0, class_validator_1.ValidateNested)(),
53
+ (0, class_validator_1.IsOptional)(),
54
+ __metadata("design:type", product_details_1.ProductDetailsDto)
55
+ ], PreparePaymentDto.prototype, "productDetails", void 0);
56
+ exports.PreparePaymentDto = PreparePaymentDto;
57
+ //# sourceMappingURL=preparePayment.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparePayment.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/preparePayment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAyC;AACzC,6DAA4D;AAC5D,2DAA0D;AAE1D,MAAa,iBAAiB;CA8B7B;AA7BC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACY;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACW;AAExB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACK;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;0DAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;yDAAC;AA7BrC,8CA8BC"}