orbitx-core-models 11.0.3 → 11.0.5
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/interfaces/transaction.interface.d.ts +4 -2
- package/dist/interfaces/transaction.interface.d.ts.map +1 -1
- package/dist/interfaces/wallet.interface.d.ts +1 -0
- package/dist/interfaces/wallet.interface.d.ts.map +1 -1
- package/dist/models/transaction.model.d.ts.map +1 -1
- package/dist/models/transaction.model.js +5 -0
- package/dist/models/wallet.model.d.ts.map +1 -1
- package/dist/models/wallet.model.js +4 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Types } from "mongoose";
|
|
2
|
-
export type
|
|
2
|
+
export type StripeTransactionType = "payout" | "transfer";
|
|
3
|
+
export type TransactionType = "credit" | "debit";
|
|
3
4
|
export type TransactionStatus = "pending" | "paid" | "failed" | "reversed";
|
|
4
5
|
export type TransactionSource = "lead-target" | "commission";
|
|
5
6
|
export interface ITransaction {
|
|
@@ -9,7 +10,8 @@ export interface ITransaction {
|
|
|
9
10
|
partner: Types.ObjectId;
|
|
10
11
|
currency: string;
|
|
11
12
|
periodMonth: string;
|
|
12
|
-
stripeType:
|
|
13
|
+
stripeType: StripeTransactionType;
|
|
14
|
+
type: TransactionType;
|
|
13
15
|
amount: number;
|
|
14
16
|
description?: string;
|
|
15
17
|
status: TransactionStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/transaction.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"transaction.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/transaction.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,MAAM,qBAAqB,GAAG,QAAQ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AAW,GAAG,QAAQ,CAAC;IAC1C,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
1
|
+
{"version":3,"file":"wallet.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/wallet.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,OAAO;IACtB,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC1C,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.model.d.ts","sourceRoot":"","sources":["../../src/models/transaction.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"transaction.model.d.ts","sourceRoot":"","sources":["../../src/models/transaction.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAqGnE,eAAO,MAAM,WAAW;;;;OAGvB,CAAC;AACF,eAAe,WAAW,CAAC"}
|
|
@@ -106,6 +106,11 @@ const transactionSchema = new mongoose_1.Schema({
|
|
|
106
106
|
enum: ["lead-target", "commission"],
|
|
107
107
|
required: true,
|
|
108
108
|
},
|
|
109
|
+
type: {
|
|
110
|
+
type: String,
|
|
111
|
+
enum: ["credit", "debit"],
|
|
112
|
+
required: true,
|
|
113
|
+
},
|
|
109
114
|
}, {
|
|
110
115
|
timestamps: true,
|
|
111
116
|
versionKey: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.model.d.ts","sourceRoot":"","sources":["../../src/models/wallet.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"wallet.model.d.ts","sourceRoot":"","sources":["../../src/models/wallet.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AA8BzD,eAAO,MAAM,MAAM;;;;OAAkD,CAAC;AACtE,eAAe,MAAM,CAAC"}
|