@gigapay-dev/contracts 1.2.0 → 1.2.2

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.
@@ -8,5 +8,4 @@ exports.UserLoginRequestSchema = zod_1.z.object({
8
8
  });
9
9
  exports.UserLoginResponseSchema = zod_1.z.object({
10
10
  accessToken: zod_1.z.string(),
11
- refreshToken: zod_1.z.string(),
12
11
  });
@@ -10,6 +10,8 @@ exports.OrderReadResponseSchema = zod_1.z.object({
10
10
  steamUsername: zod_1.z.string(),
11
11
  paymentId: zod_1.z.coerce.number().positive(),
12
12
  paymentMethodId: zod_1.z.coerce.number().positive().optional(),
13
+ paymentMethodName: zod_1.z.string(),
14
+ promocodeValue: zod_1.z.string(),
13
15
  amount: zod_1.z.coerce.number().positive(),
14
16
  comission: zod_1.z.coerce.number().positive().optional(),
15
17
  createdAt: zod_1.z.coerce.date().default(() => new Date()),
@@ -7,7 +7,6 @@ export const UserLoginRequestSchema = z.object({
7
7
 
8
8
  export const UserLoginResponseSchema = z.object({
9
9
  accessToken: z.string(),
10
- refreshToken: z.string(),
11
10
  });
12
11
 
13
12
  export type UserLoginRequest = z.infer<typeof UserLoginRequestSchema>;
@@ -8,6 +8,8 @@ export const OrderReadResponseSchema = z.object({
8
8
  steamUsername: z.string(),
9
9
  paymentId: z.coerce.number().positive(),
10
10
  paymentMethodId: z.coerce.number().positive().optional(),
11
+ paymentMethodName: z.string(),
12
+ promocodeValue: z.string(),
11
13
  amount: z.coerce.number().positive(),
12
14
  comission: z.coerce.number().positive().optional(),
13
15
  createdAt: z.coerce.date().default(() => new Date()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gigapay-dev/contracts",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",