fixed error
This commit is contained in:
1 parent
99788a853f
commit
febd190d6e
5 files changed
+39
-31
No files matched your search
@@ -6,37 +6,41 @@
|
||||
// without N+1 calls.
|
||||
package paymenthistory
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"time"
|
||||
|
||||
"online-back/internal/shared"
|
||||
)
|
||||
|
||||
// PaymentHistoryItemDTO is one payout attempt (paid, failed, or still
|
||||
// pending) enriched with the order/branch/client/operator context needed to
|
||||
// display it in a history list, without requiring a separate lookup per row.
|
||||
type PaymentHistoryItemDTO struct {
|
||||
Id int64 `json:"id"`
|
||||
OrderId int64 `json:"orderId"`
|
||||
OrderUniqueId string `json:"orderUniqueId"`
|
||||
Type string `json:"type"`
|
||||
BranchId int64 `json:"branchId"`
|
||||
BranchName string `json:"branchName"`
|
||||
PassportName string `json:"passportName"`
|
||||
PassportSurname string `json:"passportSurname"`
|
||||
UserId int64 `json:"userId"`
|
||||
Paid bool `json:"paid"`
|
||||
AmountTmt float64 `json:"amountTmt"`
|
||||
BankFeeTmt float64 `json:"bankFeeTmt"`
|
||||
GbusFeeTmt *float64 `json:"gbusFeeTmt,omitempty"`
|
||||
TvebFeeUsd *float64 `json:"tvebFeeUsd,omitempty"`
|
||||
TvebFeeTmt *float64 `json:"tvebFeeTmt,omitempty"`
|
||||
TotalAmountTmt float64 `json:"totalAmountTmt"`
|
||||
ExchangeRateUsd float64 `json:"exchangeRateUsd"`
|
||||
ExchangeRateRub *float64 `json:"exchangeRateRub,omitempty"`
|
||||
PaymentPeriod time.Time `json:"paymentPeriod"`
|
||||
GatewayStatus string `json:"gatewayStatus"`
|
||||
GatewayReference *string `json:"gatewayReference,omitempty"`
|
||||
CreatedById *int64 `json:"createdById,omitempty"`
|
||||
CreatedByName string `json:"createdByName,omitempty"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
Id int64 `json:"id"`
|
||||
OrderId int64 `json:"orderId"`
|
||||
OrderUniqueId string `json:"orderUniqueId"`
|
||||
Type string `json:"type"`
|
||||
BranchId int64 `json:"branchId"`
|
||||
BranchName shared.LocalizedText `json:"branchName"`
|
||||
PassportName string `json:"passportName"`
|
||||
PassportSurname string `json:"passportSurname"`
|
||||
UserId int64 `json:"userId"`
|
||||
Paid bool `json:"paid"`
|
||||
AmountTmt float64 `json:"amountTmt"`
|
||||
BankFeeTmt float64 `json:"bankFeeTmt"`
|
||||
GbusFeeTmt *float64 `json:"gbusFeeTmt,omitempty"`
|
||||
TvebFeeUsd *float64 `json:"tvebFeeUsd,omitempty"`
|
||||
TvebFeeTmt *float64 `json:"tvebFeeTmt,omitempty"`
|
||||
TotalAmountTmt float64 `json:"totalAmountTmt"`
|
||||
ExchangeRateUsd float64 `json:"exchangeRateUsd"`
|
||||
ExchangeRateRub *float64 `json:"exchangeRateRub,omitempty"`
|
||||
PaymentPeriod time.Time `json:"paymentPeriod"`
|
||||
GatewayStatus string `json:"gatewayStatus"`
|
||||
GatewayReference *string `json:"gatewayReference,omitempty"`
|
||||
CreatedById *int64 `json:"createdById,omitempty"`
|
||||
CreatedByName string `json:"createdByName,omitempty"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
// ListFilter narrows the history list. BranchIds is populated by
|
||||
|
||||
Reference in new issue
Block a user