@sportsbroker/firebase-structure 3.24.0-35 → 3.24.0-36
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/CHANGELOG.md +7 -0
- package/models/details/users/orders.d.ts +13 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.24.0-36](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-35...v3.24.0-36) (2021-08-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add abortReason to orders ([260cdef](https://github.com/SportsBroker-HQ/firebase-structure/commit/260cdeff97656cfad4620230d65f6839fd47039d))
|
|
11
|
+
|
|
5
12
|
## [3.24.0-35](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-34...v3.24.0-35) (2021-08-03)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -6,6 +6,18 @@ export type OrderTransactionType = "MARKET" | "LIMIT" | "INSTANT" | "BANKRUPT";
|
|
|
6
6
|
|
|
7
7
|
export type OrderStatus = "ACTIVE" | "COMPLETED" | "ABORTED" | "CANCELLED";
|
|
8
8
|
|
|
9
|
+
export type OrderAbortReason =
|
|
10
|
+
| "NOT_ENOUGH_SHARES"
|
|
11
|
+
| "SELF_EXCLUSION"
|
|
12
|
+
| "ACCOUNT_BLOCKED"
|
|
13
|
+
| "ACCOUNT_CLOSURE"
|
|
14
|
+
| "SPLIT_DIV"
|
|
15
|
+
| "BET_MARGIN"
|
|
16
|
+
| "BANKRUPT"
|
|
17
|
+
| "SEASON_END"
|
|
18
|
+
| "NOT_ENOUGH_FUNDS"
|
|
19
|
+
| "TOO_SMALL_ORDER_VALUE";
|
|
20
|
+
|
|
9
21
|
type OrderID = string;
|
|
10
22
|
|
|
11
23
|
export interface Order {
|
|
@@ -28,6 +40,7 @@ export interface Order {
|
|
|
28
40
|
id: OrderID;
|
|
29
41
|
totalPrice: number;
|
|
30
42
|
preciseSharesValue: number;
|
|
43
|
+
abortReason: OrderAbortReason | null;
|
|
31
44
|
vatPercentage?: number;
|
|
32
45
|
vatProcessed?: number;
|
|
33
46
|
childId?: OrderID;
|