@heliofi/common 0.2.222-alpha.1776272418 → 0.2.222

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.
@@ -18,7 +18,7 @@ __decorate([
18
18
  (0, class_validator_1.IsString)(),
19
19
  (0, class_validator_1.IsNotEmpty)(),
20
20
  (0, class_validator_1.Length)(2, 2, {
21
- message: 'Country must be a valid Alpha2 country code. (EG: US, UK, etc)',
21
+ message: 'Country must be a valid Alpha2 country code. (EG: US, GB, etc)',
22
22
  }),
23
23
  __metadata("design:type", String)
24
24
  ], GetOnrampCurrenciesDto.prototype, "country", void 0);
@@ -3,4 +3,7 @@ export declare class GetOnrampPaymentMethodsDto {
3
3
  depositCustomerToken?: string;
4
4
  currency: string;
5
5
  blockchain: BlockchainSymbol;
6
+ token: string;
7
+ country: string;
8
+ state?: string;
6
9
  }
@@ -30,4 +30,23 @@ __decorate([
30
30
  (0, class_validator_1.IsNotEmpty)(),
31
31
  __metadata("design:type", String)
32
32
  ], GetOnrampPaymentMethodsDto.prototype, "blockchain", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ (0, class_validator_1.IsNotEmpty)(),
36
+ __metadata("design:type", String)
37
+ ], GetOnrampPaymentMethodsDto.prototype, "token", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsString)(),
40
+ (0, class_validator_1.IsNotEmpty)(),
41
+ (0, class_validator_1.Length)(2, 2, {
42
+ message: 'Country must be a valid Alpha2 country code. (EG: US, GB, etc)',
43
+ }),
44
+ __metadata("design:type", String)
45
+ ], GetOnrampPaymentMethodsDto.prototype, "country", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsString)(),
48
+ (0, class_validator_1.IsOptional)(),
49
+ (0, class_validator_1.Length)(5, 5, { message: 'State must be 5 characters. (EG: us-ny, ca-qc)' }),
50
+ __metadata("design:type", String)
51
+ ], GetOnrampPaymentMethodsDto.prototype, "state", void 0);
33
52
  //# sourceMappingURL=getOnrampPaymentMethods.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOnrampPaymentMethods.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/getOnrampPaymentMethods.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,iDAAoD;AAEpD,MAAa,0BAA0B;CAYtC;AAZD,gEAYC;AATC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACiB;AAI9B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACI;AAIjB;IAFC,IAAA,wBAAM,EAAC,6BAAgB,CAAC;IACxB,IAAA,4BAAU,GAAE;;8DACgB"}
1
+ {"version":3,"file":"getOnrampPaymentMethods.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/getOnrampPaymentMethods.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,iDAAoD;AAEpD,MAAa,0BAA0B;CA4BtC;AA5BD,gEA4BC;AAzBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACiB;AAI9B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACI;AAIjB;IAFC,IAAA,wBAAM,EAAC,6BAAgB,CAAC;IACxB,IAAA,4BAAU,GAAE;;8DACgB;AAI7B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACC;AAOd;IALC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,CAAC,EAAE,CAAC,EAAE;QACZ,OAAO,EAAE,gEAAgE;KAC1E,CAAC;;2DACc;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,CAAC,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC;;yDAC7D"}
@@ -39,7 +39,7 @@ __decorate([
39
39
  (0, class_validator_1.IsString)(),
40
40
  (0, class_validator_1.IsNotEmpty)(),
41
41
  (0, class_validator_1.Length)(2, 2, {
42
- message: 'Country must be a valid Alpha2 country code. (EG: US, UK, etc)',
42
+ message: 'Country must be a valid Alpha2 country code. (EG: US, GB, etc)',
43
43
  }),
44
44
  __metadata("design:type", String)
45
45
  ], GetOnrampQuotesDto.prototype, "country", void 0);
@@ -74,7 +74,7 @@ __decorate([
74
74
  (0, class_validator_1.IsOptional)(),
75
75
  (0, class_validator_1.IsString)(),
76
76
  (0, class_validator_1.Length)(2, 2, {
77
- message: 'Country must be a valid Alpha2 country code. (EG: US, UK, etc)',
77
+ message: 'Country must be a valid Alpha2 country code. (EG: US, GB, etc)',
78
78
  }),
79
79
  __metadata("design:type", String)
80
80
  ], OnrampCheckoutDto.prototype, "country", void 0);
@@ -0,0 +1,5 @@
1
+ import { OnrampPaymentMethod } from './OnrampPaymentMethod.entity';
2
+ export declare class OnrampPaymentMethodsResponse {
3
+ onRamperCryptoId: string;
4
+ paymentMethods: OnrampPaymentMethod[];
5
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnrampPaymentMethodsResponse = void 0;
4
+ class OnrampPaymentMethodsResponse {
5
+ }
6
+ exports.OnrampPaymentMethodsResponse = OnrampPaymentMethodsResponse;
7
+ //# sourceMappingURL=OnrampPaymentMethodsResponse.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnrampPaymentMethodsResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnrampPaymentMethodsResponse.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,4BAA4B;CAIxC;AAJD,oEAIC"}
@@ -1,4 +1,5 @@
1
1
  export * from './OnrampPaymentMethod.entity';
2
+ export * from './OnrampPaymentMethodsResponse.entity';
2
3
  export * from './OnrampQuote.entity';
3
4
  export * from './OnrampQuotePaymentMethod.entity';
4
5
  export * from './OnrampTransaction.entity';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./OnrampPaymentMethod.entity"), exports);
18
+ __exportStar(require("./OnrampPaymentMethodsResponse.entity"), exports);
18
19
  __exportStar(require("./OnrampQuote.entity"), exports);
19
20
  __exportStar(require("./OnrampQuotePaymentMethod.entity"), exports);
20
21
  __exportStar(require("./OnrampTransaction.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,uDAAqC;AACrC,oEAAkD;AAClD,6DAA2C;AAC3C,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,wEAAsD;AACtD,uDAAqC;AACrC,oEAAkD;AAClD,6DAA2C;AAC3C,iEAA+C"}
@@ -1,8 +1,8 @@
1
1
  import { Entity } from '../../entity';
2
2
  export declare class SwapRouteStatusItem extends Entity {
3
3
  id: string;
4
- fromCurrency: string;
5
- toCurrency: string;
4
+ fromCurrencyId: string;
5
+ toCurrencyId: string;
6
6
  available: boolean;
7
7
  checkedAt?: string;
8
8
  }