// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================

package entity

import (
	"github.com/gogf/gf/v2/os/gtime"
	"github.com/shopspring/decimal"
)

// V1OrderProfitInfo is the golang structure for table v1order_profit_info.
type V1OrderProfitInfo struct {
	Id              uint            `json:"id"              orm:"id"                description:"主键，自增"`
	MerchantName    string          `json:"merchantName"    orm:"merchant_name"     description:"商户名称"`
	MerchantUid     string          `json:"merchantUid"     orm:"merchant_uid"      description:"商户uid"`
	AgentUid        string          `json:"agentUid"        orm:"agent_uid"         description:"代理uid，表示该商户是谁的代理"`
	AgentName       string          `json:"agentName"       orm:"agent_name"        description:"代理名称"`
	PayProductCode  string          `json:"payProductCode"  orm:"pay_product_code"  description:"支付产品编码"`
	PayProductName  string          `json:"payProductName"  orm:"pay_product_name"  description:"支付产品名称"`
	PayTypeCode     string          `json:"payTypeCode"     orm:"pay_type_code"     description:"支付类型编码"`
	PayTypeName     string          `json:"payTypeName"     orm:"pay_type_name"     description:"支付类型名称"`
	Status          string          `json:"status"          orm:"status"            description:"等待支付-wait,支付成功-success, 支付失败-failed"`
	MerchantOrderId string          `json:"merchantOrderId" orm:"merchant_order_id" description:"下游商户提交过来的订单id"`
	BankOrderId     string          `json:"bankOrderId"     orm:"bank_order_id"     description:"平台自身的订单id"`
	BankTransId     string          `json:"bankTransId"     orm:"bank_trans_id"     description:"上游返回的订单id"`
	OrderAmount     decimal.Decimal `json:"orderAmount"     orm:"order_amount"      description:"订单提交金额"`
	ShowAmount      decimal.Decimal `json:"showAmount"      orm:"show_amount"       description:"展示在用户面前待支付的金额"`
	FactAmount      decimal.Decimal `json:"factAmount"      orm:"fact_amount"       description:"实际支付金额"`
	UserInAmount    decimal.Decimal `json:"userInAmount"    orm:"user_in_amount"    description:"商户入账金额"`
	AllProfit       decimal.Decimal `json:"allProfit"       orm:"all_profit"        description:"总的利润，包括上游，平台，代理"`
	SupplierRate    decimal.Decimal `json:"supplierRate"    orm:"supplier_rate"     description:"上游的汇率"`
	PlatformRate    decimal.Decimal `json:"platformRate"    orm:"platform_rate"     description:"平台自己的手续费率"`
	AgentRate       decimal.Decimal `json:"agentRate"       orm:"agent_rate"        description:"代理的手续费率"`
	SupplierProfit  decimal.Decimal `json:"supplierProfit"  orm:"supplier_profit"   description:"上游的利润"`
	PlatformProfit  decimal.Decimal `json:"platformProfit"  orm:"platform_profit"   description:"平台利润"`
	AgentProfit     decimal.Decimal `json:"agentProfit"     orm:"agent_profit"      description:"代理利润"`
	UpdateTime      *gtime.Time     `json:"updateTime"      orm:"update_time"       description:"更新时间"`
	CreateTime      *gtime.Time     `json:"createTime"      orm:"create_time"       description:"创建时间"`
	PlatformFee     decimal.Decimal `json:"platformFee"     orm:"platform_fee"      description:""`
}
