added payment history
This commit is contained in:
@@ -1295,6 +1295,68 @@ definitions:
|
||||
- price
|
||||
- title
|
||||
type: object
|
||||
paymenthistory.ListPaymentHistoryDTO:
|
||||
properties:
|
||||
count:
|
||||
type: integer
|
||||
items:
|
||||
items:
|
||||
$ref: '#/definitions/paymenthistory.PaymentHistoryItemDTO'
|
||||
type: array
|
||||
type: object
|
||||
paymenthistory.PaymentHistoryItemDTO:
|
||||
properties:
|
||||
amountTmt:
|
||||
type: number
|
||||
bankFeeTmt:
|
||||
type: number
|
||||
branchId:
|
||||
type: integer
|
||||
branchName:
|
||||
type: string
|
||||
createdAt:
|
||||
type: string
|
||||
createdById:
|
||||
type: integer
|
||||
createdByName:
|
||||
type: string
|
||||
exchangeRateRub:
|
||||
type: number
|
||||
exchangeRateUsd:
|
||||
type: number
|
||||
gatewayReference:
|
||||
type: string
|
||||
gatewayStatus:
|
||||
type: string
|
||||
gbusFeeTmt:
|
||||
type: number
|
||||
id:
|
||||
type: integer
|
||||
orderId:
|
||||
type: integer
|
||||
orderUniqueId:
|
||||
type: string
|
||||
paid:
|
||||
type: boolean
|
||||
passportName:
|
||||
type: string
|
||||
passportSurname:
|
||||
type: string
|
||||
paymentPeriod:
|
||||
type: string
|
||||
totalAmountTmt:
|
||||
type: number
|
||||
tvebFeeTmt:
|
||||
type: number
|
||||
tvebFeeUsd:
|
||||
type: number
|
||||
type:
|
||||
type: string
|
||||
updatedAt:
|
||||
type: string
|
||||
userId:
|
||||
type: integer
|
||||
type: object
|
||||
paymentsettings.PaymentSettingsDTO:
|
||||
properties:
|
||||
bankFeeTmt:
|
||||
@@ -4869,6 +4931,61 @@ paths:
|
||||
summary: Update payment card active
|
||||
tags:
|
||||
- payment-card
|
||||
/payment-history:
|
||||
get:
|
||||
description: Returns a paginated, branch-scoped audit trail of visa/master/sber
|
||||
payout attempts (paid, failed, or pending), across orders
|
||||
parameters:
|
||||
- description: Filter by order ID
|
||||
in: query
|
||||
name: order_id
|
||||
type: integer
|
||||
- description: Filter by branch ID
|
||||
in: query
|
||||
name: branch_id
|
||||
type: integer
|
||||
- description: Filter by order owner (client) user ID
|
||||
in: query
|
||||
name: user_id
|
||||
type: integer
|
||||
- description: Filter by gateway status (pending, success, failed)
|
||||
in: query
|
||||
name: status
|
||||
type: string
|
||||
- description: Filter by passport name/surname or order unique ID
|
||||
in: query
|
||||
name: search
|
||||
type: string
|
||||
- default: 1
|
||||
description: Page number
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
- default: 10
|
||||
description: Items per page
|
||||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/paymenthistory.ListPaymentHistoryDTO'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: List payment history
|
||||
tags:
|
||||
- payment-history
|
||||
/payment-settings:
|
||||
get:
|
||||
description: Returns the admin-configurable bank and GBÜS commission fees used
|
||||
|
||||
Reference in New Issue
Block a user