Files
zeekay 1943f1c093 Hanzo Commerce
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans,
usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0.

Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
2026-09-23 21:52:16 -07:00

31 lines
1.0 KiB
Go

package tokentransaction
import (
"time"
"github.com/hanzoai/commerce/models/mixin"
)
// Datastructure for Bitcoin Transaction
type Transaction struct {
mixin.BaseModel
Amount float64 `json:"amount"`
Fees float64 `json:"fees"`
Timestamp time.Time `json:"timestamp"`
SendingAddress string `json:"sendingAddress"`
ReceivingAddress string `json:"receivingAddress"`
SendingName string `json:"sendingName"`
SendingUserId string `json:"sendingUserId"`
SendingState string `json:"sendingState"`
SendingCountry string `json:"sendingCountry"`
ReceivingName string `json:"receivingName"`
ReceivingUserId string `json:"receivingUserId"`
ReceivingState string `json:"receivingState"`
ReceivingCountry string `json:"receivingCountry"`
SenderFlagged bool `json:"senderFlagged"`
ReceiverFlagged bool `json:"receiverFlagged"`
Protocol string `json:"protocol"`
TransactionHash string `json:"transactionHash"`
}