@gigapay-dev/contracts 1.8.6 → 3.0.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.
Files changed (314) hide show
  1. package/README.md +1 -0
  2. package/build/domains/admin/index.d.ts +150 -0
  3. package/build/domains/admin/index.d.ts.map +1 -0
  4. package/build/domains/admin/index.js +72 -0
  5. package/build/domains/admin/index.js.map +1 -0
  6. package/build/domains/auth/commands.d.ts +294 -0
  7. package/build/domains/auth/commands.d.ts.map +1 -0
  8. package/build/domains/auth/commands.js +116 -0
  9. package/build/domains/auth/commands.js.map +1 -0
  10. package/build/domains/auth/dtos.d.ts +37 -0
  11. package/build/domains/auth/dtos.d.ts.map +1 -0
  12. package/build/domains/auth/dtos.js +26 -0
  13. package/build/domains/auth/dtos.js.map +1 -0
  14. package/build/domains/auth/events.d.ts +35 -0
  15. package/build/domains/auth/events.d.ts.map +1 -0
  16. package/build/domains/auth/events.js +24 -0
  17. package/build/domains/auth/events.js.map +1 -0
  18. package/build/domains/auth/index.d.ts +165 -0
  19. package/build/domains/auth/index.d.ts.map +1 -0
  20. package/build/{commands/products → domains/auth}/index.js +12 -6
  21. package/build/domains/auth/index.js.map +1 -0
  22. package/build/domains/auth/queries.d.ts +75 -0
  23. package/build/domains/auth/queries.d.ts.map +1 -0
  24. package/build/domains/auth/queries.js +25 -0
  25. package/build/domains/auth/queries.js.map +1 -0
  26. package/build/domains/catalog/commands.d.ts +255 -0
  27. package/build/domains/catalog/commands.d.ts.map +1 -0
  28. package/build/domains/catalog/commands.js +82 -0
  29. package/build/domains/catalog/commands.js.map +1 -0
  30. package/build/domains/catalog/dtos.d.ts +89 -0
  31. package/build/domains/catalog/dtos.d.ts.map +1 -0
  32. package/build/domains/catalog/dtos.js +43 -0
  33. package/build/domains/catalog/dtos.js.map +1 -0
  34. package/build/domains/catalog/index.d.ts +194 -0
  35. package/build/domains/catalog/index.d.ts.map +1 -0
  36. package/build/{commands/payment-methods → domains/catalog}/index.js +11 -4
  37. package/build/domains/catalog/index.js.map +1 -0
  38. package/build/domains/catalog/queries.d.ts +168 -0
  39. package/build/domains/catalog/queries.d.ts.map +1 -0
  40. package/build/domains/catalog/queries.js +29 -0
  41. package/build/domains/catalog/queries.js.map +1 -0
  42. package/build/domains/config/index.d.ts +40 -0
  43. package/build/domains/config/index.d.ts.map +1 -0
  44. package/build/domains/config/index.js +18 -0
  45. package/build/domains/config/index.js.map +1 -0
  46. package/build/domains/orders/commands.d.ts +262 -0
  47. package/build/domains/orders/commands.d.ts.map +1 -0
  48. package/build/domains/orders/commands.js +47 -0
  49. package/build/domains/orders/commands.js.map +1 -0
  50. package/build/domains/orders/dtos.d.ts +112 -0
  51. package/build/domains/orders/dtos.d.ts.map +1 -0
  52. package/build/domains/orders/dtos.js +44 -0
  53. package/build/domains/orders/dtos.js.map +1 -0
  54. package/build/domains/orders/events.d.ts +21 -0
  55. package/build/domains/orders/events.d.ts.map +1 -0
  56. package/build/domains/orders/events.js +19 -0
  57. package/build/domains/orders/events.js.map +1 -0
  58. package/build/domains/orders/index.d.ts +381 -0
  59. package/build/domains/orders/index.d.ts.map +1 -0
  60. package/build/domains/orders/index.js +28 -0
  61. package/build/domains/orders/index.js.map +1 -0
  62. package/build/domains/orders/queries.d.ts +532 -0
  63. package/build/domains/orders/queries.d.ts.map +1 -0
  64. package/build/domains/orders/queries.js +40 -0
  65. package/build/domains/orders/queries.js.map +1 -0
  66. package/build/domains/payments/index.d.ts +96 -0
  67. package/build/domains/payments/index.d.ts.map +1 -0
  68. package/build/domains/payments/index.js +34 -0
  69. package/build/domains/payments/index.js.map +1 -0
  70. package/build/domains/products/commands.d.ts +302 -0
  71. package/build/domains/products/commands.d.ts.map +1 -0
  72. package/build/domains/products/commands.js +101 -0
  73. package/build/domains/products/commands.js.map +1 -0
  74. package/build/domains/products/dtos.d.ts +122 -0
  75. package/build/domains/products/dtos.d.ts.map +1 -0
  76. package/build/domains/products/dtos.js +54 -0
  77. package/build/domains/products/dtos.js.map +1 -0
  78. package/build/domains/products/index.d.ts +276 -0
  79. package/build/domains/products/index.d.ts.map +1 -0
  80. package/build/{commands/auth → domains/products}/index.js +11 -5
  81. package/build/domains/products/index.js.map +1 -0
  82. package/build/domains/products/queries.d.ts +334 -0
  83. package/build/domains/products/queries.d.ts.map +1 -0
  84. package/build/domains/products/queries.js +41 -0
  85. package/build/domains/products/queries.js.map +1 -0
  86. package/build/domains/promo-codes/index.d.ts +92 -0
  87. package/build/domains/promo-codes/index.d.ts.map +1 -0
  88. package/build/domains/promo-codes/index.js +40 -0
  89. package/build/domains/promo-codes/index.js.map +1 -0
  90. package/build/domains/stats/index.d.ts +274 -0
  91. package/build/domains/stats/index.d.ts.map +1 -0
  92. package/build/domains/stats/index.js +76 -0
  93. package/build/domains/stats/index.js.map +1 -0
  94. package/build/domains/users/dtos.d.ts +9 -0
  95. package/build/domains/users/dtos.d.ts.map +1 -0
  96. package/build/domains/users/dtos.js +11 -0
  97. package/build/domains/users/dtos.js.map +1 -0
  98. package/build/domains/users/index.d.ts +101 -0
  99. package/build/domains/users/index.d.ts.map +1 -0
  100. package/build/domains/users/index.js +52 -0
  101. package/build/domains/users/index.js.map +1 -0
  102. package/build/index.d.ts +1310 -1
  103. package/build/index.d.ts.map +1 -0
  104. package/build/index.js +35 -1
  105. package/build/index.js.map +1 -0
  106. package/build/shared/api-response.d.ts +17 -0
  107. package/build/shared/api-response.d.ts.map +1 -0
  108. package/build/shared/api-response.js +22 -0
  109. package/build/shared/api-response.js.map +1 -0
  110. package/build/shared/common.d.ts +14 -0
  111. package/build/shared/common.d.ts.map +1 -0
  112. package/build/shared/common.js +8 -0
  113. package/build/shared/common.js.map +1 -0
  114. package/build/shared/errors.d.ts +34 -0
  115. package/build/shared/errors.d.ts.map +1 -0
  116. package/build/shared/errors.js +36 -0
  117. package/build/shared/errors.js.map +1 -0
  118. package/build/shared/index.d.ts +7 -0
  119. package/build/shared/index.d.ts.map +1 -0
  120. package/build/{commands/orders → shared}/index.js +7 -6
  121. package/build/shared/index.js.map +1 -0
  122. package/build/shared/money.d.ts +32 -0
  123. package/build/shared/money.d.ts.map +1 -0
  124. package/build/shared/money.js +20 -0
  125. package/build/shared/money.js.map +1 -0
  126. package/build/shared/pagination.d.ts +27 -0
  127. package/build/shared/pagination.d.ts.map +1 -0
  128. package/build/shared/pagination.js +22 -0
  129. package/build/shared/pagination.js.map +1 -0
  130. package/build/shared/types.d.ts +20 -0
  131. package/build/shared/types.d.ts.map +1 -0
  132. package/build/{types.js → shared/types.js} +1 -0
  133. package/build/shared/types.js.map +1 -0
  134. package/package.json +41 -15
  135. package/build/commands/api-response.d.ts +0 -18
  136. package/build/commands/api-response.js +0 -13
  137. package/build/commands/auth/confirm.d.ts +0 -11
  138. package/build/commands/auth/confirm.js +0 -11
  139. package/build/commands/auth/endpoints.d.ts +0 -114
  140. package/build/commands/auth/endpoints.js +0 -50
  141. package/build/commands/auth/index.d.ts +0 -5
  142. package/build/commands/auth/login.d.ts +0 -20
  143. package/build/commands/auth/login.js +0 -11
  144. package/build/commands/auth/profile.d.ts +0 -18
  145. package/build/commands/auth/profile.js +0 -10
  146. package/build/commands/auth/register.d.ts +0 -12
  147. package/build/commands/auth/register.js +0 -11
  148. package/build/commands/auth/reset.d.ts +0 -12
  149. package/build/commands/auth/reset.js +0 -9
  150. package/build/commands/consts.d.ts +0 -1
  151. package/build/commands/consts.js +0 -4
  152. package/build/commands/index.d.ts +0 -13
  153. package/build/commands/index.js +0 -29
  154. package/build/commands/orders/create.d.ts +0 -95
  155. package/build/commands/orders/create.js +0 -40
  156. package/build/commands/orders/endpoints.d.ts +0 -726
  157. package/build/commands/orders/endpoints.js +0 -47
  158. package/build/commands/orders/enums.d.ts +0 -7
  159. package/build/commands/orders/enums.js +0 -25
  160. package/build/commands/orders/index.d.ts +0 -6
  161. package/build/commands/orders/query.d.ts +0 -103
  162. package/build/commands/orders/query.js +0 -45
  163. package/build/commands/orders/read.d.ts +0 -230
  164. package/build/commands/orders/read.js +0 -81
  165. package/build/commands/orders/update.d.ts +0 -23
  166. package/build/commands/orders/update.js +0 -16
  167. package/build/commands/pagination.d.ts +0 -12
  168. package/build/commands/pagination.js +0 -11
  169. package/build/commands/payment-methods/create.d.ts +0 -45
  170. package/build/commands/payment-methods/create.js +0 -22
  171. package/build/commands/payment-methods/endpoints.d.ts +0 -536
  172. package/build/commands/payment-methods/endpoints.js +0 -63
  173. package/build/commands/payment-methods/index.d.ts +0 -4
  174. package/build/commands/payment-methods/read.d.ts +0 -71
  175. package/build/commands/payment-methods/read.js +0 -28
  176. package/build/commands/payment-methods/update.d.ts +0 -45
  177. package/build/commands/payment-methods/update.js +0 -19
  178. package/build/commands/products/create.d.ts +0 -229
  179. package/build/commands/products/create.js +0 -122
  180. package/build/commands/products/endpoints.d.ts +0 -1881
  181. package/build/commands/products/endpoints.js +0 -99
  182. package/build/commands/products/enums.d.ts +0 -19
  183. package/build/commands/products/enums.js +0 -27
  184. package/build/commands/products/index.d.ts +0 -6
  185. package/build/commands/products/query.d.ts +0 -79
  186. package/build/commands/products/query.js +0 -55
  187. package/build/commands/products/read.d.ts +0 -1178
  188. package/build/commands/products/read.js +0 -231
  189. package/build/commands/products/update.d.ts +0 -78
  190. package/build/commands/products/update.js +0 -10
  191. package/build/commands/promocode-activations/create.d.ts +0 -18
  192. package/build/commands/promocode-activations/create.js +0 -10
  193. package/build/commands/promocode-activations/index.d.ts +0 -3
  194. package/build/commands/promocode-activations/index.js +0 -19
  195. package/build/commands/promocode-activations/read.d.ts +0 -21
  196. package/build/commands/promocode-activations/read.js +0 -14
  197. package/build/commands/promocode-activations/update.d.ts +0 -18
  198. package/build/commands/promocode-activations/update.js +0 -10
  199. package/build/commands/promocodes/create.d.ts +0 -39
  200. package/build/commands/promocodes/create.js +0 -18
  201. package/build/commands/promocodes/endpoints.d.ts +0 -353
  202. package/build/commands/promocodes/endpoints.js +0 -46
  203. package/build/commands/promocodes/enums.d.ts +0 -5
  204. package/build/commands/promocodes/enums.js +0 -9
  205. package/build/commands/promocodes/index.d.ts +0 -5
  206. package/build/commands/promocodes/index.js +0 -21
  207. package/build/commands/promocodes/read.d.ts +0 -45
  208. package/build/commands/promocodes/read.js +0 -23
  209. package/build/commands/promocodes/update.d.ts +0 -33
  210. package/build/commands/promocodes/update.js +0 -16
  211. package/build/commands/refresh-sessions/create.d.ts +0 -24
  212. package/build/commands/refresh-sessions/create.js +0 -13
  213. package/build/commands/refresh-sessions/enums.d.ts +0 -3
  214. package/build/commands/refresh-sessions/enums.js +0 -8
  215. package/build/commands/refresh-sessions/index.d.ts +0 -4
  216. package/build/commands/refresh-sessions/index.js +0 -20
  217. package/build/commands/refresh-sessions/read.d.ts +0 -27
  218. package/build/commands/refresh-sessions/read.js +0 -17
  219. package/build/commands/refresh-sessions/update.d.ts +0 -24
  220. package/build/commands/refresh-sessions/update.js +0 -16
  221. package/build/commands/settings/endpoints.d.ts +0 -108
  222. package/build/commands/settings/endpoints.js +0 -43
  223. package/build/commands/settings/index.d.ts +0 -3
  224. package/build/commands/settings/index.js +0 -19
  225. package/build/commands/settings/read.d.ts +0 -18
  226. package/build/commands/settings/read.js +0 -10
  227. package/build/commands/settings/update.d.ts +0 -18
  228. package/build/commands/settings/update.js +0 -10
  229. package/build/commands/stats/endpoints.d.ts +0 -67
  230. package/build/commands/stats/endpoints.js +0 -13
  231. package/build/commands/stats/index.d.ts +0 -3
  232. package/build/commands/stats/index.js +0 -19
  233. package/build/commands/stats/query.d.ts +0 -31
  234. package/build/commands/stats/query.js +0 -15
  235. package/build/commands/stats/read.d.ts +0 -30
  236. package/build/commands/stats/read.js +0 -17
  237. package/build/commands/users/create.d.ts +0 -42
  238. package/build/commands/users/create.js +0 -19
  239. package/build/commands/users/endpoints.d.ts +0 -403
  240. package/build/commands/users/endpoints.js +0 -39
  241. package/build/commands/users/enums.d.ts +0 -6
  242. package/build/commands/users/enums.js +0 -10
  243. package/build/commands/users/index.d.ts +0 -6
  244. package/build/commands/users/index.js +0 -22
  245. package/build/commands/users/query.d.ts +0 -52
  246. package/build/commands/users/query.js +0 -21
  247. package/build/commands/users/read.d.ts +0 -60
  248. package/build/commands/users/read.js +0 -28
  249. package/build/commands/users/update.d.ts +0 -42
  250. package/build/commands/users/update.js +0 -19
  251. package/build/types.d.ts +0 -8
  252. package/commands/api-response.ts +0 -10
  253. package/commands/auth/confirm.ts +0 -10
  254. package/commands/auth/endpoints.ts +0 -51
  255. package/commands/auth/index.ts +0 -5
  256. package/commands/auth/login.ts +0 -13
  257. package/commands/auth/profile.ts +0 -10
  258. package/commands/auth/register.ts +0 -8
  259. package/commands/auth/reset.ts +0 -9
  260. package/commands/consts.ts +0 -1
  261. package/commands/index.ts +0 -13
  262. package/commands/orders/create.ts +0 -41
  263. package/commands/orders/endpoints.ts +0 -51
  264. package/commands/orders/enums.ts +0 -25
  265. package/commands/orders/index.ts +0 -6
  266. package/commands/orders/query.ts +0 -46
  267. package/commands/orders/read.ts +0 -83
  268. package/commands/orders/update.ts +0 -16
  269. package/commands/pagination.ts +0 -8
  270. package/commands/payment-methods/create.ts +0 -19
  271. package/commands/payment-methods/endpoints.ts +0 -67
  272. package/commands/payment-methods/index.ts +0 -4
  273. package/commands/payment-methods/read.ts +0 -30
  274. package/commands/payment-methods/update.ts +0 -19
  275. package/commands/products/create.ts +0 -134
  276. package/commands/products/endpoints.ts +0 -108
  277. package/commands/products/enums.ts +0 -33
  278. package/commands/products/index.ts +0 -6
  279. package/commands/products/query.ts +0 -52
  280. package/commands/products/read.ts +0 -268
  281. package/commands/products/update.ts +0 -11
  282. package/commands/promocode-activations/create.ts +0 -10
  283. package/commands/promocode-activations/index.ts +0 -3
  284. package/commands/promocode-activations/read.ts +0 -11
  285. package/commands/promocode-activations/update.ts +0 -10
  286. package/commands/promocodes/create.ts +0 -18
  287. package/commands/promocodes/endpoints.ts +0 -62
  288. package/commands/promocodes/enums.ts +0 -9
  289. package/commands/promocodes/index.ts +0 -5
  290. package/commands/promocodes/read.ts +0 -20
  291. package/commands/promocodes/update.ts +0 -16
  292. package/commands/refresh-sessions/create.ts +0 -13
  293. package/commands/refresh-sessions/enums.ts +0 -4
  294. package/commands/refresh-sessions/index.ts +0 -4
  295. package/commands/refresh-sessions/read.ts +0 -14
  296. package/commands/refresh-sessions/update.ts +0 -13
  297. package/commands/settings/endpoints.ts +0 -52
  298. package/commands/settings/index.ts +0 -3
  299. package/commands/settings/read.ts +0 -10
  300. package/commands/settings/update.ts +0 -10
  301. package/commands/stats/endpoints.ts +0 -23
  302. package/commands/stats/index.ts +0 -3
  303. package/commands/stats/query.ts +0 -18
  304. package/commands/stats/read.ts +0 -14
  305. package/commands/users/create.ts +0 -19
  306. package/commands/users/endpoints.ts +0 -47
  307. package/commands/users/enums.ts +0 -10
  308. package/commands/users/index.ts +0 -6
  309. package/commands/users/query.ts +0 -20
  310. package/commands/users/read.ts +0 -25
  311. package/commands/users/update.ts +0 -19
  312. package/index.ts +0 -1
  313. package/tsconfig.json +0 -111
  314. package/types.ts +0 -9
@@ -1,726 +0,0 @@
1
- import z from "zod";
2
- export declare const OrderEndpoints: {
3
- create: {
4
- method: "POST";
5
- path: string;
6
- request: z.ZodObject<{
7
- email: z.ZodString;
8
- paymentMethodId: z.ZodNumber;
9
- items: z.ZodArray<z.ZodObject<{
10
- variantId: z.ZodNumber;
11
- quantity: z.ZodDefault<z.ZodNumber>;
12
- gameUsername: z.ZodOptional<z.ZodString>;
13
- gameUsernameType: z.ZodOptional<z.ZodString>;
14
- }, "strip", z.ZodTypeAny, {
15
- variantId: number;
16
- quantity: number;
17
- gameUsername?: string | undefined;
18
- gameUsernameType?: string | undefined;
19
- }, {
20
- variantId: number;
21
- quantity?: number | undefined;
22
- gameUsername?: string | undefined;
23
- gameUsernameType?: string | undefined;
24
- }>, "many">;
25
- promocodeId: z.ZodOptional<z.ZodNumber>;
26
- userId: z.ZodOptional<z.ZodNumber>;
27
- telegramId: z.ZodOptional<z.ZodString>;
28
- utmSource: z.ZodOptional<z.ZodString>;
29
- designType: z.ZodOptional<z.ZodString>;
30
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["MAIN", "WEBAPP"]>>>;
31
- }, "strip", z.ZodTypeAny, {
32
- email: string;
33
- type: "MAIN" | "WEBAPP";
34
- paymentMethodId: number;
35
- items: {
36
- variantId: number;
37
- quantity: number;
38
- gameUsername?: string | undefined;
39
- gameUsernameType?: string | undefined;
40
- }[];
41
- promocodeId?: number | undefined;
42
- userId?: number | undefined;
43
- telegramId?: string | undefined;
44
- utmSource?: string | undefined;
45
- designType?: string | undefined;
46
- }, {
47
- email: string;
48
- paymentMethodId: number;
49
- items: {
50
- variantId: number;
51
- quantity?: number | undefined;
52
- gameUsername?: string | undefined;
53
- gameUsernameType?: string | undefined;
54
- }[];
55
- type?: "MAIN" | "WEBAPP" | undefined;
56
- promocodeId?: number | undefined;
57
- userId?: number | undefined;
58
- telegramId?: string | undefined;
59
- utmSource?: string | undefined;
60
- designType?: string | undefined;
61
- }>;
62
- response: z.ZodObject<{
63
- redirectUrl: z.ZodString;
64
- }, "strip", z.ZodTypeAny, {
65
- redirectUrl: string;
66
- }, {
67
- redirectUrl: string;
68
- }>;
69
- };
70
- list: {
71
- method: "GET";
72
- path: string;
73
- request: z.ZodObject<{
74
- take: z.ZodOptional<z.ZodString>;
75
- skip: z.ZodOptional<z.ZodString>;
76
- } & {
77
- email: z.ZodOptional<z.ZodString>;
78
- status: z.ZodOptional<z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>>;
79
- } & {
80
- sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "updatedAt", "total", "subtotal"]>>;
81
- sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
82
- } & {
83
- period: z.ZodOptional<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
84
- start: z.ZodOptional<z.ZodString>;
85
- end: z.ZodOptional<z.ZodString>;
86
- }, "strip", z.ZodTypeAny, {
87
- sortBy: "subtotal" | "total" | "createdAt" | "updatedAt";
88
- sortDir: "asc" | "desc";
89
- email?: string | undefined;
90
- status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
91
- take?: string | undefined;
92
- skip?: string | undefined;
93
- period?: "day" | "week" | "month" | "year" | "custom" | undefined;
94
- start?: string | undefined;
95
- end?: string | undefined;
96
- }, {
97
- email?: string | undefined;
98
- status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
99
- take?: string | undefined;
100
- skip?: string | undefined;
101
- period?: "day" | "week" | "month" | "year" | "custom" | undefined;
102
- start?: string | undefined;
103
- end?: string | undefined;
104
- sortBy?: "subtotal" | "total" | "createdAt" | "updatedAt" | undefined;
105
- sortDir?: "asc" | "desc" | undefined;
106
- }>;
107
- response: z.ZodArray<z.ZodObject<{
108
- id: z.ZodNumber;
109
- userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
110
- promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
111
- paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
112
- email: z.ZodString;
113
- status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
114
- type: z.ZodEnum<["MAIN", "WEBAPP"]>;
115
- subtotal: z.ZodString;
116
- discount: z.ZodString;
117
- commission: z.ZodString;
118
- serviceCommission: z.ZodString;
119
- total: z.ZodString;
120
- ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
- utmSource: z.ZodNullable<z.ZodString>;
122
- designType: z.ZodNullable<z.ZodString>;
123
- paymentMethodName: z.ZodNullable<z.ZodString>;
124
- promocodeValue: z.ZodNullable<z.ZodString>;
125
- promocodeDiscount: z.ZodNullable<z.ZodString>;
126
- serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
127
- acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
128
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
129
- id: z.ZodNumber;
130
- productId: z.ZodNumber;
131
- variantId: z.ZodNumber;
132
- quantity: z.ZodNumber;
133
- price: z.ZodString;
134
- gameUsername: z.ZodNullable<z.ZodString>;
135
- gameUsernameType: z.ZodNullable<z.ZodString>;
136
- deliveredKey: z.ZodNullable<z.ZodString>;
137
- deliveredAt: z.ZodNullable<z.ZodDate>;
138
- status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
139
- productTitle: z.ZodOptional<z.ZodString>;
140
- variantName: z.ZodOptional<z.ZodString>;
141
- }, "strip", z.ZodTypeAny, {
142
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
143
- id: number;
144
- variantId: number;
145
- quantity: number;
146
- gameUsername: string | null;
147
- gameUsernameType: string | null;
148
- productId: number;
149
- price: string;
150
- deliveredKey: string | null;
151
- deliveredAt: Date | null;
152
- productTitle?: string | undefined;
153
- variantName?: string | undefined;
154
- }, {
155
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
156
- id: number;
157
- variantId: number;
158
- quantity: number;
159
- gameUsername: string | null;
160
- gameUsernameType: string | null;
161
- productId: number;
162
- price: string;
163
- deliveredKey: string | null;
164
- deliveredAt: Date | null;
165
- productTitle?: string | undefined;
166
- variantName?: string | undefined;
167
- }>, "many">>;
168
- createdAt: z.ZodDefault<z.ZodDate>;
169
- updatedAt: z.ZodDefault<z.ZodDate>;
170
- }, "strip", z.ZodTypeAny, {
171
- email: string;
172
- type: "MAIN" | "WEBAPP";
173
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
174
- id: number;
175
- utmSource: string | null;
176
- designType: string | null;
177
- subtotal: string;
178
- discount: string;
179
- commission: string;
180
- serviceCommission: string;
181
- total: string;
182
- paymentMethodName: string | null;
183
- promocodeValue: string | null;
184
- promocodeDiscount: string | null;
185
- createdAt: Date;
186
- updatedAt: Date;
187
- paymentMethodId?: number | null | undefined;
188
- items?: {
189
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
190
- id: number;
191
- variantId: number;
192
- quantity: number;
193
- gameUsername: string | null;
194
- gameUsernameType: string | null;
195
- productId: number;
196
- price: string;
197
- deliveredKey: string | null;
198
- deliveredAt: Date | null;
199
- productTitle?: string | undefined;
200
- variantName?: string | undefined;
201
- }[] | undefined;
202
- promocodeId?: number | null | undefined;
203
- userId?: number | null | undefined;
204
- ipAddress?: string | null | undefined;
205
- serviceCommissionPercent?: number | undefined;
206
- acquiringCommissionPercent?: number | undefined;
207
- }, {
208
- email: string;
209
- type: "MAIN" | "WEBAPP";
210
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
211
- id: number;
212
- utmSource: string | null;
213
- designType: string | null;
214
- subtotal: string;
215
- discount: string;
216
- commission: string;
217
- serviceCommission: string;
218
- total: string;
219
- paymentMethodName: string | null;
220
- promocodeValue: string | null;
221
- promocodeDiscount: string | null;
222
- paymentMethodId?: number | null | undefined;
223
- items?: {
224
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
225
- id: number;
226
- variantId: number;
227
- quantity: number;
228
- gameUsername: string | null;
229
- gameUsernameType: string | null;
230
- productId: number;
231
- price: string;
232
- deliveredKey: string | null;
233
- deliveredAt: Date | null;
234
- productTitle?: string | undefined;
235
- variantName?: string | undefined;
236
- }[] | undefined;
237
- promocodeId?: number | null | undefined;
238
- userId?: number | null | undefined;
239
- ipAddress?: string | null | undefined;
240
- serviceCommissionPercent?: number | undefined;
241
- acquiringCommissionPercent?: number | undefined;
242
- createdAt?: Date | undefined;
243
- updatedAt?: Date | undefined;
244
- }>, "many">;
245
- };
246
- getById: {
247
- method: "GET";
248
- path: string;
249
- request: z.ZodObject<{
250
- id: z.ZodNumber;
251
- }, "strip", z.ZodTypeAny, {
252
- id: number;
253
- }, {
254
- id: number;
255
- }>;
256
- response: z.ZodObject<{
257
- id: z.ZodNumber;
258
- userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
259
- promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
260
- paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
261
- email: z.ZodString;
262
- status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
263
- type: z.ZodEnum<["MAIN", "WEBAPP"]>;
264
- subtotal: z.ZodString;
265
- discount: z.ZodString;
266
- commission: z.ZodString;
267
- serviceCommission: z.ZodString;
268
- total: z.ZodString;
269
- ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
- utmSource: z.ZodNullable<z.ZodString>;
271
- designType: z.ZodNullable<z.ZodString>;
272
- paymentMethodName: z.ZodNullable<z.ZodString>;
273
- promocodeValue: z.ZodNullable<z.ZodString>;
274
- promocodeDiscount: z.ZodNullable<z.ZodString>;
275
- serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
276
- acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
277
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
278
- id: z.ZodNumber;
279
- productId: z.ZodNumber;
280
- variantId: z.ZodNumber;
281
- quantity: z.ZodNumber;
282
- price: z.ZodString;
283
- gameUsername: z.ZodNullable<z.ZodString>;
284
- gameUsernameType: z.ZodNullable<z.ZodString>;
285
- deliveredKey: z.ZodNullable<z.ZodString>;
286
- deliveredAt: z.ZodNullable<z.ZodDate>;
287
- status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
288
- productTitle: z.ZodOptional<z.ZodString>;
289
- variantName: z.ZodOptional<z.ZodString>;
290
- }, "strip", z.ZodTypeAny, {
291
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
292
- id: number;
293
- variantId: number;
294
- quantity: number;
295
- gameUsername: string | null;
296
- gameUsernameType: string | null;
297
- productId: number;
298
- price: string;
299
- deliveredKey: string | null;
300
- deliveredAt: Date | null;
301
- productTitle?: string | undefined;
302
- variantName?: string | undefined;
303
- }, {
304
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
305
- id: number;
306
- variantId: number;
307
- quantity: number;
308
- gameUsername: string | null;
309
- gameUsernameType: string | null;
310
- productId: number;
311
- price: string;
312
- deliveredKey: string | null;
313
- deliveredAt: Date | null;
314
- productTitle?: string | undefined;
315
- variantName?: string | undefined;
316
- }>, "many">>;
317
- createdAt: z.ZodDefault<z.ZodDate>;
318
- updatedAt: z.ZodDefault<z.ZodDate>;
319
- }, "strip", z.ZodTypeAny, {
320
- email: string;
321
- type: "MAIN" | "WEBAPP";
322
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
323
- id: number;
324
- utmSource: string | null;
325
- designType: string | null;
326
- subtotal: string;
327
- discount: string;
328
- commission: string;
329
- serviceCommission: string;
330
- total: string;
331
- paymentMethodName: string | null;
332
- promocodeValue: string | null;
333
- promocodeDiscount: string | null;
334
- createdAt: Date;
335
- updatedAt: Date;
336
- paymentMethodId?: number | null | undefined;
337
- items?: {
338
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
339
- id: number;
340
- variantId: number;
341
- quantity: number;
342
- gameUsername: string | null;
343
- gameUsernameType: string | null;
344
- productId: number;
345
- price: string;
346
- deliveredKey: string | null;
347
- deliveredAt: Date | null;
348
- productTitle?: string | undefined;
349
- variantName?: string | undefined;
350
- }[] | undefined;
351
- promocodeId?: number | null | undefined;
352
- userId?: number | null | undefined;
353
- ipAddress?: string | null | undefined;
354
- serviceCommissionPercent?: number | undefined;
355
- acquiringCommissionPercent?: number | undefined;
356
- }, {
357
- email: string;
358
- type: "MAIN" | "WEBAPP";
359
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
360
- id: number;
361
- utmSource: string | null;
362
- designType: string | null;
363
- subtotal: string;
364
- discount: string;
365
- commission: string;
366
- serviceCommission: string;
367
- total: string;
368
- paymentMethodName: string | null;
369
- promocodeValue: string | null;
370
- promocodeDiscount: string | null;
371
- paymentMethodId?: number | null | undefined;
372
- items?: {
373
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
374
- id: number;
375
- variantId: number;
376
- quantity: number;
377
- gameUsername: string | null;
378
- gameUsernameType: string | null;
379
- productId: number;
380
- price: string;
381
- deliveredKey: string | null;
382
- deliveredAt: Date | null;
383
- productTitle?: string | undefined;
384
- variantName?: string | undefined;
385
- }[] | undefined;
386
- promocodeId?: number | null | undefined;
387
- userId?: number | null | undefined;
388
- ipAddress?: string | null | undefined;
389
- serviceCommissionPercent?: number | undefined;
390
- acquiringCommissionPercent?: number | undefined;
391
- createdAt?: Date | undefined;
392
- updatedAt?: Date | undefined;
393
- }>;
394
- };
395
- getUserOrders: {
396
- method: "GET";
397
- path: string;
398
- request: z.ZodObject<{
399
- take: z.ZodOptional<z.ZodString>;
400
- skip: z.ZodOptional<z.ZodString>;
401
- } & {
402
- email: z.ZodOptional<z.ZodString>;
403
- status: z.ZodOptional<z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>>;
404
- } & {
405
- sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "updatedAt", "total", "subtotal"]>>;
406
- sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
407
- } & {
408
- period: z.ZodOptional<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
409
- start: z.ZodOptional<z.ZodString>;
410
- end: z.ZodOptional<z.ZodString>;
411
- }, "strip", z.ZodTypeAny, {
412
- sortBy: "subtotal" | "total" | "createdAt" | "updatedAt";
413
- sortDir: "asc" | "desc";
414
- email?: string | undefined;
415
- status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
416
- take?: string | undefined;
417
- skip?: string | undefined;
418
- period?: "day" | "week" | "month" | "year" | "custom" | undefined;
419
- start?: string | undefined;
420
- end?: string | undefined;
421
- }, {
422
- email?: string | undefined;
423
- status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
424
- take?: string | undefined;
425
- skip?: string | undefined;
426
- period?: "day" | "week" | "month" | "year" | "custom" | undefined;
427
- start?: string | undefined;
428
- end?: string | undefined;
429
- sortBy?: "subtotal" | "total" | "createdAt" | "updatedAt" | undefined;
430
- sortDir?: "asc" | "desc" | undefined;
431
- }>;
432
- response: z.ZodArray<z.ZodObject<{
433
- id: z.ZodNumber;
434
- userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
435
- promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
436
- paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
437
- email: z.ZodString;
438
- status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
439
- type: z.ZodEnum<["MAIN", "WEBAPP"]>;
440
- subtotal: z.ZodString;
441
- discount: z.ZodString;
442
- commission: z.ZodString;
443
- serviceCommission: z.ZodString;
444
- total: z.ZodString;
445
- ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
- utmSource: z.ZodNullable<z.ZodString>;
447
- designType: z.ZodNullable<z.ZodString>;
448
- paymentMethodName: z.ZodNullable<z.ZodString>;
449
- promocodeValue: z.ZodNullable<z.ZodString>;
450
- promocodeDiscount: z.ZodNullable<z.ZodString>;
451
- serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
452
- acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
453
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
454
- id: z.ZodNumber;
455
- productId: z.ZodNumber;
456
- variantId: z.ZodNumber;
457
- quantity: z.ZodNumber;
458
- price: z.ZodString;
459
- gameUsername: z.ZodNullable<z.ZodString>;
460
- gameUsernameType: z.ZodNullable<z.ZodString>;
461
- deliveredKey: z.ZodNullable<z.ZodString>;
462
- deliveredAt: z.ZodNullable<z.ZodDate>;
463
- status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
464
- productTitle: z.ZodOptional<z.ZodString>;
465
- variantName: z.ZodOptional<z.ZodString>;
466
- }, "strip", z.ZodTypeAny, {
467
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
468
- id: number;
469
- variantId: number;
470
- quantity: number;
471
- gameUsername: string | null;
472
- gameUsernameType: string | null;
473
- productId: number;
474
- price: string;
475
- deliveredKey: string | null;
476
- deliveredAt: Date | null;
477
- productTitle?: string | undefined;
478
- variantName?: string | undefined;
479
- }, {
480
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
481
- id: number;
482
- variantId: number;
483
- quantity: number;
484
- gameUsername: string | null;
485
- gameUsernameType: string | null;
486
- productId: number;
487
- price: string;
488
- deliveredKey: string | null;
489
- deliveredAt: Date | null;
490
- productTitle?: string | undefined;
491
- variantName?: string | undefined;
492
- }>, "many">>;
493
- createdAt: z.ZodDefault<z.ZodDate>;
494
- updatedAt: z.ZodDefault<z.ZodDate>;
495
- }, "strip", z.ZodTypeAny, {
496
- email: string;
497
- type: "MAIN" | "WEBAPP";
498
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
499
- id: number;
500
- utmSource: string | null;
501
- designType: string | null;
502
- subtotal: string;
503
- discount: string;
504
- commission: string;
505
- serviceCommission: string;
506
- total: string;
507
- paymentMethodName: string | null;
508
- promocodeValue: string | null;
509
- promocodeDiscount: string | null;
510
- createdAt: Date;
511
- updatedAt: Date;
512
- paymentMethodId?: number | null | undefined;
513
- items?: {
514
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
515
- id: number;
516
- variantId: number;
517
- quantity: number;
518
- gameUsername: string | null;
519
- gameUsernameType: string | null;
520
- productId: number;
521
- price: string;
522
- deliveredKey: string | null;
523
- deliveredAt: Date | null;
524
- productTitle?: string | undefined;
525
- variantName?: string | undefined;
526
- }[] | undefined;
527
- promocodeId?: number | null | undefined;
528
- userId?: number | null | undefined;
529
- ipAddress?: string | null | undefined;
530
- serviceCommissionPercent?: number | undefined;
531
- acquiringCommissionPercent?: number | undefined;
532
- }, {
533
- email: string;
534
- type: "MAIN" | "WEBAPP";
535
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
536
- id: number;
537
- utmSource: string | null;
538
- designType: string | null;
539
- subtotal: string;
540
- discount: string;
541
- commission: string;
542
- serviceCommission: string;
543
- total: string;
544
- paymentMethodName: string | null;
545
- promocodeValue: string | null;
546
- promocodeDiscount: string | null;
547
- paymentMethodId?: number | null | undefined;
548
- items?: {
549
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
550
- id: number;
551
- variantId: number;
552
- quantity: number;
553
- gameUsername: string | null;
554
- gameUsernameType: string | null;
555
- productId: number;
556
- price: string;
557
- deliveredKey: string | null;
558
- deliveredAt: Date | null;
559
- productTitle?: string | undefined;
560
- variantName?: string | undefined;
561
- }[] | undefined;
562
- promocodeId?: number | null | undefined;
563
- userId?: number | null | undefined;
564
- ipAddress?: string | null | undefined;
565
- serviceCommissionPercent?: number | undefined;
566
- acquiringCommissionPercent?: number | undefined;
567
- createdAt?: Date | undefined;
568
- updatedAt?: Date | undefined;
569
- }>, "many">;
570
- };
571
- getUserOrderById: {
572
- method: "GET";
573
- path: string;
574
- request: z.ZodObject<{
575
- userId: z.ZodNumber;
576
- orderId: z.ZodNumber;
577
- }, "strip", z.ZodTypeAny, {
578
- userId: number;
579
- orderId: number;
580
- }, {
581
- userId: number;
582
- orderId: number;
583
- }>;
584
- response: z.ZodObject<{
585
- id: z.ZodNumber;
586
- userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
587
- promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
588
- paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
589
- email: z.ZodString;
590
- status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
591
- type: z.ZodEnum<["MAIN", "WEBAPP"]>;
592
- subtotal: z.ZodString;
593
- discount: z.ZodString;
594
- commission: z.ZodString;
595
- serviceCommission: z.ZodString;
596
- total: z.ZodString;
597
- ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
- utmSource: z.ZodNullable<z.ZodString>;
599
- designType: z.ZodNullable<z.ZodString>;
600
- paymentMethodName: z.ZodNullable<z.ZodString>;
601
- promocodeValue: z.ZodNullable<z.ZodString>;
602
- promocodeDiscount: z.ZodNullable<z.ZodString>;
603
- serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
604
- acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
605
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
606
- id: z.ZodNumber;
607
- productId: z.ZodNumber;
608
- variantId: z.ZodNumber;
609
- quantity: z.ZodNumber;
610
- price: z.ZodString;
611
- gameUsername: z.ZodNullable<z.ZodString>;
612
- gameUsernameType: z.ZodNullable<z.ZodString>;
613
- deliveredKey: z.ZodNullable<z.ZodString>;
614
- deliveredAt: z.ZodNullable<z.ZodDate>;
615
- status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
616
- productTitle: z.ZodOptional<z.ZodString>;
617
- variantName: z.ZodOptional<z.ZodString>;
618
- }, "strip", z.ZodTypeAny, {
619
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
620
- id: number;
621
- variantId: number;
622
- quantity: number;
623
- gameUsername: string | null;
624
- gameUsernameType: string | null;
625
- productId: number;
626
- price: string;
627
- deliveredKey: string | null;
628
- deliveredAt: Date | null;
629
- productTitle?: string | undefined;
630
- variantName?: string | undefined;
631
- }, {
632
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
633
- id: number;
634
- variantId: number;
635
- quantity: number;
636
- gameUsername: string | null;
637
- gameUsernameType: string | null;
638
- productId: number;
639
- price: string;
640
- deliveredKey: string | null;
641
- deliveredAt: Date | null;
642
- productTitle?: string | undefined;
643
- variantName?: string | undefined;
644
- }>, "many">>;
645
- createdAt: z.ZodDefault<z.ZodDate>;
646
- updatedAt: z.ZodDefault<z.ZodDate>;
647
- }, "strip", z.ZodTypeAny, {
648
- email: string;
649
- type: "MAIN" | "WEBAPP";
650
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
651
- id: number;
652
- utmSource: string | null;
653
- designType: string | null;
654
- subtotal: string;
655
- discount: string;
656
- commission: string;
657
- serviceCommission: string;
658
- total: string;
659
- paymentMethodName: string | null;
660
- promocodeValue: string | null;
661
- promocodeDiscount: string | null;
662
- createdAt: Date;
663
- updatedAt: Date;
664
- paymentMethodId?: number | null | undefined;
665
- items?: {
666
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
667
- id: number;
668
- variantId: number;
669
- quantity: number;
670
- gameUsername: string | null;
671
- gameUsernameType: string | null;
672
- productId: number;
673
- price: string;
674
- deliveredKey: string | null;
675
- deliveredAt: Date | null;
676
- productTitle?: string | undefined;
677
- variantName?: string | undefined;
678
- }[] | undefined;
679
- promocodeId?: number | null | undefined;
680
- userId?: number | null | undefined;
681
- ipAddress?: string | null | undefined;
682
- serviceCommissionPercent?: number | undefined;
683
- acquiringCommissionPercent?: number | undefined;
684
- }, {
685
- email: string;
686
- type: "MAIN" | "WEBAPP";
687
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
688
- id: number;
689
- utmSource: string | null;
690
- designType: string | null;
691
- subtotal: string;
692
- discount: string;
693
- commission: string;
694
- serviceCommission: string;
695
- total: string;
696
- paymentMethodName: string | null;
697
- promocodeValue: string | null;
698
- promocodeDiscount: string | null;
699
- paymentMethodId?: number | null | undefined;
700
- items?: {
701
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
702
- id: number;
703
- variantId: number;
704
- quantity: number;
705
- gameUsername: string | null;
706
- gameUsernameType: string | null;
707
- productId: number;
708
- price: string;
709
- deliveredKey: string | null;
710
- deliveredAt: Date | null;
711
- productTitle?: string | undefined;
712
- variantName?: string | undefined;
713
- }[] | undefined;
714
- promocodeId?: number | null | undefined;
715
- userId?: number | null | undefined;
716
- ipAddress?: string | null | undefined;
717
- serviceCommissionPercent?: number | undefined;
718
- acquiringCommissionPercent?: number | undefined;
719
- createdAt?: Date | undefined;
720
- updatedAt?: Date | undefined;
721
- }>;
722
- };
723
- };
724
- export type OrderEndpointKey = keyof typeof OrderEndpoints;
725
- export type GetOrderRequest<K extends OrderEndpointKey> = z.infer<typeof OrderEndpoints[K]["request"]>;
726
- export type GetOrderResponse<K extends OrderEndpointKey> = z.infer<typeof OrderEndpoints[K]["response"]>;