Add PurchaseReceipt to Claim

This commit is contained in:
Andrey Beletsky 2020-05-21 00:18:19 +07:00
parent 1fa1df36d4
commit ccef4d8e4d

View file

@ -304,6 +304,18 @@ type Support struct {
Txid string `json:"txid"` Txid string `json:"txid"`
} }
type PurchaseReceipt struct {
Address string `json:"file_name"`
Amount string `json:"amount"`
ClaimID string `json:"claim_id"`
Confirmations int `json:"confirmations"`
Height int `json:"height"`
Nout uint64 `json:"nout"`
Timestamp uint64 `json:"timestamp"`
Txid string `json:"txid"`
Type string `json:"purchase"`
}
type Claim struct { type Claim struct {
Address string `json:"address"` Address string `json:"address"`
Amount string `json:"amount"` Amount string `json:"amount"`
@ -323,6 +335,7 @@ type Claim struct {
NormalizedName string `json:"normalized_name"` NormalizedName string `json:"normalized_name"`
Nout uint64 `json:"nout"` Nout uint64 `json:"nout"`
PermanentURL string `json:"permanent_url"` PermanentURL string `json:"permanent_url"`
PurchaseReceipt *PurchaseReceipt `json:"purchase_receipt,omitempty"`
ShortURL string `json:"short_url"` ShortURL string `json:"short_url"`
SigningChannel *Claim `json:"signing_channel,omitempty"` SigningChannel *Claim `json:"signing_channel,omitempty"`
Timestamp int `json:"timestamp"` Timestamp int `json:"timestamp"`