storj/satellite/payments/charges.go
Yaroslav 389567fc9e satellite/console: add credit card charges to billing history
Change-Id: I82a08c42c01086dc7fb9508da5c6c0baa2438124
2020-01-03 17:34:59 +02:00

22 lines
503 B
Go

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package payments
import "time"
// CardInfo holds information about credit card used for charge.
type CardInfo struct {
ID string `json:"id"`
Brand string `json:"brand"`
LastFour string `json:"lastFour"`
}
// Charge contains charge details.
type Charge struct {
ID string `json:"id"`
Amount int64 `json:"amount"`
CardInfo CardInfo `json:"card"`
CreatedAt time.Time `json:"createdAt"`
}