@heliofi/common 0.1.540 → 0.1.541

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,5 @@
1
1
  export declare class PrepareTransactionChargeDto {
2
2
  account: string;
3
3
  paymentRequestId: string;
4
+ discountToken?: string;
4
5
  }
@@ -23,5 +23,10 @@ __decorate([
23
23
  (0, class_validator_1.IsNotEmpty)(),
24
24
  __metadata("design:type", String)
25
25
  ], PrepareTransactionChargeDto.prototype, "paymentRequestId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsString)(),
28
+ (0, class_validator_1.IsOptional)(),
29
+ __metadata("design:type", String)
30
+ ], PrepareTransactionChargeDto.prototype, "discountToken", void 0);
26
31
  exports.PrepareTransactionChargeDto = PrepareTransactionChargeDto;
27
32
  //# sourceMappingURL=prepareTransactionFromCharge.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareTransactionFromCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/prepareTransactionFromCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,2BAA2B;CAQvC;AAPC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACY;AAP3B,kEAQC"}
1
+ {"version":3,"file":"prepareTransactionFromCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/prepareTransactionFromCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,2BAA2B;CAYvC;AAXC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACY;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACU;AAXzB,kEAYC"}
@@ -0,0 +1,4 @@
1
+ export declare enum PaymentCheckoutType {
2
+ REGULAR = "REGULAR",
3
+ CHARGE = "CHARGE"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentCheckoutType = void 0;
4
+ var PaymentCheckoutType;
5
+ (function (PaymentCheckoutType) {
6
+ PaymentCheckoutType["REGULAR"] = "REGULAR";
7
+ PaymentCheckoutType["CHARGE"] = "CHARGE";
8
+ })(PaymentCheckoutType = exports.PaymentCheckoutType || (exports.PaymentCheckoutType = {}));
9
+ //# sourceMappingURL=PaymentCheckoutType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentCheckoutType.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/entities/PaymentCheckoutType.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AACnB,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B"}
@@ -1,3 +1,4 @@
1
1
  export * from './Charge.entity';
2
2
  export * from './PrepareRequestBodyFromCharge.entity';
3
3
  export * from './EnrichedCharge.entity';
4
+ export * from './PaymentCheckoutType';
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Charge.entity"), exports);
18
18
  __exportStar(require("./PrepareRequestBodyFromCharge.entity"), exports);
19
19
  __exportStar(require("./EnrichedCharge.entity"), exports);
20
+ __exportStar(require("./PaymentCheckoutType"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,wEAAsD;AACtD,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,wEAAsD;AACtD,0DAAwC;AACxC,wDAAsC"}
@@ -1,5 +1,7 @@
1
+ import { PaymentCheckoutType } from '../../charge';
1
2
  export declare class BaseSubmitTransactionDto {
2
3
  signedTransaction: string;
3
4
  currency: string;
4
5
  transactionToken?: string;
6
+ paymentCheckoutType?: PaymentCheckoutType;
5
7
  }
@@ -11,7 +11,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.BaseSubmitTransactionDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const charge_1 = require("../../charge");
14
15
  class BaseSubmitTransactionDto {
16
+ constructor() {
17
+ this.paymentCheckoutType = charge_1.PaymentCheckoutType.REGULAR;
18
+ }
15
19
  }
16
20
  __decorate([
17
21
  (0, class_validator_1.IsString)(),
@@ -28,5 +32,10 @@ __decorate([
28
32
  (0, class_validator_1.IsOptional)(),
29
33
  __metadata("design:type", String)
30
34
  ], BaseSubmitTransactionDto.prototype, "transactionToken", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsEnum)(charge_1.PaymentCheckoutType),
37
+ (0, class_validator_1.IsOptional)(),
38
+ __metadata("design:type", String)
39
+ ], BaseSubmitTransactionDto.prototype, "paymentCheckoutType", void 0);
31
40
  exports.BaseSubmitTransactionDto = BaseSubmitTransactionDto;
32
41
  //# sourceMappingURL=baseSubmitTransaction.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"baseSubmitTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/submit-transaction/dtos/baseSubmitTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,wBAAwB;CAYpC;AAXC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mEACa;AAE1B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACa;AAX5B,4DAYC"}
1
+ {"version":3,"file":"baseSubmitTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/submit-transaction/dtos/baseSubmitTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,yCAAmD;AAEnD,MAAa,wBAAwB;IAArC;QAeE,wBAAmB,GAAyB,4BAAmB,CAAC,OAAO,CAAC;IAC1E,CAAC;CAAA;AAfC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mEACa;AAE1B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACa;AAE1B;IAAC,IAAA,wBAAM,EAAC,4BAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;;qEAC2D;AAf1E,4DAgBC"}