Add PurchaseReceipt to Claim
This commit is contained in:
parent
3ae040d677
commit
9d8b9330f9
1 changed files with 13 additions and 0 deletions
|
@ -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"`
|
||||||
|
|
Loading…
Reference in a new issue