@riocrypto/common 1.0.1284 → 1.0.1285
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.
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImmigrationStatusClass = void 0;
|
|
4
|
+
const immigration_status_1 = require("../types/immigration-status");
|
|
5
|
+
class ImmigrationStatusClass {
|
|
6
|
+
constructor(status) {
|
|
7
|
+
this.status = status;
|
|
8
|
+
}
|
|
9
|
+
getName() {
|
|
10
|
+
if (this.status === immigration_status_1.ImmigrationStatus.Citizen) {
|
|
11
|
+
return "Citizen";
|
|
12
|
+
}
|
|
13
|
+
else if (this.status === immigration_status_1.ImmigrationStatus.Foreigner) {
|
|
14
|
+
return "Foreigner";
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
return "Permanent Resident";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.ImmigrationStatusClass = ImmigrationStatusClass;
|
package/build/index.d.ts
CHANGED
|
@@ -227,6 +227,7 @@ export * from "./classes/AdminTaskTypeClass";
|
|
|
227
227
|
export * from "./classes/ProcessorClass";
|
|
228
228
|
export * from "./classes/LiquidityProviderClass";
|
|
229
229
|
export * from "./classes/PartnerClass";
|
|
230
|
+
export * from "./classes/ImmigrationStatusClass";
|
|
230
231
|
export * from "./helpers/get-user-from-client-helper";
|
|
231
232
|
export * from "./helpers/validate-address";
|
|
232
233
|
export * from "./helpers/round-down-to-two-decimal-places";
|
package/build/index.js
CHANGED
|
@@ -243,6 +243,7 @@ __exportStar(require("./classes/AdminTaskTypeClass"), exports);
|
|
|
243
243
|
__exportStar(require("./classes/ProcessorClass"), exports);
|
|
244
244
|
__exportStar(require("./classes/LiquidityProviderClass"), exports);
|
|
245
245
|
__exportStar(require("./classes/PartnerClass"), exports);
|
|
246
|
+
__exportStar(require("./classes/ImmigrationStatusClass"), exports);
|
|
246
247
|
__exportStar(require("./helpers/get-user-from-client-helper"), exports);
|
|
247
248
|
__exportStar(require("./helpers/validate-address"), exports);
|
|
248
249
|
__exportStar(require("./helpers/round-down-to-two-decimal-places"), exports);
|