dc075eaa96
Change-Id: Ib151bbb9b02d655fa619c53bfbc04ed6f3bb39e0
38 lines
1.3 KiB
Go
38 lines
1.3 KiB
Go
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package console
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// BillingHistoryItem holds all public information about billing history line.
|
|
type BillingHistoryItem struct {
|
|
ID string `json:"id"`
|
|
Description string `json:"description"`
|
|
Amount int64 `json:"amount"`
|
|
Received int64 `json:"received"`
|
|
Status string `json:"status"`
|
|
Link string `json:"link"`
|
|
Start time.Time `json:"start"`
|
|
End time.Time `json:"end"`
|
|
Type BillingHistoryItemType `json:"type"`
|
|
}
|
|
|
|
// BillingHistoryItemType indicates type of billing history item.
|
|
type BillingHistoryItemType int
|
|
|
|
const (
|
|
// Invoice is a Stripe invoice billing item.
|
|
Invoice BillingHistoryItemType = 0
|
|
// Transaction is a Coinpayments transaction billing item.
|
|
Transaction BillingHistoryItemType = 1
|
|
// Charge is a credit card charge billing item.
|
|
Charge BillingHistoryItemType = 2
|
|
// Coupon is an entity that adds some funds to Accounts balance for some fixed period.
|
|
Coupon BillingHistoryItemType = 3
|
|
// Credits is an entity that adds some funds to Accounts balance after deposit with storj coins.
|
|
Credits BillingHistoryItemType = 4
|
|
)
|