mirror of
https://github.com/hanzoai/commerce.git
synced 2026-10-30 15:08:42 +00:00
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
31 lines
1.0 KiB
Go
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"`
|
|
}
|