@heliofi/common 0.2.230 → 0.2.231
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.
- package/dist/src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.d.ts +5 -1
- package/dist/src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.js +11 -0
- package/dist/src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.js.map +1 -1
- package/dist/src/domain/model/onramp/entities/OnRamperFiat.entity.d.ts +7 -0
- package/dist/src/domain/model/onramp/entities/OnRamperFiat.entity.js +7 -0
- package/dist/src/domain/model/onramp/entities/OnRamperFiat.entity.js.map +1 -0
- package/dist/src/domain/model/onramp/entities/OnRamperSupportedCurrenciesAndTokens.entity.d.ts +6 -0
- package/dist/src/domain/model/onramp/entities/OnRamperSupportedCurrenciesAndTokens.entity.js +7 -0
- package/dist/src/domain/model/onramp/entities/OnRamperSupportedCurrenciesAndTokens.entity.js.map +1 -0
- package/dist/src/domain/model/onramp/entities/OnRamperToken.entity.d.ts +12 -0
- package/dist/src/domain/model/onramp/entities/OnRamperToken.entity.js +7 -0
- package/dist/src/domain/model/onramp/entities/OnRamperToken.entity.js.map +1 -0
- package/dist/src/domain/model/onramp/entities/index.d.ts +3 -0
- package/dist/src/domain/model/onramp/entities/index.js +3 -0
- package/dist/src/domain/model/onramp/entities/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare enum PaymentMethod {
|
|
2
2
|
CRYPTO = "CRYPTO",
|
|
3
|
-
ONRAMP = "ONRAMP"
|
|
3
|
+
ONRAMP = "ONRAMP",
|
|
4
|
+
COINBASE = "COINBASE"
|
|
4
5
|
}
|
|
6
|
+
export declare function resolveDepositPaymentMethod(incomingTransactions: {
|
|
7
|
+
paymentMethod?: PaymentMethod;
|
|
8
|
+
}[] | undefined): PaymentMethod;
|
package/dist/src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.js
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PaymentMethod = void 0;
|
|
4
|
+
exports.resolveDepositPaymentMethod = resolveDepositPaymentMethod;
|
|
4
5
|
var PaymentMethod;
|
|
5
6
|
(function (PaymentMethod) {
|
|
6
7
|
PaymentMethod["CRYPTO"] = "CRYPTO";
|
|
7
8
|
PaymentMethod["ONRAMP"] = "ONRAMP";
|
|
9
|
+
PaymentMethod["COINBASE"] = "COINBASE";
|
|
8
10
|
})(PaymentMethod || (exports.PaymentMethod = PaymentMethod = {}));
|
|
11
|
+
function resolveDepositPaymentMethod(incomingTransactions) {
|
|
12
|
+
if (incomingTransactions?.some((tx) => tx.paymentMethod === PaymentMethod.COINBASE)) {
|
|
13
|
+
return PaymentMethod.COINBASE;
|
|
14
|
+
}
|
|
15
|
+
if (incomingTransactions?.some((tx) => tx.paymentMethod === PaymentMethod.ONRAMP)) {
|
|
16
|
+
return PaymentMethod.ONRAMP;
|
|
17
|
+
}
|
|
18
|
+
return PaymentMethod.CRYPTO;
|
|
19
|
+
}
|
|
9
20
|
//# sourceMappingURL=PaymentMethod.js.map
|
package/dist/src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethod.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PaymentMethod.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.ts"],"names":[],"mappings":";;;AAMA,kEAoBC;AA1BD,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;AACvB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,SAAgB,2BAA2B,CACzC,oBAAqE;IAErE,IACE,oBAAoB,EAAE,IAAI,CACxB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,KAAK,aAAa,CAAC,QAAQ,CACpD,EACD,CAAC;QACD,OAAO,aAAa,CAAC,QAAQ,CAAC;IAChC,CAAC;IAED,IACE,oBAAoB,EAAE,IAAI,CACxB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,KAAK,aAAa,CAAC,MAAM,CAClD,EACD,CAAC;QACD,OAAO,aAAa,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED,OAAO,aAAa,CAAC,MAAM,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OnRamperFiat.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnRamperFiat.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;CAUxB;AAVD,oCAUC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OnRamperSupportedCurrenciesAndTokens = void 0;
|
|
4
|
+
class OnRamperSupportedCurrenciesAndTokens {
|
|
5
|
+
}
|
|
6
|
+
exports.OnRamperSupportedCurrenciesAndTokens = OnRamperSupportedCurrenciesAndTokens;
|
|
7
|
+
//# sourceMappingURL=OnRamperSupportedCurrenciesAndTokens.entity.js.map
|
package/dist/src/domain/model/onramp/entities/OnRamperSupportedCurrenciesAndTokens.entity.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OnRamperSupportedCurrenciesAndTokens.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnRamperSupportedCurrenciesAndTokens.entity.ts"],"names":[],"mappings":";;;AAGA,MAAa,oCAAoC;CAIhD;AAJD,oFAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OnRamperToken.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnRamperToken.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;CAoBzB;AApBD,sCAoBC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from './OnRamperFiat.entity';
|
|
2
|
+
export * from './OnRamperSupportedCurrenciesAndTokens.entity';
|
|
3
|
+
export * from './OnRamperToken.entity';
|
|
1
4
|
export * from './OnrampPaymentMethod.entity';
|
|
2
5
|
export * from './OnrampPaymentMethodsResponse.entity';
|
|
3
6
|
export * from './OnrampQuote.entity';
|
|
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./OnRamperFiat.entity"), exports);
|
|
18
|
+
__exportStar(require("./OnRamperSupportedCurrenciesAndTokens.entity"), exports);
|
|
19
|
+
__exportStar(require("./OnRamperToken.entity"), exports);
|
|
17
20
|
__exportStar(require("./OnrampPaymentMethod.entity"), exports);
|
|
18
21
|
__exportStar(require("./OnrampPaymentMethodsResponse.entity"), exports);
|
|
19
22
|
__exportStar(require("./OnrampQuote.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
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
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gFAA8D;AAC9D,yDAAuC;AACvC,+DAA6C;AAC7C,wEAAsD;AACtD,uDAAqC;AACrC,oEAAkD;AAClD,6DAA2C;AAC3C,iEAA+C"}
|