chore: add crypto payment
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// CryptoPayment suit un paiement crypto NowPayments lié à une commande
|
||||
type CryptoPayment struct {
|
||||
ID int `json:"id"`
|
||||
CommandID int `json:"command_id"`
|
||||
NowPaymentID string `json:"nowpayment_id"`
|
||||
Status string `json:"status"` // waiting, confirming, confirmed, sending, partially_paid, finished, failed, refunded, expired
|
||||
PriceAmount float64 `json:"price_amount"`
|
||||
PriceCurrency string `json:"price_currency"`
|
||||
PayCurrency string `json:"pay_currency"`
|
||||
PayAddress string `json:"pay_address"`
|
||||
PayAmount float64 `json:"pay_amount"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user