@zennify/sdk-js 1.6.0 → 1.7.0
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/Orders.js +2 -0
- package/dist/main.js +1 -0
- package/package.json +1 -1
- package/src/interfaces/Orders.ts +53 -0
- package/src/main.ts +1 -0
- package/types/interfaces/Orders.d.ts +53 -0
- package/types/main.d.ts +1 -0
package/dist/main.js
CHANGED
|
@@ -24,4 +24,5 @@ __exportStar(require("./interfaces/Panels"), exports);
|
|
|
24
24
|
__exportStar(require("./interfaces/Products"), exports);
|
|
25
25
|
__exportStar(require("./interfaces/Guild"), exports);
|
|
26
26
|
__exportStar(require("./interfaces/Stores"), exports);
|
|
27
|
+
__exportStar(require("./interfaces/Orders"), exports);
|
|
27
28
|
__exportStar(require("./interfaces/Statistics"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type FullOrder = {
|
|
2
|
+
id: string,
|
|
3
|
+
created_at: string,
|
|
4
|
+
platform: 'discord',
|
|
5
|
+
discord_guild_id?: null | string,
|
|
6
|
+
discount: number,
|
|
7
|
+
subtotal: number,
|
|
8
|
+
total_value: number,
|
|
9
|
+
rating?: null | number,
|
|
10
|
+
rating_message?: null | number,
|
|
11
|
+
metadata?: null | string,
|
|
12
|
+
transaction_data: {
|
|
13
|
+
id: string,
|
|
14
|
+
entity: 'semiauto' | 'mercadopago',
|
|
15
|
+
method: 'pix',
|
|
16
|
+
managed?: null | boolean,
|
|
17
|
+
status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'rejected' | 'analysis',
|
|
18
|
+
value: number,
|
|
19
|
+
base_value: number,
|
|
20
|
+
refunded_value: number,
|
|
21
|
+
refund_reason?: null | string,
|
|
22
|
+
refund_comment?: null | string,
|
|
23
|
+
refund_requested_by?: null | number,
|
|
24
|
+
pix_e2eid?: null | string,
|
|
25
|
+
pix_qrcode?: null | string,
|
|
26
|
+
payer_bank?: null | string
|
|
27
|
+
},
|
|
28
|
+
payer: {
|
|
29
|
+
id: number,
|
|
30
|
+
username: string,
|
|
31
|
+
discord_user_id: string
|
|
32
|
+
},
|
|
33
|
+
seller: {
|
|
34
|
+
id: number,
|
|
35
|
+
username: string,
|
|
36
|
+
discord_user_id: string
|
|
37
|
+
},
|
|
38
|
+
store: {
|
|
39
|
+
id: number,
|
|
40
|
+
name: string,
|
|
41
|
+
icon_id?: null | number,
|
|
42
|
+
banner_id?: null | number
|
|
43
|
+
},
|
|
44
|
+
products: {
|
|
45
|
+
id: number,
|
|
46
|
+
name: string,
|
|
47
|
+
value: number,
|
|
48
|
+
icon_id?: null | number,
|
|
49
|
+
banner_id?: null | number,
|
|
50
|
+
amount: number,
|
|
51
|
+
delivered: string[]
|
|
52
|
+
}[]
|
|
53
|
+
}
|
package/src/main.ts
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type FullOrder = {
|
|
2
|
+
id: string;
|
|
3
|
+
created_at: string;
|
|
4
|
+
platform: 'discord';
|
|
5
|
+
discord_guild_id?: null | string;
|
|
6
|
+
discount: number;
|
|
7
|
+
subtotal: number;
|
|
8
|
+
total_value: number;
|
|
9
|
+
rating?: null | number;
|
|
10
|
+
rating_message?: null | number;
|
|
11
|
+
metadata?: null | string;
|
|
12
|
+
transaction_data: {
|
|
13
|
+
id: string;
|
|
14
|
+
entity: 'semiauto' | 'mercadopago';
|
|
15
|
+
method: 'pix';
|
|
16
|
+
managed?: null | boolean;
|
|
17
|
+
status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'rejected' | 'analysis';
|
|
18
|
+
value: number;
|
|
19
|
+
base_value: number;
|
|
20
|
+
refunded_value: number;
|
|
21
|
+
refund_reason?: null | string;
|
|
22
|
+
refund_comment?: null | string;
|
|
23
|
+
refund_requested_by?: null | number;
|
|
24
|
+
pix_e2eid?: null | string;
|
|
25
|
+
pix_qrcode?: null | string;
|
|
26
|
+
payer_bank?: null | string;
|
|
27
|
+
};
|
|
28
|
+
payer: {
|
|
29
|
+
id: number;
|
|
30
|
+
username: string;
|
|
31
|
+
discord_user_id: string;
|
|
32
|
+
};
|
|
33
|
+
seller: {
|
|
34
|
+
id: number;
|
|
35
|
+
username: string;
|
|
36
|
+
discord_user_id: string;
|
|
37
|
+
};
|
|
38
|
+
store: {
|
|
39
|
+
id: number;
|
|
40
|
+
name: string;
|
|
41
|
+
icon_id?: null | number;
|
|
42
|
+
banner_id?: null | number;
|
|
43
|
+
};
|
|
44
|
+
products: {
|
|
45
|
+
id: number;
|
|
46
|
+
name: string;
|
|
47
|
+
value: number;
|
|
48
|
+
icon_id?: null | number;
|
|
49
|
+
banner_id?: null | number;
|
|
50
|
+
amount: number;
|
|
51
|
+
delivered: string[];
|
|
52
|
+
}[];
|
|
53
|
+
};
|