Refactor pricing endpoints and enhance support for pricing retrieval
- Added a new endpoint `/api/support/pricing` to allow users to retrieve pricing information, making it accessible for role request dialogs. - Introduced the `GetSupportPricing` method to handle pricing queries, ensuring that pricing data is available to non-admin users. - Updated frontend components to integrate the new pricing retrieval functionality, displaying estimated costs based on user-selected configurations. - Removed the `PricingSettingsDto` as it is no longer needed, streamlining the pricing data structure. - Enhanced API documentation to reflect the new endpoint and its usage in the support context.
This commit is contained in:
@@ -135,6 +135,11 @@ const resources = {
|
||||
newRoleName: 'Название роли',
|
||||
newRoleMaxConfigs: 'Количество конфигов (-1 — без лимита)',
|
||||
newRoleMaxIpLimit: 'Количество IP (-1 — без лимита)',
|
||||
pricingTitle: 'Ориентировочная стоимость',
|
||||
pricingQuarter: '3 месяца: {{price}}',
|
||||
pricingHalfYear: 'Полгода: {{price}}',
|
||||
pricingYear: 'Год: {{price}}',
|
||||
pricingDisclaimer: 'Цены на данный момент ознакомительные.',
|
||||
justification: 'Обоснование',
|
||||
ticketCreated: 'Обращение отправлено.',
|
||||
roleRequestPending: 'У вас уже есть необработанная заявка на роль.',
|
||||
@@ -571,6 +576,11 @@ const resources = {
|
||||
newRoleName: 'Role name',
|
||||
newRoleMaxConfigs: 'Max configs (-1 = unlimited)',
|
||||
newRoleMaxIpLimit: 'Max IPs (-1 = unlimited)',
|
||||
pricingTitle: 'Estimated cost',
|
||||
pricingQuarter: '3 months: {{price}}',
|
||||
pricingHalfYear: '6 months: {{price}}',
|
||||
pricingYear: 'Year: {{price}}',
|
||||
pricingDisclaimer: 'Prices are indicative only at this time.',
|
||||
justification: 'Justification',
|
||||
ticketCreated: 'Ticket submitted.',
|
||||
roleRequestPending: 'You already have a pending role request.',
|
||||
|
||||
Reference in New Issue
Block a user