Add Transaction
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package response
|
||||
|
||||
import "time"
|
||||
|
||||
type TransactionListItem struct {
|
||||
ID string `json:"id"`
|
||||
TransactionType string `json:"transaction_type"`
|
||||
Status string `json:"status"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
SiteName string `json:"site_name"`
|
||||
Amount int64 `json:"amount"`
|
||||
PartnerName string `json:"partner_name"`
|
||||
}
|
||||
|
||||
type TransactionListResponse struct {
|
||||
Transactions []TransactionListItem `json:"transactions"`
|
||||
TotalCount int `json:"total_count"`
|
||||
Limit int `json:"limit"`
|
||||
Offset int `json:"offset"`
|
||||
}
|
||||
Reference in New Issue
Block a user