add payment text
This commit is contained in:
@@ -1402,6 +1402,46 @@ definitions:
|
||||
- sberBankFeeTmt
|
||||
- tvebFeeUsd
|
||||
type: object
|
||||
paymenttexts.ListPaymentTextDTO:
|
||||
properties:
|
||||
count:
|
||||
type: integer
|
||||
items:
|
||||
items:
|
||||
$ref: '#/definitions/paymenttexts.PaymentTextDTO'
|
||||
type: array
|
||||
type: object
|
||||
paymenttexts.PaymentTextDTO:
|
||||
properties:
|
||||
code:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
isActive:
|
||||
type: boolean
|
||||
name:
|
||||
type: string
|
||||
text:
|
||||
$ref: '#/definitions/shared.LocalizedText'
|
||||
updatedAt:
|
||||
type: string
|
||||
updatedById:
|
||||
type: integer
|
||||
updatedByName:
|
||||
type: string
|
||||
type: object
|
||||
paymenttexts.UpdatePaymentTextDTO:
|
||||
properties:
|
||||
isActive:
|
||||
type: boolean
|
||||
name:
|
||||
type: string
|
||||
text:
|
||||
$ref: '#/definitions/shared.LocalizedText'
|
||||
required:
|
||||
- isActive
|
||||
- name
|
||||
type: object
|
||||
perm.Code:
|
||||
enum:
|
||||
- dashboard
|
||||
@@ -5149,6 +5189,137 @@ paths:
|
||||
summary: Update payment settings
|
||||
tags:
|
||||
- payment-settings
|
||||
/payment-texts:
|
||||
get:
|
||||
description: Returns the admin-editable, localized texts (warnings, hints) shown
|
||||
to clients on visa/master/sber payout screens. Clients only get active ones,
|
||||
with empty languages filled with a default text.
|
||||
parameters:
|
||||
- description: Filter by code, name or text
|
||||
in: query
|
||||
name: search
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/paymenttexts.ListPaymentTextDTO'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: List payment texts
|
||||
tags:
|
||||
- payment-texts
|
||||
/payment-texts/{code}:
|
||||
delete:
|
||||
description: Super admin only. Deletes a payment text by code; clients then
|
||||
get the built-in default text for known codes.
|
||||
parameters:
|
||||
- description: Text code
|
||||
in: path
|
||||
name: code
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"403":
|
||||
description: Forbidden
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Delete a payment text
|
||||
tags:
|
||||
- payment-texts
|
||||
get:
|
||||
description: Returns one payment text by its fixed code (e.g. payment_warning_text,
|
||||
sber_payment_warning). For clients, empty languages are filled with a default
|
||||
text, a deleted known code returns its default, and inactive texts are 404.
|
||||
parameters:
|
||||
- description: Text code
|
||||
in: path
|
||||
name: code
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/paymenttexts.PaymentTextDTO'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Get a payment text by code
|
||||
tags:
|
||||
- payment-texts
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Updates the name, localized text and active flag of an existing
|
||||
payment text. The code itself cannot be changed.
|
||||
parameters:
|
||||
- description: Text code
|
||||
in: path
|
||||
name: code
|
||||
required: true
|
||||
type: string
|
||||
- description: Payment text payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/paymenttexts.UpdatePaymentTextDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/paymenttexts.PaymentTextDTO'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Update a payment text
|
||||
tags:
|
||||
- payment-texts
|
||||
/permissions:
|
||||
get:
|
||||
description: 'Returns the permission catalog: one code per module, in display
|
||||
|
||||
Reference in New Issue
Block a user