customercenter

package
v1.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package customercenter 管家账号相关API models

Index

Constants

View Source
const (
	// TransferAccountType_PAYEE 可转入账户(我可向谁转账)
	TransferAccountType_PAYEE = "PAYEE"
	// TransferAccountType_REMITTER 可转出账户(谁可向我转账)
	TransferAccountType_REMITTER = "REMITTER"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Advertiser

type Advertiser struct {
	// ID 广告主id
	ID uint64 `json:"advertiser_id,omitempty"`
	// Name 广告主名称(一个对象只会返回企业号和广告主其中一种)
	Name string `json:"advertiser_name,omitempty"`
	// AdvertiserType 广告主类型
	// 枚举值:DOU+ DOU+类广告主账号、NORMAL普通广告主帐号
	// DOU+类广告主账号不支持任何调用接口操作
	Type AdvertiserType `json:"advertiser_type,omitempty"`
	// EDouyinID 企业号id(一个对象只会返回企业号和广告主其中一种)
	EDouyinID string `json:"e_douyin_id,omitempty"`
	// EDouyinName 企业号名称(一个对象只会返回企业号和广告主其中一种)
	EDouyinName string `json:"e_douyin_name,omitempty"`
	// IsEnabled 账户状态,true为审核通过,false为审核不通过,注:账户审核通过方可进行转账
	IsEnabled bool `json:"is_enabled,omitempty"`
}

Advertiser 广告主

type AdvertiserListData

type AdvertiserListData struct {
	// List 账户列表
	List []Advertiser `json:"list,omitempty"`
	// PageInfo 分页信息
	PageInfo *model.PageInfo `json:"page_info,omitempty"`
}

AdvertiserListData json返回值

type AdvertiserListFilter

type AdvertiserListFilter struct {
	// AccountName 根据账户名称过滤
	AccountName string `json:"account_name,omitempty"`
}

AdvertiserListFilter 过滤条件

type AdvertiserListRequest

type AdvertiserListRequest struct {
	// CcAccountID 纵横组织id,通过【获取已授权账户】接口获取
	CcAccountID uint64 `json:"cc_account_id,omitempty"`
	// Page 页码. 默认值: 1
	Page int `json:"page,omitempty"`
	// PageSize 页面数据量. 默认值: 10
	PageSize int `json:"page_size,omitempty"`
	// Filtering 过滤条件
	Filtering     *AdvertiserListFilter `json:"filtering,omitempty"`
	AccountSource string                `json:"account_source"`
}

AdvertiserListRequest 获取纵横组织下资产账户列表(分页) API Request

func (AdvertiserListRequest) Encode

func (r AdvertiserListRequest) Encode() string

Encode implement GetRequest interface

type AdvertiserListResponse

type AdvertiserListResponse struct {
	model.BaseResponse
	// Data json返回值
	Data *AdvertiserListData `json:"data,omitempty"`
}

AdvertiserListResponse 获取纵横组织下资产账户列表(分页)API Response

type AdvertiserTransferableListData added in v1.10.0

type AdvertiserTransferableListData struct {
	// List 账户列表
	List []Advertiser `json:"list,omitempty"`
	// PageInfo 分页信息
	PageInfo *model.PageInfo `json:"page_info,omitempty"`
}

AdvertiserTransferableListData json返回值

type AdvertiserTransferableListRequest added in v1.10.0

type AdvertiserTransferableListRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// TransferAccountType 广告账户类型
	TransferAccountType TransferAccountType `json:"transfer_account_type,omitempty"`
	// Page 页码. 默认值: 1
	Page int `json:"page,omitempty"`
	// PageSize 页面数据量. 默认值: 10
	PageSize int `json:"page_size,omitempty"`
}

AdvertiserTransferableListRequest 获取可转账户列表(客户中心&广告主) API Request

func (AdvertiserTransferableListRequest) Encode added in v1.10.0

Encode implement GetRequest interface

type AdvertiserTransferableListResponse added in v1.10.0

type AdvertiserTransferableListResponse struct {
	model.BaseResponse
	// Data json返回值
	Data *AdvertiserTransferableListData `json:"data,omitempty"`
}

AdvertiserTransferableListResponse 获取可转账户列表(客户中心&广告主)API Response

type AdvertiserType

type AdvertiserType string

AdvertiserType 广告主类型

const (
	// AdvertiserType_DOU DOU+类广告主账号
	AdvertiserType_DOU AdvertiserType = "DOU+"
	// AdvertiserType_NORMAL 普通广告主帐号
	AdvertiserType_NORMAL AdvertiserType = "NORMAL"
)

type FundTransferSeqCommitRequest added in v1.10.0

type FundTransferSeqCommitRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// TargetAdvertiserID 转入账户
	TargetAdvertiserID uint64 `json:"target_advertiser_id,omitempty"`
	// TransactionSeq 交易流水号
	TransactionSeq uint64 `json:"transaction_seq,omitempty"`
}

FundTransferSeqCommitRequest 提交转账交易号 API Request

func (FundTransferSeqCommitRequest) Encode added in v1.10.0

func (r FundTransferSeqCommitRequest) Encode() []byte

Encode implement PostRequest interface

type FundTransferSeqCommitResponse added in v1.10.0

type FundTransferSeqCommitResponse struct {
	model.BaseResponse
	// Data json返回值
	Data struct {
		// TransactionSeq 交易流水号
		TransactionSeq uint64 `json:"transaction_seq,omitempty"`
	} `json:"data,omitempty"`
}

FundTransferSeqCommitResponse 提交转账交易号 API Response

type FundTransferSeqCreateRequest added in v1.10.0

type FundTransferSeqCreateRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// TargetAdvertiserID 转入账户
	TargetAdvertiserID uint64 `json:"target_advertiser_id,omitempty"`
	// Amount 转账金额
	Amount float64 `json:"amount,omitempty"`
	// TransferType 转账类型
	TransferType TransferType `json:"transfer_type,omitempty"`
}

FundTransferSeqCreateRequest 创建转账交易号 API Request

func (FundTransferSeqCreateRequest) Encode added in v1.10.0

func (r FundTransferSeqCreateRequest) Encode() []byte

Encode implement PostRequest interface

type FundTransferSeqCreateResponse added in v1.10.0

type FundTransferSeqCreateResponse struct {
	model.BaseResponse
	// Data json返回值
	Data struct {
		// TransactionSeq 交易流水号
		TransactionSeq uint64 `json:"transaction_seq,omitempty"`
	} `json:"data,omitempty"`
}

FundTransferSeqCreateResponse 创建转账交易号 API Response

type TransferAccountType added in v1.10.0

type TransferAccountType string

TransferAccountType 广告账户类型

type TransferType added in v1.10.0

type TransferType string

TransferType 转账类型

const (
	// TransferType_GRANT 赠款
	TransferType_GRANT TransferType = "GRANT"
	// TransferType_PREPAY_UNIVERSAL 通用预付
	TransferType_PREPAY_UNIVERSAL TransferType = "PREPAY_UNIVERSAL"
	// TransferType_PREPAY_BRAND 品牌预付
	TransferType_PREPAY_BRAND TransferType = "PREPAY_BRAND"
	// TransferType_PREPAY_BID 竞价预付
	TransferType_PREPAY_BID TransferType = "PREPAY_BID"
	// TransferType_CREDIT_UNIVERSAL 通用授信
	TransferType_CREDIT_UNIVERSAL TransferType = "CREDIT_UNIVERSAL"
	// TransferType_CREDIT_BRAND 品牌授信
	TransferType_CREDIT_BRAND TransferType = "CREDIT_BRAND"
	// TransferType_CREDIT_BID 竞价授信
	TransferType_CREDIT_BID TransferType = "CREDIT_BID"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL