экраны закупов и креативов
This commit is contained in:
@@ -617,12 +617,19 @@ func (c *Client) DeletePlacement(
|
||||
// Purchase Plan
|
||||
// ============================================================================
|
||||
|
||||
type Channel struct {
|
||||
ID string `json:"id"`
|
||||
TelegramID *int64 `json:"telegram_id"`
|
||||
Title *string `json:"title"`
|
||||
Username *string `json:"username"`
|
||||
}
|
||||
|
||||
type PurchasePlanChannel struct {
|
||||
ID string `json:"id"`
|
||||
ChannelID string `json:"channel_id"`
|
||||
Status string `json:"status"`
|
||||
PlannedCost *int `json:"planned_cost"`
|
||||
Comment *string `json:"comment"`
|
||||
ID string `json:"id"`
|
||||
Channel Channel `json:"channel"`
|
||||
Status string `json:"status"`
|
||||
PlannedCost *float64 `json:"planned_cost"`
|
||||
Comment *string `json:"comment"`
|
||||
}
|
||||
|
||||
func (c *Client) GetPurchasePlanChannels(
|
||||
@@ -650,10 +657,10 @@ func (c *Client) GetPurchasePlanChannels(
|
||||
}
|
||||
|
||||
type AttachChannelToPurchasePlanInput struct {
|
||||
ChannelID string `json:"channel_id"`
|
||||
Status *string `json:"status,omitempty"`
|
||||
PlannedCost *int `json:"planned_cost,omitempty"`
|
||||
Comment *string `json:"comment,omitempty"`
|
||||
Username string `json:"username"`
|
||||
Status *string `json:"status,omitempty"`
|
||||
PlannedCost *float64 `json:"planned_cost,omitempty"`
|
||||
Comment *string `json:"comment,omitempty"`
|
||||
}
|
||||
|
||||
func (c *Client) AttachChannelToPurchasePlan(
|
||||
@@ -679,9 +686,9 @@ func (c *Client) AttachChannelToPurchasePlan(
|
||||
}
|
||||
|
||||
type UpdatePurchasePlanChannelInput struct {
|
||||
Status *string `json:"status,omitempty"`
|
||||
PlannedCost *int `json:"planned_cost,omitempty"`
|
||||
Comment *string `json:"comment,omitempty"`
|
||||
Status *string `json:"status,omitempty"`
|
||||
PlannedCost *float64 `json:"planned_cost,omitempty"`
|
||||
Comment *string `json:"comment,omitempty"`
|
||||
}
|
||||
|
||||
func (c *Client) UpdatePurchasePlanChannel(
|
||||
|
||||
Reference in New Issue
Block a user