github.com/bububa/oceanengine/marketing-api@v0.0.0-20210315120513-0b953137f7a6/model/agent/advertiser_refund.go (about)

     1  package agent
     2  
     3  import (
     4  	"encoding/json"
     5  
     6  	"github.com/bububa/oceanengine/marketing-api/model"
     7  )
     8  
     9  type AdvertiserRefundRequest struct {
    10  	AdvertiserID uint64  `json:"advertiser_id,omitempty"` // 广告主ID
    11  	AgentID      uint64  `json:"agent_id,omitempty"`      // 代理商ID
    12  	TransferType string  `json:"transfer_type,omitempty"` // 转账类型(新增字段). 枚举:CASH:现金,GRANT:赠款
    13  	Amount       float64 `json:"amount,omitempty"`        // 金额,单位(元),最低转账金额500元
    14  }
    15  
    16  func (r AdvertiserRefundRequest) Encode() []byte {
    17  	ret, _ := json.Marshal(r)
    18  	return ret
    19  }
    20  
    21  type AdvertiserRefundResponse struct {
    22  	model.BaseResponse
    23  	Data *AdvertiserRefundResponseData `json:"data,omitempty"`
    24  }
    25  
    26  type AdvertiserRefundResponseData struct {
    27  	TransactionSeq string `json:"transaction_seq,omitempty"` // 交易序列号
    28  }