feat: update swagger tariff

This commit is contained in:
Kirill 2023-05-31 16:43:26 +03:00
parent d36f174c2a
commit fd6fe6d5d6
2 changed files with 15 additions and 1 deletions

@ -28,6 +28,7 @@ export const privilege: SwaggerMessage = {
type: { type: "string" },
value: { type: "string" },
price: { type: "number" },
amount: { type: "number" },
isDeleted: { type: "boolean" },
createdAt: {
type: "string",

@ -22,7 +22,20 @@ export const tariffBody: SwaggerMessage = {
isCustom: { type: "boolean" },
privilegieIDArray: {
type: "array",
items: { type: "string" },
items: {
type: "object",
description: "Привилегия",
properties: {
name: { type: "string" },
privilegeId: { type: "string" },
serviceKey: { type: "string" },
description: { type: "string" },
amount: { type: "number" },
type: { type: "string" },
value: { type: "string" },
price: { type: "number" },
},
},
},
},
examples: [