added get merch prices method

This commit is contained in:
nquidox 2025-09-24 20:28:36 +03:00
parent ecf00fef22
commit ba78dd9772
5 changed files with 163 additions and 8 deletions

View file

@ -1,5 +1,7 @@
package merch
import "time"
type merchBundle struct {
Merch *Merch
Surugaya *Surugaya
@ -30,3 +32,19 @@ type ListResponse struct {
MerchUuid string `json:"merch_uuid"`
Name string `json:"name"`
}
type PriceEntry struct {
CreatedAt time.Time `json:"created_at"`
Value int `json:"value"`
}
type OriginWithPrices struct {
Origin Origin `json:"origin"`
Prices []PriceEntry
}
type PricesResponse struct {
Name string `json:"name"`
MerchUuid string `json:"merch_uuid"`
Origins []OriginWithPrices `json:"origins"`
}