@gigapay-dev/contracts 1.5.9 → 1.6.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.
|
@@ -38,6 +38,12 @@ exports.PaymentMethodEndpoints = {
|
|
|
38
38
|
request: zod_1.default.object({}),
|
|
39
39
|
response: zod_1.default.array(read_1.PaymentMethodReadResponseSchema),
|
|
40
40
|
},
|
|
41
|
+
listAdmin: {
|
|
42
|
+
method: "GET",
|
|
43
|
+
path: "/payment-methods/admin",
|
|
44
|
+
request: zod_1.default.object({}),
|
|
45
|
+
response: zod_1.default.array(read_1.PaymentMethodReadResponseSchema),
|
|
46
|
+
},
|
|
41
47
|
getById: {
|
|
42
48
|
method: "GET",
|
|
43
49
|
path: "/payment-methods/:id",
|
|
@@ -46,4 +52,12 @@ exports.PaymentMethodEndpoints = {
|
|
|
46
52
|
}),
|
|
47
53
|
response: read_1.PaymentMethodReadResponseSchema,
|
|
48
54
|
},
|
|
55
|
+
getByIdAdmin: {
|
|
56
|
+
method: "GET",
|
|
57
|
+
path: "/payment-methods/admin/:id",
|
|
58
|
+
request: zod_1.default.object({
|
|
59
|
+
id: zod_1.default.coerce.number().positive(),
|
|
60
|
+
}),
|
|
61
|
+
response: read_1.PaymentMethodReadResponseSchema,
|
|
62
|
+
},
|
|
49
63
|
};
|
|
@@ -34,6 +34,12 @@ export const PaymentMethodEndpoints = {
|
|
|
34
34
|
request: z.object({}),
|
|
35
35
|
response: z.array(PaymentMethodReadResponseSchema),
|
|
36
36
|
},
|
|
37
|
+
listAdmin: {
|
|
38
|
+
method: "GET",
|
|
39
|
+
path: "/payment-methods/admin",
|
|
40
|
+
request: z.object({}),
|
|
41
|
+
response: z.array(PaymentMethodReadResponseSchema),
|
|
42
|
+
},
|
|
37
43
|
getById: {
|
|
38
44
|
method: "GET",
|
|
39
45
|
path: "/payment-methods/:id",
|
|
@@ -42,6 +48,14 @@ export const PaymentMethodEndpoints = {
|
|
|
42
48
|
}),
|
|
43
49
|
response: PaymentMethodReadResponseSchema,
|
|
44
50
|
},
|
|
51
|
+
getByIdAdmin: {
|
|
52
|
+
method: "GET",
|
|
53
|
+
path: "/payment-methods/admin/:id",
|
|
54
|
+
request: z.object({
|
|
55
|
+
id: z.coerce.number().positive(),
|
|
56
|
+
}),
|
|
57
|
+
response: PaymentMethodReadResponseSchema,
|
|
58
|
+
},
|
|
45
59
|
} satisfies Record<string, EndpointContract>;
|
|
46
60
|
|
|
47
61
|
export type PaymentMethodEndpointKey = keyof typeof PaymentMethodEndpoints;
|