natsio/model/affiliate_response.go

39 lines
1.4 KiB
Go
Raw Permalink Normal View History

2022-12-04 13:43:54 +00:00
package model
// GetTransactionsResponse ...
type GetTransactionsResponse struct {
Total int64 `json:"total"`
Limit int64 `json:"limit"`
List []TransactionInfo `json:"list"`
}
// TransactionInfo ...
type TransactionInfo struct {
ID string `json:"_id"`
Code string `json:"code"`
Campaign ResponseCampaignShort `json:"campaign"`
Seller ResponseSellerInfo `json:"seller"`
Source string `json:"source"`
Commission ResponseCampaignCommission `json:"commission"`
EstimateSellerCommission float64 `json:"estimateSellerCommission"`
2022-12-04 14:25:42 +00:00
TransactionTime string `json:"transactionTime"`
2022-12-04 13:43:54 +00:00
Status string `json:"status"`
RejectedReason string `json:"rejectedReason"`
2022-12-04 14:25:42 +00:00
EstimateCashbackAt string `json:"estimateCashbackAt"`
2022-12-04 13:43:54 +00:00
}
// ResponseCampaignCommission ...
type ResponseCampaignCommission struct {
Real float64 `json:"real"`
SellerPercent float64 `json:"sellerPercent"`
Selly float64 `json:"selly"`
Seller float64 `json:"seller"`
}
// ResponseCampaignShort ...
type ResponseCampaignShort struct {
ID string `json:"_id"`
Name string `json:"name"`
Logo *FilePhoto `json:"logo"`
}