@unaffi/schema 1.1.1 → 1.1.3
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.
|
@@ -16,6 +16,14 @@ export interface Payment extends Base {
|
|
|
16
16
|
|
|
17
17
|
org_id?: DB.Org["org_id"];
|
|
18
18
|
org?: DB.Org;
|
|
19
|
+
|
|
20
|
+
order_id?: DB.Order["order_id"];
|
|
21
|
+
order?: DB.Order;
|
|
22
|
+
|
|
23
|
+
instance_id?: DB.Instance["instance_id"];
|
|
24
|
+
instance?: DB.Instance;
|
|
25
|
+
|
|
26
|
+
payment_group_id?: string;
|
|
19
27
|
}
|
|
20
28
|
|
|
21
29
|
type PaymentStatus = "pending" | "initialized" | "paid";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Base } from "../base.schema";
|
|
2
|
+
import type * as DB from "../index";
|
|
3
|
+
|
|
4
|
+
export interface Refund extends Base {
|
|
5
|
+
readonly refund_id: string;
|
|
6
|
+
|
|
7
|
+
status: "pending" | "refunded";
|
|
8
|
+
amount: number;
|
|
9
|
+
timestamps: {
|
|
10
|
+
status: "pending" | "refunded";
|
|
11
|
+
date: string;
|
|
12
|
+
}[];
|
|
13
|
+
|
|
14
|
+
org_id: DB.Org["org_id"];
|
|
15
|
+
org?: DB.Org;
|
|
16
|
+
|
|
17
|
+
payment_id: DB.Payment["payment_id"];
|
|
18
|
+
payment?: DB.Payment;
|
|
19
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./collections/order.schema";
|
|
|
10
10
|
export * from "./collections/org.schema";
|
|
11
11
|
export * from "./collections/payment.schema";
|
|
12
12
|
export * from "./collections/profile.schema";
|
|
13
|
+
export * from "./collections/refund.scehma";
|
|
13
14
|
export * from "./collections/schedule.schema";
|
|
14
15
|
export * from "./collections/searchentry.schema";
|
|
15
16
|
export * from "./collections/seat.schema";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unaffi/schema",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "This reflects what the API returns, and not what the DB Schema looks like in MongoDB. Can be imported into any repo and be used by both TS and JS (JSDocs) code.",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"scripts": {
|